|
||||||||||
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
public class 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. |
private DockingWindowAction |
maximizedAction
|
private DockingWindowAction |
minimizedAction
|
private DockingWindowAction |
normalAction
|
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
StateDependentWindowAction(DockingWindowAction normalAction,
DockingWindowAction minimizedAction,
DockingWindowAction maximizedAction)
Constructor. |
Method Summary | |
---|---|
private DockingWindowAction |
getActionProvider(DockingWindow window)
|
java.lang.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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
public static final StateDependentWindowAction MAXIMIZE_RESTORE
public static final StateDependentWindowAction MAXIMIZE_RESTORE_WITH_ABORT
DockingWindowListener
.
private DockingWindowAction normalAction
private DockingWindowAction minimizedAction
private DockingWindowAction maximizedAction
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 java.lang.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 actionprivate DockingWindowAction getActionProvider(DockingWindow window)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |