|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.javadocking.dockable.ActionDockable
com.javadocking.dockable.StateActionDockable
public class StateActionDockable
This action dockable is a decorator for a delegate dockable.
It adds one row of actions to the matrix of actions (Dockable.getActions()
) of the delegate.
The actions that are added, are created by the DockableStateActionFactory
.
Information on using dockables with state actions is in How to Use Dockables in The Sanaware Developer Guide.
Constructor Summary | |
---|---|
StateActionDockable(Dockable delegate,
DockableStateActionFactory dockableStateActionFactory,
int[] newDockableStates)
Constructs a decorator for the given delegate dockable. |
Method Summary | |
---|---|
javax.swing.Action[][] |
getActionsToAdd()
Sets the actions that will be added by this wrapper to the matrix of actions of the delegate. |
Methods inherited from class com.javadocking.dockable.ActionDockable |
---|
addDockingListener, addPropertyChangeListener, equals, fireDockingChanged, fireDockingWillChange, getActions, getContent, getDescription, getDock, getDockingModes, getIcon, getID, getLastDockingMode, getPossibleStates, getState, getTitle, getVisualizer, hashCode, isWithHeader, removeDockingListener, removePropertyChangeListener, setActionsToAdd, setDock, setLastDockingMode, setState, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StateActionDockable(Dockable delegate, DockableStateActionFactory dockableStateActionFactory, int[] newDockableStates)
Constructs a decorator for the given delegate dockable.
One row of actions is added to the matrix of actions (Dockable.getActions()
) of the delegate.
For every state in the given array newDockableStates
an action is created with the method DockableStateActionFactory.createDockableStateAction(Dockable, int)
.
delegate
- The decorated dockable.dockableStateActionFactory
- The factory that creates the DockableStateAction
s.newDockableStates
- The dockable states for which an action has to be added.Method Detail |
---|
public javax.swing.Action[][] getActionsToAdd()
getActionsToAdd
in class ActionDockable
ActionDockable.getActions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |