|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.action.actions.AbstractStandardDockAction
bibliothek.gui.dock.action.actions.SimpleDockAction
bibliothek.gui.dock.action.actions.SimpleMenuAction
public class SimpleMenuAction
An action that provides a menu which contains other actions.
Field Summary |
---|
Fields inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction |
---|
listeners |
Constructor Summary | |
---|---|
SimpleMenuAction()
Creates a new action. |
|
SimpleMenuAction(DockActionSource menu)
Creates a new action. |
Method Summary | ||
---|---|---|
|
createView(ViewTarget<V> target,
ActionViewConverter converter,
Dockable dockable)
Creates a view for this action, for the platform target and
with help of converter . |
|
DockActionSource |
getMenu()
Gets the menu of this action |
|
DockActionSource |
getMenu(Dockable dockable)
Returns the menu that is represented by this action. |
|
void |
setMenu(DockActionSource menu)
Sets a menu that will be displayed instead of this action. |
Methods inherited from class bibliothek.gui.dock.action.actions.SimpleDockAction |
---|
getDisabledIcon, getDisabledIcon, getIcon, getIcon, getText, getText, getTooltipText, getTooltipText, isEnabled, isEnabled, setDisabledIcon, setEnabled, setIcon, setText, setTooltipText |
Methods inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction |
---|
addDockActionListener, bind, bound, fireActionDisabledIconChanged, fireActionEnabledChanged, fireActionIconChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBoundDockables, isBound, removeDockActionListener, unbind, unbound |
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.action.StandardDockAction |
---|
addDockActionListener, getDisabledIcon, getIcon, getText, getTooltipText, isEnabled, removeDockActionListener |
Methods inherited from interface bibliothek.gui.dock.action.DockAction |
---|
bind, unbind |
Constructor Detail |
---|
public SimpleMenuAction()
setMenu(DockActionSource)
public SimpleMenuAction(DockActionSource menu)
menu
- the menu that is shown for this actionMethod Detail |
---|
public void setMenu(DockActionSource menu)
menu
- the menu, may be null
public DockActionSource getMenu(Dockable dockable)
MenuDockAction
getMenu
in interface MenuDockAction
dockable
- the Dockable for which the menu is shown
null
public DockActionSource getMenu()
public <V> V createView(ViewTarget<V> target, ActionViewConverter converter, Dockable dockable)
DockAction
target
and
with help of converter
. Clients might use their own
code to create a new view, but the preferred way is to call
ActionViewConverter.createView(ActionType, DockAction, ViewTarget, Dockable)
with an ActionType
that fits to this DockAction.
createView
in interface DockAction
V
- the type of view requestedtarget
- The platform on which the view will be usedconverter
- A set of methods that can be used to create a viewdockable
- The Dockable for which the view will be shown. Note that
this action may not yet be bound
to this action.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |