Package jexer
Class TCommand
- java.lang.Object
-
- jexer.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 Summary
Fields Modifier and Type Field Description static int
ABORT
Immediately abort the application (e.g.static int
BACKEND_DISCONNECT
Backend disconnected.static int
CASCADE
Cascade windows.static int
CLEAR
Clear selected text without copying it to the clipboard.static int
CLOSE_ALL
Close all windows.static TCommand
cmAbort
static TCommand
cmBackendDisconnect
static TCommand
cmCascade
static TCommand
cmClear
static TCommand
cmCloseAll
static TCommand
cmCopy
static TCommand
cmCut
static TCommand
cmExit
static TCommand
cmHelp
static TCommand
cmMenu
static TCommand
cmOpen
static TCommand
cmPaste
static TCommand
cmQuit
static TCommand
cmSave
static TCommand
cmShell
static TCommand
cmTile
static TCommand
cmWindowClose
static TCommand
cmWindowMove
static TCommand
cmWindowNext
static TCommand
cmWindowPrevious
static TCommand
cmWindowZoom
static int
COPY
Copy selected text to clipboard.static int
CUT
Cut selected text and copy to the clipboard.static int
EXIT
Exit application.static int
HELP
Enter help system.static int
MENU
Enter first menu.static int
OPEN
File open dialog.static int
PASTE
Paste from clipboard.static int
SAVE
Save file.static int
SHELL
Spawn OS shell window.static int
TILE
Tile windows.static int
WINDOW_CLOSE
Close window.static int
WINDOW_MOVE
Move (move/resize) window.static int
WINDOW_NEXT
Next window (like Alt-TAB).static int
WINDOW_PREVIOUS
Previous window (like Shift-Alt-TAB).static int
WINDOW_ZOOM
Zoom (maximize/restore) window.
-
Constructor Summary
Constructors Constructor Description TCommand(int type)
Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object rhs)
Comparison check.int
hashCode()
Hashcode uses all fields in equals().java.lang.String
toString()
Make human-readable description of this TCommand.
-
-
-
Field Detail
-
ABORT
public static final int ABORT
Immediately abort the application (e.g. remote side closed connection).- See Also:
- Constant Field Values
-
OPEN
public static final int OPEN
File open dialog.- See Also:
- Constant Field Values
-
EXIT
public static final int EXIT
Exit application.- See Also:
- Constant Field Values
-
SHELL
public static final int SHELL
Spawn OS shell window.- See Also:
- Constant Field Values
-
CUT
public static final int CUT
Cut selected text and copy to the clipboard.- See Also:
- Constant Field Values
-
COPY
public static final int COPY
Copy selected text to clipboard.- See Also:
- Constant Field Values
-
PASTE
public static final int PASTE
Paste from 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
-
TILE
public static final int TILE
Tile windows.- See Also:
- Constant Field Values
-
CASCADE
public static final int CASCADE
Cascade windows.- See Also:
- Constant Field Values
-
CLOSE_ALL
public static final int CLOSE_ALL
Close all windows.- 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
-
WINDOW_CLOSE
public static final int WINDOW_CLOSE
Close window.- See Also:
- Constant Field Values
-
HELP
public static final int HELP
Enter help system.- See Also:
- Constant Field Values
-
MENU
public static final int MENU
Enter first menu.- See Also:
- Constant Field Values
-
SAVE
public static final int SAVE
Save file.- 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
-
cmExit
public static final TCommand cmExit
-
cmQuit
public static final TCommand cmQuit
-
cmOpen
public static final TCommand cmOpen
-
cmShell
public static final TCommand cmShell
-
cmCut
public static final TCommand cmCut
-
cmCopy
public static final TCommand cmCopy
-
cmPaste
public static final TCommand cmPaste
-
cmClear
public static final TCommand cmClear
-
cmTile
public static final TCommand cmTile
-
cmCascade
public static final TCommand cmCascade
-
cmCloseAll
public static final TCommand cmCloseAll
-
cmWindowMove
public static final TCommand cmWindowMove
-
cmWindowZoom
public static final TCommand cmWindowZoom
-
cmWindowNext
public static final TCommand cmWindowNext
-
cmWindowPrevious
public static final TCommand cmWindowPrevious
-
cmWindowClose
public static final TCommand cmWindowClose
-
cmHelp
public static final TCommand cmHelp
-
cmSave
public static final TCommand cmSave
-
cmMenu
public static final TCommand cmMenu
-
cmBackendDisconnect
public static final TCommand cmBackendDisconnect
-
-
Method Detail
-
toString
public final java.lang.String toString()
Make human-readable description of this TCommand.- Overrides:
toString
in classjava.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 classjava.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 classjava.lang.Object
- Returns:
- the hash
-
-