bibliothek.gui.dock.station.toolbar.menu
Class CustomizationButton

java.lang.Object
  extended by bibliothek.gui.dock.station.toolbar.menu.CustomizationButton
All Implemented Interfaces:
ToolbarGroupHeaderFactory

public class CustomizationButton
extends Object
implements ToolbarGroupHeaderFactory

A factory for a toggle button that will open the CustomizationMenu.

Author:
Benjamin Sigg

Nested Class Summary
protected  class CustomizationButton.Button
          A toggle button that will open the CustomizationMenu.
 
Constructor Summary
CustomizationButton(bibliothek.gui.DockController controller)
          Creates a new factory.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomizationButton

public CustomizationButton(bibliothek.gui.DockController controller)
Creates a new factory.

Parameters:
controller - the controller in whose realm this button will be used
Method Detail

create

public ToolbarGroupHeader create(ToolbarGroupDockStation station)
Description copied from interface: ToolbarGroupHeaderFactory
Asks this factory to create a new header. A result of null is valid and indicates that no header should be shown.

Specified by:
create in interface ToolbarGroupHeaderFactory
Parameters:
station - the station which is going to show the component
Returns:
the new component, can be null

setMenu

public void setMenu(CustomizationMenu menu)
Sets the menu which should be used by the buttons to show the content.

Parameters:
menu - the menu to use, can be null

setContent

public void setContent(CustomizationMenuContent content)
Sets the contents of the menu.

Parameters:
content - the contents, can be null