public class StateDependentWindowAction extends DockingWindowAction
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
StateDependentWindowAction(DockingWindowAction normalAction,
DockingWindowAction minimizedAction,
DockingWindowAction maximizedAction)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getAction, getIcon, toStringpublic static final StateDependentWindowAction MAXIMIZE_RESTORE
public static final StateDependentWindowAction MAXIMIZE_RESTORE_WITH_ABORT
DockingWindowListener.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 maximizedpublic java.lang.String getName()
DockingWindowActiongetName in class DockingWindowActionpublic boolean isPerformable(DockingWindow window)
DockingWindowActionisPerformable in class DockingWindowActionwindow - the window on which the action will be performedpublic void perform(DockingWindow window)
DockingWindowActionperform in class DockingWindowActionwindow - the window on which to perform the action