|
||||||||||
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<java.lang.Boolean>
bibliothek.gui.dock.action.actions.ReplaceAction
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.
Nested Class Summary | |
---|---|
private class |
ReplaceAction.Listener
A listener changing the icon of this action |
Field Summary | |
---|---|
private DockController |
controller
|
private DockStationListener |
dockStationListener
A listener to the stations known to this action |
private ReplaceAction.Listener |
listener
|
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 |
binded(Dockable dockable)
Invoked by this AbstractStandardDockAction when a Dockable
was binded to this action the first time. |
protected java.lang.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 |
unbinded(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, getDisabledIcon, getDisabledIcon, getGenerator, getGroup, getGroup, getIcon, getIcon, getText, getText, getTooltipText, getTooltipText, groupExists, isEnabled, isEnabled, isKnown, isRemoveEmptyGroups, removeGroup, setDisabledIcon, setEnabled, setGenerator, setGroup, setIcon, setRemoveEmptyGroups, setText, setTooltipText |
Methods inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction |
---|
addDockActionListener, bind, fireActionDisabledIconChanged, fireActionEnabledChanged, fireActionIconChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBindeds, isBinded, 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, unbind |
Methods inherited from interface bibliothek.gui.dock.action.dropdown.DropDownItemAction |
---|
isDropDownSelectable, isDropDownTriggerable |
Field Detail |
---|
private DockStationListener dockStationListener
private DockController controller
private ReplaceAction.Listener listener
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 java.lang.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 binded
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<java.lang.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 binded(Dockable dockable)
AbstractStandardDockAction
AbstractStandardDockAction
when a Dockable
was binded to this action the first time.
binded
in class GroupedDockAction<java.lang.Boolean,SimpleButtonAction>
dockable
- The Dockable that was not known to this action
before the method was invokedpublic void unbinded(Dockable dockable)
AbstractStandardDockAction
AbstractStandardDockAction
when the Dockable
dockable
will not be used in any means by this
action. Note that the AbstractStandardDockAction.binded(Dockable)
-method can be
invoked again with the dockable
.
unbinded
in class GroupedDockAction<java.lang.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 |