Class StateDependentWindowAction

java.lang.Object
net.infonode.docking.action.DockingWindowAction
net.infonode.docking.action.StateDependentWindowAction
All Implemented Interfaces:
Serializable, IconProvider

public class StateDependentWindowAction extends DockingWindowAction
Performs different actions on a window depending on the state of the window.
Since:
IDW 1.3.0
See Also:
  • Field Details

    • 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 Details

    • 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 Details