Package jexer

Class TCommand


  • public class TCommand
    extends java.lang.Object
    This class encapsulates a user command event. User commands can be generated by menu actions, keyboard accelerators, and other UI elements. Commands can operate on both the application and individual widgets.
    • Field Detail

      • ABORT

        public static final int ABORT
        Immediately abort the application (e.g. remote side closed connection).
        See Also:
        Constant Field Values
      • CUT

        public static final int CUT
        Cut selected text and copy to the clipboard.
        See Also:
        Constant Field Values
      • CLEAR

        public static final int CLEAR
        Clear selected text without copying it to the clipboard.
        See Also:
        Constant Field Values
      • WINDOW_MOVE

        public static final int WINDOW_MOVE
        Move (move/resize) window.
        See Also:
        Constant Field Values
      • WINDOW_ZOOM

        public static final int WINDOW_ZOOM
        Zoom (maximize/restore) window.
        See Also:
        Constant Field Values
      • WINDOW_NEXT

        public static final int WINDOW_NEXT
        Next window (like Alt-TAB).
        See Also:
        Constant Field Values
      • WINDOW_PREVIOUS

        public static final int WINDOW_PREVIOUS
        Previous window (like Shift-Alt-TAB).
        See Also:
        Constant Field Values
      • BACKEND_DISCONNECT

        public static final int BACKEND_DISCONNECT
        Backend disconnected.
        See Also:
        Constant Field Values
      • cmAbort

        public static final TCommand cmAbort
        Immediately abort the application (e.g. remote side closed connection).
      • cmExit

        public static final TCommand cmExit
        Exit application.
      • cmQuit

        public static final TCommand cmQuit
        Exit application.
      • cmOpen

        public static final TCommand cmOpen
        File open dialog.
      • cmShell

        public static final TCommand cmShell
        Spawn OS shell window.
      • cmCut

        public static final TCommand cmCut
        Cut selected text and copy to the clipboard.
      • cmCopy

        public static final TCommand cmCopy
        Copy selected text to clipboard.
      • cmPaste

        public static final TCommand cmPaste
        Paste from clipboard.
      • cmClear

        public static final TCommand cmClear
        Clear selected text without copying it to the clipboard.
      • cmTile

        public static final TCommand cmTile
        Tile windows.
      • cmCascade

        public static final TCommand cmCascade
        Cascade windows.
      • cmCloseAll

        public static final TCommand cmCloseAll
        Close all windows.
      • cmWindowMove

        public static final TCommand cmWindowMove
        Move (move/resize) window.
      • cmWindowZoom

        public static final TCommand cmWindowZoom
        Zoom (maximize/restore) window.
      • cmWindowNext

        public static final TCommand cmWindowNext
        Next window (like Alt-TAB).
      • cmWindowPrevious

        public static final TCommand cmWindowPrevious
        Previous window (like Shift-Alt-TAB).
      • cmWindowClose

        public static final TCommand cmWindowClose
        Close window.
      • cmHelp

        public static final TCommand cmHelp
        Enter help system.
      • cmSave

        public static final TCommand cmSave
        Save file.
      • cmMenu

        public static final TCommand cmMenu
        Enter first menu.
      • cmBackendDisconnect

        public static final TCommand cmBackendDisconnect
        Backend disconnected.
    • Constructor Detail

      • TCommand

        public TCommand​(int type)
        Public constructor.
        Parameters:
        type - the Type of command, one of EXIT, CASCADE, etc.
    • Method Detail

      • toString

        public final java.lang.String toString()
        Make human-readable description of this TCommand.
        Overrides:
        toString in class java.lang.Object
        Returns:
        displayable String
      • equals

        public final boolean equals​(java.lang.Object rhs)
        Comparison check. All fields must match to return true.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        rhs - another TCommand instance
        Returns:
        true if all fields are equal
      • hashCode

        public int hashCode()
        Hashcode uses all fields in equals().
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the hash