public class GroupedCustomizationMenuContent extends java.lang.Object implements CustomizationMenuContent
CustomizationMenuContent
. The panel
can insert titles and separators between its childrenModifier and Type | Class and Description |
---|---|
class |
GroupedCustomizationMenuContent.Group
One group of
CustomizationMenuContent s |
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(java.lang.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.Group s of this menu. |
java.awt.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.
|
public GroupedCustomizationMenuContent.Group addGroup(java.lang.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 null
public int getGroupCount()
GroupedCustomizationMenuContent.Group
s 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 java.awt.Component getView()
CustomizationMenuContent
Component
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 CustomizationMenuContent
null
if this item is not bound
.public void setController(bibliothek.gui.DockController controller)
CustomizationMenuContent
DockController
in whose realm it is used.setController
in interface CustomizationMenuContent
controller
- the controller, can be null
public void bind(CustomizationMenuCallback callback)
CustomizationMenuContent
bind
in interface CustomizationMenuContent
callback
- access to more detailed information about the DockStation
that is
showing the menupublic void unbind()
CustomizationMenuContent
#bind()
.unbind
in interface CustomizationMenuContent