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