public class SimpleDropDownAction extends AbstractSimpleDropDownAction implements DropDownAction, SharingDropDownDockAction
BUTTON_CONTENT_FILTER
Constructor and Description |
---|
SimpleDropDownAction()
Creates a new action
|
SimpleDropDownAction(boolean monitorDisabling)
Creates a new action
|
Modifier and Type | Method and Description |
---|---|
void |
add(DockAction action)
Adds an action to the menu.
|
DockAction |
getDockAction(int index)
Gets the
index 'th action of this 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.
|
addDropDownActionListener, createView, fireSelectionChanged, getFilter, getListeners, getSelection, getSelection, removeDropDownActionListener, setFilter, setSelection, setSelection, trigger
bound, getAccelerator, getDisabledIcon, getDockableRepresentation, getDockableRepresentation, getIcon, getIcon, getIcon, getIconContexts, getText, getText, getTooltip, getTooltipText, getTooltipText, isAcceleratorGlobal, isEnabled, isEnabled, setAccelerator, setAcceleratorIsGlobal, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltip, trigger, unbound
addDockActionListener, bind, fireActionEnabledChanged, fireActionIconChanged, fireActionRepresentativeChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBoundDockables, isBound, removeDockActionListener, unbind
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAccelerator, getDisabledIcon, getDockableRepresentation, getIcon, getIcon, getText, getTooltip, getTooltipText, isAcceleratorGlobal, isEnabled, setAccelerator, setAcceleratorIsGlobal, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltip
addDropDownActionListener, getFilter, getSelection, removeDropDownActionListener, setSelection
addDockActionListener, getDockableRepresentation, getIcon, getIconContexts, getText, getTooltipText, isEnabled, removeDockActionListener
bind, createView, trigger, unbind
public SimpleDropDownAction()
public SimpleDropDownAction(boolean monitorDisabling)
monitorDisabling
- whether the current DisablingStrategy
should be monitoredpublic void add(DockAction action)
SharingDropDownDockAction
add
in interface SharingDropDownDockAction
action
- the action to addpublic void insert(int index, DockAction action)
SharingDropDownDockAction
insert
in interface SharingDropDownDockAction
index
- the location of the actionaction
- the new actionpublic void insert(int index, DockAction... action)
SharingDropDownDockAction
insert
in interface SharingDropDownDockAction
index
- the location of the first actionaction
- the actions to addpublic void remove(int index)
SharingDropDownDockAction
remove
in interface SharingDropDownDockAction
index
- the location of the actionpublic DockAction getDockAction(int index)
index
'th action of this menu.index
- the index of an actionindex
public int size()
SharingDropDownDockAction
size
in interface SharingDropDownDockAction
public void remove(DockAction action)
SharingDropDownDockAction
action
from the menu.remove
in interface SharingDropDownDockAction
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