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, toString
public 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()
DockingWindowAction
getName
in class DockingWindowAction
public boolean isPerformable(DockingWindow window)
DockingWindowAction
isPerformable
in class DockingWindowAction
window
- the window on which the action will be performedpublic void perform(DockingWindow window)
DockingWindowAction
perform
in class DockingWindowAction
window
- the window on which to perform the action