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, triggerbound, 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, unboundaddDockActionListener, bind, fireActionEnabledChanged, fireActionIconChanged, fireActionRepresentativeChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBoundDockables, isBound, removeDockActionListener, unbindclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAccelerator, getDisabledIcon, getDockableRepresentation, getIcon, getIcon, getText, getTooltip, getTooltipText, isAcceleratorGlobal, isEnabled, setAccelerator, setAcceleratorIsGlobal, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltipaddDropDownActionListener, getFilter, getSelection, removeDropDownActionListener, setSelectionaddDockActionListener, getDockableRepresentation, getIcon, getIconContexts, getText, getTooltipText, isEnabled, removeDockActionListenerbind, createView, trigger, unbindpublic SimpleDropDownAction()
public SimpleDropDownAction(boolean monitorDisabling)
monitorDisabling - whether the current DisablingStrategy should be monitoredpublic void add(DockAction action)
SharingDropDownDockActionadd in interface SharingDropDownDockActionaction - the action to addpublic void insert(int index,
DockAction action)
SharingDropDownDockActioninsert in interface SharingDropDownDockActionindex - the location of the actionaction - the new actionpublic void insert(int index,
DockAction... action)
SharingDropDownDockActioninsert in interface SharingDropDownDockActionindex - the location of the first actionaction - the actions to addpublic void remove(int index)
SharingDropDownDockActionremove in interface SharingDropDownDockActionindex - the location of the actionpublic DockAction getDockAction(int index)
index'th action of this menu.index - the index of an actionindexpublic int size()
SharingDropDownDockActionsize in interface SharingDropDownDockActionpublic void remove(DockAction action)
SharingDropDownDockActionaction from the menu.remove in interface SharingDropDownDockActionaction - the action to removeprotected DockActionSource getSubActions()
AbstractSimpleDropDownActionDockActionSource which contains all the actions of this dropdown menu.getSubActions in class AbstractSimpleDropDownActionnullpublic DefaultDockActionSource getSubActions(Dockable dockable)
DropDownActiongetSubActions in interface DropDownActiongetSubActions in class AbstractSimpleDropDownActiondockable - the Dockable for which the actions are requestedCopyright © 2017 Docking Frames. All rights reserved.