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.listenersBUTTON_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, setDropDownTriggerableSelectedbound, 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, waitactionisDropDownSelectable, isDropDownTriggerableaddDockActionListener, getDockableRepresentation, getIcon, getIconContexts, getText, getTooltipText, isEnabled, removeDockActionListenerbind, trigger, unbindpublic GroupedButtonDockAction(GroupKeyGenerator<? extends K> generator)
generator - the generator creating keys for Dockables
which are not yet in a groupprotected SimpleButtonAction createGroup(K key)
GroupedDockActioncreateGroup in class GroupedDockAction<K,SimpleButtonAction>key - the key of the new grouppublic <V> V createView(ViewTarget<V> target, ActionViewConverter converter, Dockable dockable)
DockActiontarget 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 DockActionV - 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.Copyright © 2017 Docking Frames. All rights reserved.