|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.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<Boolean>
bibliothek.gui.dock.facile.action.ReplaceAction
@ClientOnly public class ReplaceAction
A DockAction
that can replace a DockStation
by it's only
child. This action is only enabled, if the associated DockStation
has exactly one or zero children. This action can handle only the one
station that was provided through the constructor.
Field Summary | |
---|---|
static String |
KEY_ICON
the key uses for the IconManager to get the Icon of this action |
Fields inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction |
---|
listeners |
Constructor Summary | |
---|---|
ReplaceAction(DockController controller)
Sets up this action. |
Method Summary | |
---|---|
void |
action(Dockable dockable)
Invoked when this action is triggered by the user. |
void |
bound(Dockable dockable)
Invoked by this AbstractStandardDockAction when a Dockable
was bound to this action the first time. |
protected Boolean |
createGroupKey(Dockable dockable)
Calculates the name of the group to which the dockable
should be added.Every Dockable is member of one group. |
void |
setController(DockController controller)
Called when a new controller has been set. |
void |
unbound(Dockable dockable)
Called by this AbstractStandardDockAction when the Dockable
dockable will not be used in any means by this
action. |
Methods inherited from class bibliothek.gui.dock.action.actions.GroupedButtonDockAction |
---|
createGroup, createView |
Methods inherited from class bibliothek.gui.dock.action.actions.GroupedDropDownItemAction |
---|
isDropDownSelectable, isDropDownSelectable, isDropDownTriggerable, isDropDownTriggerable, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelected |
Methods inherited from class bibliothek.gui.dock.action.actions.GroupedDockAction |
---|
ensureGroup, getAccelerator, getDisabledIcon, getDisabledIcon, getDockableRepresentation, getDockableRepresentation, getGenerator, getGroup, getGroup, getIcon, getIcon, getText, getText, getTooltip, getTooltipText, getTooltipText, groupExists, isEnabled, isEnabled, isKnown, isRemoveEmptyGroups, removeGroup, setAccelerator, setDisabledIcon, setDockableRepresentation, setEnabled, setGenerator, setGroup, setIcon, setRemoveEmptyGroups, setText, setTooltip, trigger |
Methods inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction |
---|
addDockActionListener, bind, fireActionDisabledIconChanged, 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 |
Methods inherited from interface bibliothek.gui.dock.action.DockAction |
---|
bind, createView, trigger, unbind |
Methods inherited from interface bibliothek.gui.dock.action.dropdown.DropDownItemAction |
---|
isDropDownSelectable, isDropDownTriggerable |
Field Detail |
---|
public static final String KEY_ICON
IconManager
to get the Icon
of this action
Constructor Detail |
---|
public ReplaceAction(DockController controller)
controller
- The controller for which this action is used. This
action will add some listeners to the controller. To remove those
listeners, call setController(DockController)
with a
null
argument.Method Detail |
---|
protected Boolean createGroupKey(Dockable dockable)
GroupedDockAction
dockable
should be added.Dockable
is member of one group. The membership
determines text, icon, etc. for the dockable. Whenever a
dockable is bound
to this action,
the group will be determined by this method. Later on, the group
can be changed by the method setGroup
.generator
of
this action.
createGroupKey
in class GroupedDockAction<Boolean,SimpleButtonAction>
dockable
- The Dockable
whose group has to be
found
null
is not a valid result.public void action(Dockable dockable)
ButtonDockAction
action
in interface ButtonDockAction
dockable
- The Dockable
which is associated with
this DockAction, and which shall be used for the current action.public void bound(Dockable dockable)
AbstractStandardDockAction
AbstractStandardDockAction
when a Dockable
was bound to this action the first time.
bound
in class GroupedDockAction<Boolean,SimpleButtonAction>
dockable
- The Dockable that was not known to this action
before the method was invokedpublic void unbound(Dockable dockable)
AbstractStandardDockAction
AbstractStandardDockAction
when the Dockable
dockable
will not be used in any means by this
action. Note that the AbstractStandardDockAction.bound(Dockable)
-method can be
invoked again with the dockable
.
unbound
in class GroupedDockAction<Boolean,SimpleButtonAction>
dockable
- The Dockable which will not by used in any way.public void setController(DockController controller)
ListeningDockAction
setController
in interface ListeningDockAction
controller
- the new controller
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |