|
||||||||||
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 CustomizationMenuContent s |
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.Group s 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 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 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()
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |