bibliothek.gui.dock.action.actions
Class SimpleDropDownAction
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
- All Implemented Interfaces:
- SharingDropDownDockAction, SharingStandardDockAction, DockAction, DropDownAction, StandardDockAction
public class SimpleDropDownAction
- extends AbstractSimpleDropDownAction
- implements DropDownAction, SharingDropDownDockAction
A dropdown action that has the same properties for all Dockables.
- Author:
- Benjamin Sigg
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.actions.SharingStandardDockAction |
getAccelerator, getDisabledIcon, getDockableRepresentation, getIcon, getText, getTooltip, getTooltipText, isEnabled, setAccelerator, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setText, setTooltip |
SimpleDropDownAction
public SimpleDropDownAction()
add
public void add(DockAction action)
- Description copied from interface:
SharingDropDownDockAction
- Adds an action to the menu.
- Specified by:
add
in interface SharingDropDownDockAction
- Parameters:
action
- the action to add
insert
public void insert(int index,
DockAction action)
- Description copied from interface:
SharingDropDownDockAction
- Inserts an action into the menu.
- Specified by:
insert
in interface SharingDropDownDockAction
- Parameters:
index
- the location of the actionaction
- the new action
insert
public void insert(int index,
DockAction... action)
- Description copied from interface:
SharingDropDownDockAction
- Inserts a list of actions into the menu.
- Specified by:
insert
in interface SharingDropDownDockAction
- Parameters:
index
- the location of the first actionaction
- the actions to add
remove
public void remove(int index)
- Description copied from interface:
SharingDropDownDockAction
- Removes an action from the menu.
- Specified by:
remove
in interface SharingDropDownDockAction
- Parameters:
index
- the location of the action
size
public int size()
- Description copied from interface:
SharingDropDownDockAction
- Gets the number of actions shown in the menu.
- Specified by:
size
in interface SharingDropDownDockAction
- Returns:
- the number of actions
remove
public void remove(DockAction action)
- Description copied from interface:
SharingDropDownDockAction
- Removes
action
from the menu.
- Specified by:
remove
in interface SharingDropDownDockAction
- Parameters:
action
- the action to remove
getSubActions
protected DockActionSource getSubActions()
- Description copied from class:
AbstractSimpleDropDownAction
- Gets the
DockActionSource
which contains all the actions of this dropdown menu.
- Specified by:
getSubActions
in class AbstractSimpleDropDownAction
- Returns:
- all the actions, not
null
getSubActions
public DefaultDockActionSource getSubActions(Dockable dockable)
- Description copied from interface:
DropDownAction
- Gets the actions that should be shown for this action.
- Specified by:
getSubActions
in interface DropDownAction
- Overrides:
getSubActions
in class AbstractSimpleDropDownAction
- Parameters:
dockable
- the Dockable
for which the actions are requested
- Returns:
- the children