|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.station.stack.tab.AbstractTabPaneComponent bibliothek.gui.dock.station.stack.menu.AbstractCombinedMenu bibliothek.gui.dock.station.stack.menu.ButtonCombinedMenu<B>
B
- the button created and used by this menupublic abstract class ButtonCombinedMenu<B extends Component>
A CombinedMenu
intended to be subclasses. Subclasses build a simple Component
which serves as some
kind of button, and allow this menu to set the icon, text, etc.. through a BasicButtonModel
.
Constructor Summary | |
---|---|
ButtonCombinedMenu(TabPane pane,
CombinedHandler<? super AbstractCombinedMenu> handler)
Creates a new menu. |
Method Summary | |
---|---|
protected void |
backgroundChanged(BackgroundPaint paint)
Called if the background algorithm has been exchanged. |
protected abstract B |
createButton(BasicTrigger trigger)
Creates a new button for this menu. |
protected Component |
createComponent()
Creates the button which will always be visible. |
protected void |
ensureComponent()
Ensures that AbstractCombinedMenu.createComponent() is called and its result
stored. |
B |
getButton()
Gets the button that was created by createButton(BasicTrigger) . |
protected abstract BasicButtonModel |
getModel(B button)
Gets a BasicButtonModel which is used to interact with button , this method
may be called many times for the same button. |
protected void |
selected(Dockable dockable)
Called if this menu was open, an element was selected and the menu closed. |
void |
setController(DockController controller)
Sets the controller in whose realm this menu is used. |
Methods inherited from class bibliothek.gui.dock.station.stack.menu.AbstractCombinedMenu |
---|
addTabMenuListener, closed, getBackground, getComponent, getController, getDockable, getDockableCount, getDockables, getZOrder, insert, isPaneVisible, open, remove, removeTabMenuListener, setEnabled, setIcon, setPaneVisible, setText, setTooltip, setZOrder, tabMenuListeners |
Methods inherited from class bibliothek.gui.dock.station.stack.tab.AbstractTabPaneComponent |
---|
getBounds, getMaximumSize, getMinimumSize, getOrientation, getOverlap, getPreferredSize, getTabParent, setBounds, setOrientation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bibliothek.gui.dock.station.stack.tab.TabPaneComponent |
---|
getBounds, getMaximumSize, getMinimumSize, getOverlap, getPreferredSize, getTabParent, setBounds, setOrientation |
Constructor Detail |
---|
public ButtonCombinedMenu(TabPane pane, CombinedHandler<? super AbstractCombinedMenu> handler)
pane
- the owner of this menuhandler
- handler for making this menu visible or invisible and change the z orderMethod Detail |
---|
public void setController(DockController controller)
CombinedMenu
setController
in interface CombinedMenu
setController
in class AbstractCombinedMenu
controller
- the realmprotected void backgroundChanged(BackgroundPaint paint)
AbstractCombinedMenu
backgroundChanged
in class AbstractCombinedMenu
paint
- the new background algorithm, can be null
protected Component createComponent()
AbstractCombinedMenu
AbstractCombinedMenu
.
createComponent
in class AbstractCombinedMenu
public B getButton()
createButton(BasicTrigger)
.
null
protected abstract B createButton(BasicTrigger trigger)
Component
.
trigger
- a trigger to call AbstractCombinedMenu.open()
, can be ignored.
protected abstract BasicButtonModel getModel(B button)
BasicButtonModel
which is used to interact with button
, this method
may be called many times for the same button.
button
- the button whose model is requested
null
protected void ensureComponent()
AbstractCombinedMenu
AbstractCombinedMenu.createComponent()
is called and its result
stored.
ensureComponent
in class AbstractCombinedMenu
protected void selected(Dockable dockable)
AbstractCombinedMenu
selected
in class AbstractCombinedMenu
dockable
- the selected element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |