bibliothek.gui.dock.station.toolbar.menu
Interface CustomizationMenuContent

All Known Implementing Classes:
CustomizationMenuContentGrid, CustomizationMenuContentVerticalBox, CustomizationMenuItem, CustomizationToolbarButton, EagerCustomizationToolbarButton, GroupedCustomizationMenuContent, GroupedCustomizationMenuTitle

public interface CustomizationMenuContent

A CustomizationMenuContent is a part of the CustomizationMenu. A menu shows exactly one CustomizationMenuContent, but the items themselves may consists of several sub items.

Author:
Benjamin Sigg

Method Summary
 void bind(CustomizationMenuCallback callback)
          Informs this item that is going to be used.
 Component getView()
          Gets a Component which represents this item.
 void setController(bibliothek.gui.DockController controller)
          Informs this content about the DockController in whose realm it is used.
 void unbind()
          Informs this item that it is no longer used.
 

Method Detail

getView

Component getView()
Gets a Component which represents this item. If #bind() has not yet been called, or unbind() has been called, then a result of null is valid.

Returns:
the view or null if this item is not bound.

setController

void setController(bibliothek.gui.DockController controller)
Informs this content about the DockController in whose realm it is used.

Parameters:
controller - the controller, can be null

bind

void bind(CustomizationMenuCallback callback)
Informs this item that is going to be used. This method must not be called twice in a row.

Parameters:
callback - access to more detailed information about the DockStation that is showing the menu

unbind

void unbind()
Informs this item that it is no longer used. This method must not be called twive in a row, it must be called after a call to #bind().