Package jexer
Class THelpWindow
- java.lang.Object
-
- jexer.TWidget
-
- jexer.TWindow
-
- jexer.THelpWindow
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
HELP_HELP
-
Fields inherited from class jexer.TWindow
ABSOLUTEXY, CENTERED, helpTopic, HIDEONCLOSE, inKeyboardResize, inWindowMove, inWindowResize, MODAL, mouse, NOCLOSEBOX, NOZOOMBOX, OVERRIDEMENU, RESIZABLE, statusBar
-
-
Constructor Summary
Constructors Constructor Description THelpWindow(TApplication application)
Public constructor.THelpWindow(TApplication application, java.lang.String topic)
Public constructor.THelpWindow(TApplication application, Topic topic)
Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CellAttributes
getBackground()
Retrieve the background color.CellAttributes
getBorder()
Retrieve the border color.CellAttributes
getBorderControls()
Retrieve the color used by the window movement/sizing controls.void
onResize(TResizeEvent event)
Handle window/screen resize events.void
setHelpTopic(java.lang.String topic)
Set the topic to display.-
Methods inherited from class jexer.TWindow
activate, addShortcutKeypress, center, clearShortcutKeypresses, close, draw, ensureOnScreen, getApplication, getHelpTopic, getMaximumWindowHeight, getMaximumWindowWidth, getMinimumWindowHeight, getMinimumWindowWidth, getScreen, getStatusBar, getTitle, getZ, hasCloseBox, hasHiddenMouse, hasOverriddenMenu, hasZoomBox, hide, inMovements, isHidden, isModal, isResizable, isShortcutKeypress, isShown, maximize, mouseOnClose, mouseOnMaximize, mouseOnResize, newStatusBar, onClose, onCommand, onFocus, onHide, onKeypress, onMenu, onMouseDown, onMouseMotion, onMouseUp, onPreClose, onShow, onUnfocus, removeShortcutKeypress, restore, setCloseBox, setHiddenMouse, setMaximumWindowHeight, setMaximumWindowWidth, setMinimumWindowHeight, setMinimumWindowWidth, setResizable, setTitle, setZ, setZoomBox, show, stopMovements, toString
-
Methods inherited from class jexer.TWidget
activate, activate, activateAll, addButton, addCalendar, addCheckBox, addCheckBox, addComboBox, addDirectoryList, addDirectoryList, addDirectoryList, addDirectoryList, addEditor, addField, addField, addField, addField, addImage, addImage, addLabel, addLabel, addLabel, addLabel, addLabel, addLabel, addList, addList, addList, addList, addPanel, addPasswordField, addPasswordField, addPasswordField, addProgressBar, addRadioGroup, addRadioGroup, addSpinner, addSplitPane, addTable, addTable, addText, addText, addTreeViewWidget, addTreeViewWidget, compareTo, doRepaint, drawBox, drawBox, drawBoxShadow, drawChildren, fileOpenBox, fileOpenBox, fileOpenBox, fileOpenBox, fileSaveBox, getAbsoluteX, getAbsoluteY, getActiveChild, getAttrXY, getChildren, getClipboard, getCursorAbsoluteX, getCursorAbsoluteY, getCursorX, getCursorY, getHeight, getLayoutManager, getParent, getTheme, getWidth, getWindow, getX, getY, handleEvent, hasChild, hLineXY, inputBox, inputBox, inputBox, isAbsoluteActive, isActive, isCursorVisible, isDrawable, isEchoKeystrokes, 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, setEchoKeystrokes, setEchoKeystrokes, setEnabled, setHeight, setLayoutManager, setParent, setupForTWindow, setVisible, setWidth, setWindow, setX, setY, splitHorizontal, splitVertical, switchWidget, toPrettyString, toPrettyString, vLineXY
-
-
-
-
Constructor Detail
-
THelpWindow
public THelpWindow(TApplication application, java.lang.String topic)
Public constructor.- Parameters:
application
- TApplication that manages this windowtopic
- the topic to start on
-
THelpWindow
public THelpWindow(TApplication application, Topic topic)
Public constructor.- Parameters:
application
- TApplication that manages this windowtopic
- the topic to start on
-
THelpWindow
public THelpWindow(TApplication application)
Public constructor.- Parameters:
application
- TApplication that manages this window
-
-
Method Detail
-
onResize
public void onResize(TResizeEvent event)
Handle window/screen resize events.
-
getBackground
public final CellAttributes getBackground()
Retrieve the background color.- Overrides:
getBackground
in classTWindow
- Returns:
- the background color
-
getBorder
public CellAttributes getBorder()
Retrieve the border color.
-
getBorderControls
public CellAttributes getBorderControls()
Retrieve the color used by the window movement/sizing controls.- Overrides:
getBorderControls
in classTWindow
- Returns:
- the color used by the zoom box, resize bar, and close box
-
setHelpTopic
public void setHelpTopic(java.lang.String topic)
Set the topic to display.- Parameters:
topic
- the topic to display
-
-