public class EagerCustomizationToolbarButton extends CustomizationToolbarButton
CustomizationToolbarButton which uses an already existing
Dockable to gain access to icon and description.CustomizationToolbarButton.ItemLocation| Constructor and Description |
|---|
EagerCustomizationToolbarButton(Dockable dockable)
Creates a new button, a
DockableListener is added to
dockable to read icon and description. |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(CustomizationMenuCallback callback)
Informs this item that is going to be used.
|
protected 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.
|
getItemLocation, getView, setController, setDescription, setIcon, setItemVisible, setTextpublic EagerCustomizationToolbarButton(Dockable dockable)
DockableListener is added to
dockable to read icon and description.dockable - the item represented by this buttonprotected 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 Dockable getDockable()
CustomizationToolbarButtonDockable lazily in the very moment it is used the first time.getDockable in class CustomizationToolbarButtonpublic void bind(CustomizationMenuCallback callback)
CustomizationMenuContentbind 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 CustomizationToolbarButtonCopyright © 2018. All rights reserved.