Class StateDependentWindowAction

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • 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