public class CustomizationMenuItem extends java.lang.Object implements CustomizationMenuContent
CustomizationMenuItem
is a simple Component
.Constructor and Description |
---|
CustomizationMenuItem(java.awt.Component component)
Creates a new item.
|
Modifier and Type | Method and Description |
---|---|
void |
bind(CustomizationMenuCallback callback)
Do nothing, so any call is useless.
|
java.awt.Component |
getView()
Gets a
Component which represents this item. |
void |
setController(bibliothek.gui.DockController controller)
Do nothing, so any call is useless.
|
void |
unbind()
Do nothing, so any call is useless.
|
public CustomizationMenuItem(java.awt.Component component)
dockable
- the item represented by this buttonpublic java.awt.Component getView()
CustomizationMenuContent
Component
which represents this item. If #bind()
has not yet
been called, or CustomizationMenuContent.unbind()
has been called, then a result of null
is valid.getView
in interface CustomizationMenuContent
null
if this item is not bound
.public void setController(bibliothek.gui.DockController controller)
setController
in interface CustomizationMenuContent
controller
- the controller, can be null
public void bind(CustomizationMenuCallback callback)
bind
in interface CustomizationMenuContent
callback
- access to more detailed information about the DockStation
that is
showing the menupublic void unbind()
unbind
in interface CustomizationMenuContent