public interface DropDownAction extends StandardDockAction
BUTTON_CONTENT_FILTER
Modifier and Type | Method and Description |
---|---|
void |
addDropDownActionListener(DropDownActionListener listener)
Adds a listener to this action.
|
DropDownFilterFactory |
getFilter(Dockable dockable)
Gets a filter that chooses the values that will be shown for this
action and its selection.
|
DockAction |
getSelection(Dockable dockable)
Gets the last selected action, which may be
null . |
DockActionSource |
getSubActions(Dockable dockable)
Gets the actions that should be shown for this action.
|
void |
removeDropDownActionListener(DropDownActionListener listener)
Removes a listener from this action.
|
void |
setSelection(Dockable dockable,
DockAction selection)
Sets the current selection.
|
addDockActionListener, getDockableRepresentation, getIcon, getIconContexts, getText, getTooltipText, isEnabled, removeDockActionListener
bind, createView, trigger, unbind
DockAction getSelection(Dockable dockable)
null
.dockable
- the Dockable for which the last action is requestednull
void setSelection(Dockable dockable, DockAction selection)
selection
should
be part of the menu
it should be selectable. The behavior of this method is not
defined if those two conditions are not fulfilled.dockable
- the dockable for which the selection has been changedselection
- the new selection, may be null
DockActionSource getSubActions(Dockable dockable)
dockable
- the Dockable
for which the actions are requestedvoid addDropDownActionListener(DropDownActionListener listener)
listener
- the listenervoid removeDropDownActionListener(DropDownActionListener listener)
listener
- the listener to removeDropDownFilterFactory getFilter(Dockable dockable)
dockable
- the dockable for which all values will be used