|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.station.toolbar.menu.GroupedCustomizationMenuContent
public class GroupedCustomizationMenuContent
The grouped customization menu is a panel showing groups of other CustomizationMenuContent. The panel
can insert titles and separators between its children
| Nested Class Summary | |
|---|---|
class |
GroupedCustomizationMenuContent.Group
One group of CustomizationMenuContents |
| Constructor Summary | |
|---|---|
GroupedCustomizationMenuContent()
|
|
| Method Summary | |
|---|---|
void |
addGroup(GroupedCustomizationMenuContent.Group group)
Adds a new group to this menu. |
GroupedCustomizationMenuContent.Group |
addGroup(String title)
Creates a new GroupedCustomizationMenuContent.Group with a new GroupedCustomizationMenuTitle, and
adds this group to this menu. |
void |
bind(CustomizationMenuCallback callback)
Informs this item that is going to be used. |
GroupedCustomizationMenuContent.Group |
getGroup(int index)
Gets the index'th group of this menu. |
int |
getGroupCount()
Gets the number of GroupedCustomizationMenuContent.Groups of this menu. |
Component |
getView()
Gets a Component which represents this item. |
void |
removeGroup(GroupedCustomizationMenuContent.Group group)
Removes group from this menu. |
void |
removeGroup(int index)
Removes the index'th group from this menu. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GroupedCustomizationMenuContent()
| Method Detail |
|---|
public GroupedCustomizationMenuContent.Group addGroup(String title)
GroupedCustomizationMenuContent.Group with a new GroupedCustomizationMenuTitle, and
adds this group to this menu.
title - the title of the group, can be null
public void addGroup(GroupedCustomizationMenuContent.Group group)
group - the new group, not nullpublic int getGroupCount()
GroupedCustomizationMenuContent.Groups of this menu.
public GroupedCustomizationMenuContent.Group getGroup(int index)
index'th group of this menu.
index - the index of the group
public void removeGroup(GroupedCustomizationMenuContent.Group group)
group from this menu. Nothing happens if this menu is currently shown.
group - the group to removepublic void removeGroup(int index)
index'th group from this menu. Nothing happens if this menu is currently shown.
index - the index of the group to removepublic Component getView()
CustomizationMenuContentComponent 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 CustomizationMenuContentnull if this item is not bound.public void setController(bibliothek.gui.DockController controller)
CustomizationMenuContentDockController in whose realm it is used.
setController in interface CustomizationMenuContentcontroller - the controller, can be nullpublic void bind(CustomizationMenuCallback callback)
CustomizationMenuContent
bind in interface CustomizationMenuContentcallback - access to more detailed information about the DockStation that is
showing the menupublic void unbind()
CustomizationMenuContent#bind().
unbind in interface CustomizationMenuContent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||