net.infonode.docking.action

Class StateDependentWindowAction

public class StateDependentWindowAction extends DockingWindowAction

Performs different actions on a window depending on the state of the window.

Since: IDW 1.3.0

Version: $Revision: 1.6 $

Author: $Author: jesper $

Field Summary
static StateDependentWindowActionMAXIMIZE_RESTORE
If the window is maximized or minimized it is restored, otherwise it is maximized.
static StateDependentWindowActionMAXIMIZE_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
StringgetName()
booleanisPerformable(DockingWindow window)
voidperform(DockingWindow window)

Field Detail

MAXIMIZE_RESTORE

public static final StateDependentWindowAction MAXIMIZE_RESTORE
If the window is maximized or minimized it is restored, otherwise it is maximized.

MAXIMIZE_RESTORE_WITH_ABORT

public static final StateDependentWindowAction MAXIMIZE_RESTORE_WITH_ABORT
If the window is maximized or minimized it is restored, otherwise it is maximized. The operations can be aborted by a DockingWindowListener.

Since: IDW 1.4.0

Constructor Detail

StateDependentWindowAction

public StateDependentWindowAction(DockingWindowAction normalAction, DockingWindowAction minimizedAction, DockingWindowAction maximizedAction)
Constructor.

Parameters: normalAction the action to perform if a window is in normal state minimizedAction the action to perform if a window is minimized maximizedAction the action to perform if a window is maximized

Method Detail

getName

public String getName()

isPerformable

public boolean isPerformable(DockingWindow window)

perform

public void perform(DockingWindow window)