|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.action.actions.AbstractStandardDockAction bibliothek.gui.dock.action.actions.SimpleDockAction bibliothek.gui.dock.action.actions.AbstractSimpleDropDownAction bibliothek.gui.dock.action.actions.SimpleDropDownAction
public class SimpleDropDownAction
A dropdown action that has the same properties for all Dockables.
Constructor Summary | |
---|---|
SimpleDropDownAction()
|
Method Summary | |
---|---|
void |
add(DockAction action)
Adds an action to the menu. |
protected DockActionSource |
getSubActions()
Gets the DockActionSource which contains all the actions of this dropdown menu. |
DefaultDockActionSource |
getSubActions(Dockable dockable)
Gets the actions that should be shown for this action. |
void |
insert(int index,
DockAction... action)
Inserts a list of actions into the menu. |
void |
insert(int index,
DockAction action)
Inserts an action into the menu. |
void |
remove(DockAction action)
Removes action from the menu. |
void |
remove(int index)
Removes an action from the menu. |
int |
size()
Gets the number of actions shown in the menu. |
Methods inherited from class bibliothek.gui.dock.action.actions.AbstractSimpleDropDownAction |
---|
addDropDownActionListener, createView, fireSelectionChanged, getFilter, getListeners, getSelection, getSelection, removeDropDownActionListener, setFilter, setSelection, setSelection, trigger |
Methods inherited from class bibliothek.gui.dock.action.actions.SimpleDockAction |
---|
bound, getAccelerator, getDisabledIcon, getDisabledIcon, getDockableRepresentation, getDockableRepresentation, getIcon, getIcon, getText, getText, getTooltip, getTooltipText, getTooltipText, isEnabled, isEnabled, setAccelerator, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setText, setTooltip, trigger, unbound |
Methods inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction |
---|
addDockActionListener, bind, fireActionDisabledIconChanged, fireActionEnabledChanged, fireActionIconChanged, fireActionRepresentativeChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBoundDockables, isBound, removeDockActionListener, unbind |
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.DropDownAction |
---|
addDropDownActionListener, getFilter, getSelection, removeDropDownActionListener, setSelection |
Methods inherited from interface bibliothek.gui.dock.action.StandardDockAction |
---|
addDockActionListener, getDisabledIcon, getDockableRepresentation, getIcon, getText, getTooltipText, isEnabled, removeDockActionListener |
Methods inherited from interface bibliothek.gui.dock.action.DockAction |
---|
bind, createView, trigger, unbind |
Constructor Detail |
---|
public SimpleDropDownAction()
Method Detail |
---|
public void add(DockAction action)
action
- the action to addpublic void insert(int index, DockAction action)
index
- the location of the actionaction
- the new actionpublic void insert(int index, DockAction... action)
index
- the location of the first actionaction
- the actions to addpublic void remove(int index)
index
- the location of the actionpublic int size()
public void remove(DockAction action)
action
from the menu.
action
- the action to removeprotected DockActionSource getSubActions()
AbstractSimpleDropDownAction
DockActionSource
which contains all the actions of this dropdown menu.
getSubActions
in class AbstractSimpleDropDownAction
null
public DefaultDockActionSource getSubActions(Dockable dockable)
DropDownAction
getSubActions
in interface DropDownAction
getSubActions
in class AbstractSimpleDropDownAction
dockable
- the Dockable
for which the actions are requested
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |