public class CustomizationButton extends java.lang.Object implements ToolbarGroupHeaderFactory
CustomizationMenu
.Modifier and Type | Class and Description |
---|---|
protected class |
CustomizationButton.Button
A toggle button that will open the
CustomizationMenu . |
Constructor and Description |
---|
CustomizationButton(bibliothek.gui.DockController controller)
Creates a new factory.
|
Modifier and Type | Method and Description |
---|---|
ToolbarGroupHeader |
create(ToolbarGroupDockStation station)
Asks this factory to create a new header.
|
void |
setContent(CustomizationMenuContent content)
Sets the contents of the menu.
|
void |
setMenu(CustomizationMenu menu)
Sets the menu which should be used by the buttons to show the content.
|
public CustomizationButton(bibliothek.gui.DockController controller)
controller
- the controller in whose realm this button will be usedpublic ToolbarGroupHeader create(ToolbarGroupDockStation station)
ToolbarGroupHeaderFactory
null
is
valid and indicates that no header should be shown.create
in interface ToolbarGroupHeaderFactory
station
- the station which is going to show the componentnull
public void setMenu(CustomizationMenu menu)
menu
- the menu to use, can be null
public void setContent(CustomizationMenuContent content)
content
- the contents, can be null