K
- the type of key used to distinguish groupspublic abstract class GroupedButtonDockAction<K> extends GroupedDropDownItemAction<K,SimpleButtonAction> implements ButtonDockAction
GroupedDockAction
that provides the functionality of
a ButtonDockAction
.listeners
BUTTON_CONTENT_FILTER
Constructor and Description |
---|
GroupedButtonDockAction(GroupKeyGenerator<? extends K> generator)
Creates a new action.
|
Modifier and Type | Method and Description |
---|---|
protected SimpleButtonAction |
createGroup(K key)
Creates a new group.
|
<V> V |
createView(ViewTarget<V> target,
ActionViewConverter converter,
Dockable dockable)
Creates a view for this action, for the platform
target and
with help of converter . |
isDropDownSelectable, isDropDownSelectable, isDropDownTriggerable, isDropDownTriggerable, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelected
bound, 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, unbound
addDockActionListener, bind, fireActionEnabledChanged, fireActionIconChanged, fireActionRepresentativeChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBoundDockables, isBound, removeDockActionListener, unbind
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
action
isDropDownSelectable, isDropDownTriggerable
addDockActionListener, getDockableRepresentation, getIcon, getIconContexts, getText, getTooltipText, isEnabled, removeDockActionListener
bind, trigger, unbind
public GroupedButtonDockAction(GroupKeyGenerator<? extends K> generator)
generator
- the generator creating keys for Dockables
which are not yet in a groupprotected SimpleButtonAction createGroup(K key)
GroupedDockAction
createGroup
in class GroupedDockAction<K,SimpleButtonAction>
key
- the key of the new grouppublic <V> V createView(ViewTarget<V> target, ActionViewConverter converter, Dockable dockable)
DockAction
target
and
with help of converter
. Clients might use their own
code to create a new view, but the preferred way is to call
ActionViewConverter.createView(ActionType, DockAction, ViewTarget, Dockable)
with an ActionType
that fits to this DockAction.createView
in interface DockAction
V
- the type of view requestedtarget
- The platform on which the view will be usedconverter
- A set of methods that can be used to create a viewdockable
- The Dockable for which the view will be shown. Note that
this action may not yet be bound
to this action.