|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.station.toolbar.menu.CustomizationToolbarButton
bibliothek.gui.dock.station.toolbar.menu.EagerCustomizationToolbarButton
public class EagerCustomizationToolbarButton
A CustomizationToolbarButton which uses an already existing
Dockable to gain access to icon and description.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class bibliothek.gui.dock.station.toolbar.menu.CustomizationToolbarButton |
|---|
CustomizationToolbarButton.ItemLocation |
| Constructor Summary | |
|---|---|
EagerCustomizationToolbarButton(bibliothek.gui.Dockable dockable)
Creates a new button, a DockableListener is added to
dockable to read icon and description. |
|
| Method Summary | |
|---|---|
void |
bind(CustomizationMenuCallback callback)
Informs this item that is going to be used. |
protected bibliothek.gui.Dockable |
getDockable()
Gets the element that is put onto a toolbar. |
protected boolean |
hasDockable()
Tells whether the Dockable of this button, accessible by calling
CustomizationToolbarButton.getDockable(), is already present. |
void |
unbind()
Informs this item that it is no longer used. |
| Methods inherited from class bibliothek.gui.dock.station.toolbar.menu.CustomizationToolbarButton |
|---|
getItemLocation, getView, setController, setDescription, setIcon, setItemVisible, setText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EagerCustomizationToolbarButton(bibliothek.gui.Dockable dockable)
DockableListener is added to
dockable to read icon and description.
dockable - the item represented by this button| Method Detail |
|---|
protected boolean hasDockable()
CustomizationToolbarButtonDockable of this button, accessible by calling
CustomizationToolbarButton.getDockable(), is already present. If the item is not yet
present, then it cannot be visible or selected at this time.
hasDockable in class CustomizationToolbarButtonDockable already existsprotected bibliothek.gui.Dockable getDockable()
CustomizationToolbarButtonDockable lazily in the very moment it is used the first time.
getDockable in class CustomizationToolbarButtonpublic void bind(CustomizationMenuCallback callback)
CustomizationMenuContent
bind in interface CustomizationMenuContentbind in class CustomizationToolbarButtoncallback - access to more detailed information about the DockStation that is
showing the menupublic void unbind()
CustomizationMenuContent#bind().
unbind in interface CustomizationMenuContentunbind in class CustomizationToolbarButton
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||