bibliothek.gui.dock.action.actions
Class GroupedButtonDockAction<K>
java.lang.Object
bibliothek.gui.dock.action.actions.AbstractStandardDockAction
bibliothek.gui.dock.action.actions.GroupedDockAction<K,D>
bibliothek.gui.dock.action.actions.GroupedDropDownItemAction<K,SimpleButtonAction>
bibliothek.gui.dock.action.actions.GroupedButtonDockAction<K>
- Type Parameters:
K
- the type of key used to distinguish groups
- All Implemented Interfaces:
- ButtonDockAction, DockAction, DropDownItemAction, StandardDockAction, StandardDropDownItemAction
- Direct Known Subclasses:
- ReplaceAction, ScreenFullscreenAction, SplitFullScreenAction
public abstract class GroupedButtonDockAction<K>
- extends GroupedDropDownItemAction<K,SimpleButtonAction>
- implements ButtonDockAction
A GroupedDockAction
that provides the functionality of
a ButtonDockAction
.
- Author:
- Benjamin Sigg
Methods inherited from class bibliothek.gui.dock.action.actions.GroupedDockAction |
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 |
Methods inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction |
addDockActionListener, bind, fireActionEnabledChanged, fireActionIconChanged, fireActionRepresentativeChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBoundDockables, isBound, removeDockActionListener, unbind |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroupedButtonDockAction
public GroupedButtonDockAction(GroupKeyGenerator<? extends K> generator)
- Creates a new action.
- Parameters:
generator
- the generator creating keys for Dockables
which are not yet in a group
createGroup
protected SimpleButtonAction createGroup(K key)
- Description copied from class:
GroupedDockAction
- Creates a new group.
- Specified by:
createGroup
in class GroupedDockAction<K,SimpleButtonAction>
- Parameters:
key
- the key of the new group
- Returns:
- the new group
createView
public <V> V createView(ViewTarget<V> target,
ActionViewConverter converter,
Dockable dockable)
- Description copied from interface:
DockAction
- Creates a view for this action, for the platform
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.
- Specified by:
createView
in interface DockAction
- Type Parameters:
V
- the type of view requested- Parameters:
target
- 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.
- Returns:
- a new view