protected class CustomizationButton.Button extends Object implements ToolbarGroupHeader, CustomizationMenuCallback
CustomizationMenu
.Constructor and Description |
---|
CustomizationButton.Button(ToolbarGroupDockStation station)
Creates a new button
|
Modifier and Type | Method and Description |
---|---|
void |
append(bibliothek.gui.Dockable dockable)
Adds
dockable to the station or one of its sub stations. |
void |
closed()
To be called if the menu was closed.
|
void |
destroy()
Called if this header is no longer required
|
Rectangle |
getButton()
Gets the boundaries of the button that opened this menu.
|
Component |
getComponent()
The actual component represented by this object.
|
bibliothek.gui.DockStation |
getOwner()
Gets the owner of the menu.
|
Component |
getParent()
|
boolean |
isAutoCloseAllowed()
Tells the menu whether it is currently allowed to close itself automatically.
|
void |
setOrientation(Orientation orientation)
Called before the
component is shown, and every time when
the orientation of the ToolbarGroupDockStation changes. |
public CustomizationButton.Button(ToolbarGroupDockStation station)
station
- the station on which this button will be shownpublic void destroy()
ToolbarGroupHeader
destroy
in interface ToolbarGroupHeader
public Component getComponent()
ToolbarGroupHeader
getComponent
in interface ToolbarGroupHeader
null
and must not changepublic void setOrientation(Orientation orientation)
ToolbarGroupHeader
component
is shown, and every time when
the orientation of the ToolbarGroupDockStation
changes.setOrientation
in interface ToolbarGroupHeader
orientation
- the orientation of the station, which is orthogonal to how the component is shown, not null
public Rectangle getButton()
CustomizationMenuCallback
getButton
in interface CustomizationMenuCallback
null
public Component getParent()
CustomizationMenuCallback
Component
of the menu, this Component
can be used
for example as parent of a JDialog
.getParent
in interface CustomizationMenuCallback
Component
, not null
public bibliothek.gui.DockStation getOwner()
CustomizationMenuCallback
getOwner
in interface CustomizationMenuCallback
null
public void append(bibliothek.gui.Dockable dockable)
CustomizationMenuCallback
dockable
to the station or one of its sub stations.append
in interface CustomizationMenuCallback
dockable
- the item to addpublic boolean isAutoCloseAllowed()
CustomizationMenuCallback
isAutoCloseAllowed
in interface CustomizationMenuCallback
public void closed()
CustomizationMenuCallback
closed
in interface CustomizationMenuCallback