|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.toolbar.item.ComponentItem
public class ComponentItem
A ComponentItem is the most simple implementation of ToolbarItem, it
just wrapps around a single Component.
| Constructor Summary | |
|---|---|
ComponentItem(Component component)
Creates the new item. |
|
| Method Summary | |
|---|---|
void |
addMouseInputListener(MouseInputListener listener)
Urges this item to add listener to its component. |
void |
bind()
Informs this item that it is now in use, the result of ToolbarItem.getComponent() must not be null
and must not change after this method has been called. |
Component |
getComponent()
Gets the Component which is wrapped by this item. |
void |
removeMouseInputListener(MouseInputListener listener)
Urges this item to remove listener from its component. |
void |
setController(bibliothek.gui.DockController controller)
Informs this item about the DockController in whose realm it is used. |
void |
setDockable(ToolbarItemDockable dockable)
Informs this item about the Dockable that is using it. |
void |
setOrientation(Orientation orientation)
Tells this item the orientation of the toolbar |
void |
setSelected(boolean selected)
Informs this item whether it is actually shown or not. |
void |
unbind()
Informs this item that it is no longer in use, the result of ToolbarItem.getComponent() can be null
or change after this method has been called. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentItem(Component component)
component - the content of this item, not null| Method Detail |
|---|
public Component getComponent()
ToolbarItemComponent which is wrapped by this item. The result of this method must not be
null after ToolbarItem.bind() has been called, it may not change until ToolbarItem.unbind()
was called.
getComponent in interface ToolbarItemComponent, can be null unless ToolbarItem.bind() was calledpublic void bind()
ToolbarItemToolbarItem.getComponent() must not be null
and must not change after this method has been called.
bind in interface ToolbarItempublic void unbind()
ToolbarItemToolbarItem.getComponent() can be null
or change after this method has been called.
unbind in interface ToolbarItempublic void setSelected(boolean selected)
ToolbarItem
setSelected in interface ToolbarItemselected - true if the item is shownpublic void setController(bibliothek.gui.DockController controller)
ToolbarItemDockController in whose realm it is used. This method will always
be called before ToolbarItem.bind(), or after ToolbarItem.unbind(), is executed.
setController in interface ToolbarItemcontroller - the controller in whose realm this item works, can be nullpublic void setDockable(ToolbarItemDockable dockable)
ToolbarItemDockable that is using it.
setDockable in interface ToolbarItemdockable - the owner of this itempublic void setOrientation(Orientation orientation)
ToolbarItem
setOrientation in interface ToolbarItemorientation - the orientation of the toolbarpublic void addMouseInputListener(MouseInputListener listener)
ToolbarItemlistener to its component. This method
must only be called if ToolbarItem.bind() was executed.
addMouseInputListener in interface ToolbarItemlistener - the MouseListener and MouseMotionListener that should be addedpublic void removeMouseInputListener(MouseInputListener listener)
ToolbarItemlistener from its component. This method
must only be called if ToolbarItem.bind() was executed.
removeMouseInputListener in interface ToolbarItemlistener - the MouseListener and MouseMotionListener that should be removed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||