public class GroupedCustomizationMenuTitle extends Object implements CustomizationMenuContent
GroupedCustomizationMenuContent as title for one group.| Constructor and Description |
|---|
GroupedCustomizationMenuTitle(String title)
Creates a new title.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind(CustomizationMenuCallback callback)
Informs this item that is going to be used.
|
Insets |
getInsets()
Gets the area around the entire title that remains empty.
|
Insets |
getTextInsets()
Gets the area around the text that should remain empty.
|
String |
getTitle()
Gets the current title text.
|
Component |
getView()
Gets a
Component which represents this item. |
void |
setController(DockController controller)
Informs this content about the
DockController in whose realm it is used. |
void |
setInsets(Insets insets)
Sets the area around the entire title that should remain empty.
|
void |
setTextInsets(Insets insets)
Sets the area around the text that should remain empty.
|
void |
setTitle(String title)
Sets the title text.
|
void |
unbind()
Informs this item that it is no longer used.
|
public GroupedCustomizationMenuTitle(String title)
title - the text of the titlepublic void setTitle(String title)
title - the new titlepublic String getTitle()
public void setTextInsets(Insets insets)
insets - the area to remain emptypublic Insets getTextInsets()
nullpublic void setInsets(Insets insets)
insets - the area to remain emptypublic Insets getInsets()
public 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.