|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DropDownAction
A DockAction that consists of other actions. The user can either open a popup menu and select one of the subactions, or click onto this action to trigger the last selected action again.
Method Summary | |
---|---|
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. |
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 |
Method Detail |
---|
DockAction getSelection(Dockable dockable)
null
.
dockable
- the Dockable for which the last action is requested
null
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 requested
void 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |