|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.infonode.docking.action.DockingWindowAction
net.infonode.docking.action.StateDependentWindowAction
Performs different actions on a window depending on the state of the window.
Field Summary | |
static StateDependentWindowAction |
MAXIMIZE_RESTORE
If the window is maximized or minimized it is restored, otherwise it is maximized. |
static StateDependentWindowAction |
MAXIMIZE_RESTORE_WITH_ABORT
If the window is maximized or minimized it is restored, otherwise it is maximized. |
Constructor Summary | |
StateDependentWindowAction(DockingWindowAction normalAction,
DockingWindowAction minimizedAction,
DockingWindowAction maximizedAction)
Constructor. |
Method Summary | |
String |
getName()
Returns the name of this action. |
boolean |
isPerformable(DockingWindow window)
Returns true if this action is performable on a window. |
void |
perform(DockingWindow window)
Performs this action on a window. |
Methods inherited from class net.infonode.docking.action.DockingWindowAction |
getAction, getIcon, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final StateDependentWindowAction MAXIMIZE_RESTORE
public static final StateDependentWindowAction MAXIMIZE_RESTORE_WITH_ABORT
DockingWindowListener
.
Constructor Detail |
public StateDependentWindowAction(DockingWindowAction normalAction, DockingWindowAction minimizedAction, DockingWindowAction maximizedAction)
normalAction
- the action to perform if a window is in normal stateminimizedAction
- the action to perform if a window is minimizedmaximizedAction
- the action to perform if a window is maximizedMethod Detail |
public String getName()
DockingWindowAction
getName
in class DockingWindowAction
public boolean isPerformable(DockingWindow window)
DockingWindowAction
isPerformable
in class DockingWindowAction
window
- the window on which the action will be performed
public void perform(DockingWindow window)
DockingWindowAction
perform
in class DockingWindowAction
window
- the window on which to perform the action
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |