public class GroupedCustomizationMenuContent extends Object implements CustomizationMenuContent
CustomizationMenuContent. The panel
can insert titles and separators between its children| Modifier and Type | Class and Description |
|---|---|
class |
GroupedCustomizationMenuContent.Group
One group of
CustomizationMenuContents |
| Constructor and Description |
|---|
GroupedCustomizationMenuContent() |
| Modifier and Type | Method and Description |
|---|---|
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(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.
|
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 nullpublic 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 grouppublic 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(DockController controller)
CustomizationMenuContentDockController in whose realm it is used.setController in interface CustomizationMenuContentcontroller - the controller, can be nullpublic void bind(CustomizationMenuCallback callback)
CustomizationMenuContentbind in interface CustomizationMenuContentcallback - access to more detailed information about the DockStation that is
showing the menupublic void unbind()
CustomizationMenuContent#bind().unbind in interface CustomizationMenuContentCopyright © 2018. All rights reserved.