|
||||||||||
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 buttonMethod Detail |
---|
protected boolean hasDockable()
CustomizationToolbarButton
Dockable
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 CustomizationToolbarButton
Dockable
already existsprotected bibliothek.gui.Dockable getDockable()
CustomizationToolbarButton
Dockable
lazily in the very moment it is used the first time.
getDockable
in class CustomizationToolbarButton
public void bind(CustomizationMenuCallback callback)
CustomizationMenuContent
bind
in interface CustomizationMenuContent
bind
in class CustomizationToolbarButton
callback
- access to more detailed information about the DockStation
that is
showing the menupublic void unbind()
CustomizationMenuContent
#bind()
.
unbind
in interface CustomizationMenuContent
unbind
in class CustomizationToolbarButton
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |