public class TTerminalWindow extends TScrollableWindow
hScroller, vScroller
ABSOLUTEXY, CENTERED, HIDEONCLOSE, inKeyboardResize, inWindowMove, inWindowResize, MODAL, mouse, NOCLOSEBOX, NOZOOMBOX, OVERRIDEMENU, RESIZABLE, statusBar
Constructor and Description |
---|
TTerminalWindow(TApplication application,
int x,
int y,
int flags)
Public constructor spawns a shell.
|
TTerminalWindow(TApplication application,
int x,
int y,
int flags,
boolean closeOnExit)
Public constructor spawns a shell.
|
TTerminalWindow(TApplication application,
int x,
int y,
int flags,
java.lang.String[] command)
Public constructor spawns a custom command line.
|
TTerminalWindow(TApplication application,
int x,
int y,
int flags,
java.lang.String[] command,
boolean closeOnExit)
Public constructor spawns a custom command line.
|
TTerminalWindow(TApplication application,
int x,
int y,
java.lang.String commandLine)
Public constructor spawns a custom command line.
|
TTerminalWindow(TApplication application,
int x,
int y,
java.lang.String commandLine,
boolean closeOnExit)
Public constructor spawns a custom command line.
|
Modifier and Type | Method and Description |
---|---|
void |
draw()
Draw the display buffer.
|
boolean |
hasHiddenMouse()
Returns true if this window does not want the application-wide mouse
cursor drawn over it.
|
void |
onKeypress(TKeypressEvent keypress)
Handle keystrokes.
|
void |
onMouseDown(TMouseEvent mouse)
Handle mouse press events.
|
void |
onMouseMotion(TMouseEvent mouse)
Handle mouse motion events.
|
void |
onMouseUp(TMouseEvent mouse)
Handle mouse release events.
|
void |
onResize(TResizeEvent resize)
Handle window/screen resize events.
|
void |
onShellExit()
Hook for subclasses to be notified of the shell termination.
|
void |
reflowData()
Resize scrollbars for a new width/height.
|
bigHorizontalDecrement, bigHorizontalIncrement, bigVerticalDecrement, bigVerticalIncrement, getBottomValue, getHorizontalBigChange, getHorizontalScroller, getHorizontalSmallChange, getHorizontalValue, getLeftValue, getRightValue, getTopValue, getVerticalBigChange, getVerticalScroller, getVerticalSmallChange, getVerticalValue, horizontalDecrement, horizontalIncrement, maximize, mouseOnHorizontalScroller, mouseOnVerticalScroller, placeScrollbars, restore, setBottomValue, setHorizontalBigChange, setHorizontalSmallChange, setHorizontalValue, setLeftValue, setRightValue, setTopValue, setVerticalBigChange, setVerticalSmallChange, setVerticalValue, toBottom, toEnd, toHome, toLeft, toRight, toTop, verticalDecrement, verticalIncrement
activate, addShortcutKeypress, center, clearShortcutKeypresses, close, getApplication, getBackground, getBorder, getBorderControls, getScreen, getStatusBar, getTitle, getZ, hasCloseBox, hasOverriddenMenu, hasZoomBox, hide, inMovements, isHidden, isModal, isShortcutKeypress, isShown, mouseOnClose, mouseOnMaximize, mouseOnResize, newStatusBar, onClose, onCommand, onFocus, onHide, onMenu, onPreClose, onShow, onUnfocus, removeShortcutKeypress, setHiddenMouse, setMaximumWindowHeight, setMaximumWindowWidth, setMinimumWindowHeight, setMinimumWindowWidth, setTitle, setZ, show, stopMovements, toString
activate, activate, activateAll, addButton, addCalendar, addCheckBox, addComboBox, addDirectoryList, addDirectoryList, addDirectoryList, addDirectoryList, addEditor, addField, addField, addField, addImage, addImage, addLabel, addLabel, addLabel, addLabel, addLabel, addLabel, addList, addList, addList, addList, addPanel, addPasswordField, addPasswordField, addPasswordField, addProgressBar, addRadioGroup, addSpinner, addSplitPane, addTable, addTable, addText, addText, addTreeViewWidget, addTreeViewWidget, compareTo, doRepaint, drawBox, drawBox, drawBoxShadow, fileOpenBox, fileOpenBox, fileOpenBox, fileOpenBox, fileSaveBox, getAbsoluteX, getAbsoluteY, getActiveChild, getAttrXY, getChildren, getCursorAbsoluteX, getCursorAbsoluteY, getCursorX, getCursorY, getHeight, getLayoutManager, getParent, getTheme, getWidth, getWindow, getX, getY, handleEvent, hLineXY, inputBox, inputBox, inputBox, isAbsoluteActive, isActive, isCursorVisible, isDrawable, isEnabled, isVisible, messageBox, messageBox, mouseWouldHit, onIdle, onMouseDoubleClick, putAll, putAttrXY, putAttrXY, putCharXY, putCharXY, putCharXY, putStringXY, putStringXY, remove, remove, remove, remove, removeAll, resetTabOrder, setActive, setCursorVisible, setCursorX, setCursorY, setDimensions, setEnabled, setHeight, setLayoutManager, setParent, setupForTWindow, setVisible, setWidth, setWindow, setX, setY, splitHorizontal, splitVertical, switchWidget, toPrettyString, toPrettyString, vLineXY
public TTerminalWindow(TApplication application, int x, int y, java.lang.String commandLine)
application
- TApplication that manages this windowx
- column relative to parenty
- row relative to parentcommandLine
- the command line to executepublic TTerminalWindow(TApplication application, int x, int y, java.lang.String commandLine, boolean closeOnExit)
application
- TApplication that manages this windowx
- column relative to parenty
- row relative to parentcommandLine
- the command line to executecloseOnExit
- if true, close the window when the command exitspublic TTerminalWindow(TApplication application, int x, int y, int flags, java.lang.String[] command)
application
- TApplication that manages this windowx
- column relative to parenty
- row relative to parentflags
- mask of CENTERED, MODAL, or RESIZABLEcommand
- the command line to executepublic TTerminalWindow(TApplication application, int x, int y, int flags, java.lang.String[] command, boolean closeOnExit)
application
- TApplication that manages this windowx
- column relative to parenty
- row relative to parentflags
- mask of CENTERED, MODAL, or RESIZABLEcommand
- the command line to executecloseOnExit
- if true, close the window when the command exitspublic TTerminalWindow(TApplication application, int x, int y, int flags)
application
- TApplication that manages this windowx
- column relative to parenty
- row relative to parentflags
- mask of CENTERED, MODAL, or RESIZABLEpublic TTerminalWindow(TApplication application, int x, int y, int flags, boolean closeOnExit)
application
- TApplication that manages this windowx
- column relative to parenty
- row relative to parentflags
- mask of CENTERED, MODAL, or RESIZABLEcloseOnExit
- if true, close the window when the shell exitspublic void onResize(TResizeEvent resize)
onResize
in class TScrollableWindow
resize
- resize eventpublic void reflowData()
reflowData
in class TScrollableWindow
public void onKeypress(TKeypressEvent keypress)
onKeypress
in class TWindow
keypress
- keystroke eventpublic void onMouseDown(TMouseEvent mouse)
onMouseDown
in class TWindow
mouse
- mouse button press eventpublic void onMouseUp(TMouseEvent mouse)
public void onMouseMotion(TMouseEvent mouse)
onMouseMotion
in class TWindow
mouse
- mouse motion eventpublic boolean hasHiddenMouse()
hasHiddenMouse
in class TWindow
public void onShellExit()
Copyright © 2019 Kevin Lamonte. Licensed MIT.