K - the type of the keys used for groupsD - the type of model used as grouppublic abstract class GroupedDropDownItemAction<K,D extends SimpleDropDownItemAction> extends GroupedDockAction<K,D> implements StandardDropDownItemAction
DropDownAction.listenersBUTTON_CONTENT_FILTER| Constructor and Description |
|---|
GroupedDropDownItemAction(GroupKeyGenerator<? extends K> generator)
Creates a new action.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDropDownSelectable(Dockable dockable)
Tells whether this action can be selected by a
DropDownAction,
if it is shown for dockable. |
boolean |
isDropDownSelectable(Object key)
Tells whether the group
key can be selected by a
DropDownAction. |
boolean |
isDropDownTriggerable(Dockable dockable,
boolean selected)
Tells whether this action can be triggered if it is shown as child of
a
DropDownAction. |
boolean |
isDropDownTriggerable(Object key,
boolean selected)
Tells whether the group
key can be triggered by a
DropDownAction. |
void |
setDropDownSelectable(K key,
boolean selectable)
Sets whether the group
key can be selected by a
DropDownAction. |
void |
setDropDownTriggerableNotSelected(K key,
boolean triggerable)
Sets whether the group
key can be triggered if the event
occurs in a menu. |
void |
setDropDownTriggerableSelected(K key,
boolean triggerable)
Sets whether the group
key can be triggered if the event
occurs on a drop-down-button. |
bound, createGroup, createGroupKey, ensureGroup, getAccelerator, getDisabledIcon, getDisabledIcon, getDockableRepresentation, getDockableRepresentation, getGenerator, getGroup, getGroup, getIcon, getIcon, getIcon, getIconContexts, getText, getText, getTooltip, getTooltipText, getTooltipText, groupExists, isEnabled, isEnabled, isKnown, isRemoveEmptyGroups, removeGroup, setAccelerator, setDisabledIcon, setDockableRepresentation, setEnabled, setGenerator, setGroup, setIcon, setIcon, setRemoveEmptyGroups, setText, setTooltip, trigger, unboundaddDockActionListener, bind, fireActionEnabledChanged, fireActionIconChanged, fireActionRepresentativeChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBoundDockables, isBound, removeDockActionListener, unbindclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddDockActionListener, getDockableRepresentation, getIcon, getIconContexts, getText, getTooltipText, isEnabled, removeDockActionListenerbind, createView, trigger, unbindpublic GroupedDropDownItemAction(GroupKeyGenerator<? extends K> generator)
generator - the generator that will be used to get a key for
Dockables which do not yet have a key. The generator can be null
and set later through the method GroupedDockAction.setGenerator(GroupKeyGenerator)public boolean isDropDownSelectable(Dockable dockable)
DropDownItemActionDropDownAction,
if it is shown for dockable.isDropDownSelectable in interface DropDownItemActiondockable - the Dockable for which the action is showntrue if the action can be selectedpublic boolean isDropDownSelectable(Object key)
key can be selected by a
DropDownAction.key - the name of the grouptrue if the group can be selectedpublic void setDropDownSelectable(K key, boolean selectable)
key can be selected by a
DropDownAction.key - the name of the groupselectable - true if the group can be selectedpublic boolean isDropDownTriggerable(Dockable dockable, boolean selected)
DropDownItemActionDropDownAction.isDropDownTriggerable in interface DropDownItemActiondockable - the Dockable for which the action is shownselected - true if the action is selected (the action
is triggered because the user clicks onto the DropDownAction),
or false if this action is just in a menu.true if the action can be triggeredpublic boolean isDropDownTriggerable(Object key, boolean selected)
key can be triggered by a
DropDownAction.key - the name of the groupselected - true if the event will be on a
drop-down-button itself, false if the event is
in the menu.true if the group can be triggeredpublic void setDropDownTriggerableSelected(K key, boolean triggerable)
key can be triggered if the event
occurs on a drop-down-button.key - the name of the grouptriggerable - true if the group can be triggeredpublic void setDropDownTriggerableNotSelected(K key, boolean triggerable)
key can be triggered if the event
occurs in a menu.key - the name of the grouptriggerable - true if the group can be triggeredCopyright © 2017 Docking Frames. All rights reserved.