Package jexer
Class TStatusBar
- java.lang.Object
-
- jexer.TWidget
-
- jexer.TStatusBar
-
-
Constructor Summary
Constructors Constructor Description TStatusBar(TWindow window)
Public constructor.TStatusBar(TWindow window, java.lang.String text)
Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addShortcutKeypress(TKeypress key, TCommand cmd, java.lang.String label)
Add a key to this status bar.void
draw()
Draw the bar.void
setText(java.lang.String text)
Set the text to display on the right side of the shortcut keys.boolean
statusBarKeypress(TKeypressEvent keypress)
Handle keypresses.boolean
statusBarMouseDown(TMouseEvent mouse)
Handle mouse button presses.void
statusBarMouseMotion(TMouseEvent mouse)
Handle mouse movements.boolean
statusBarMouseUp(TMouseEvent mouse)
Handle mouse button releases.-
Methods inherited from class jexer.TWidget
activate, 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, close, compareTo, doRepaint, drawBox, drawBox, drawBoxShadow, drawChildren, fileOpenBox, fileOpenBox, fileOpenBox, fileOpenBox, fileSaveBox, getAbsoluteX, getAbsoluteY, getActiveChild, getApplication, getAttrXY, getChildren, getClipboard, getCursorAbsoluteX, getCursorAbsoluteY, getCursorX, getCursorY, getHeight, getLayoutManager, getParent, getScreen, getTheme, getWidth, getWindow, getX, getY, handleEvent, hasChild, hLineXY, inputBox, inputBox, inputBox, isAbsoluteActive, isActive, isCursorVisible, isDrawable, isEchoKeystrokes, isEnabled, isVisible, messageBox, messageBox, mouseWouldHit, onCommand, onIdle, onKeypress, onMenu, onMouseDoubleClick, onMouseDown, onMouseMotion, onMouseUp, onResize, 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, toString, vLineXY
-
-
-
-
Constructor Detail
-
TStatusBar
public TStatusBar(TWindow window, java.lang.String text)
Public constructor.- Parameters:
window
- the window associated with this status bartext
- text for the bar on the bottom row
-
TStatusBar
public TStatusBar(TWindow window)
Public constructor.- Parameters:
window
- the window associated with this status bar
-
-
Method Detail
-
statusBarKeypress
public boolean statusBarKeypress(TKeypressEvent keypress)
Handle keypresses.- Parameters:
keypress
- keystroke event- Returns:
- true if this keypress was consumed
-
statusBarMouseDown
public boolean statusBarMouseDown(TMouseEvent mouse)
Handle mouse button presses.- Parameters:
mouse
- mouse button event- Returns:
- true if this mouse event was consumed
-
statusBarMouseUp
public boolean statusBarMouseUp(TMouseEvent mouse)
Handle mouse button releases.- Parameters:
mouse
- mouse button release event- Returns:
- true if this mouse event was consumed
-
statusBarMouseMotion
public void statusBarMouseMotion(TMouseEvent mouse)
Handle mouse movements.- Parameters:
mouse
- mouse motion event
-
addShortcutKeypress
public void addShortcutKeypress(TKeypress key, TCommand cmd, java.lang.String label)
Add a key to this status bar.- Parameters:
key
- the key to trigger oncmd
- the command event to issue when key is pressed or this item is clickedlabel
- the label for this action
-
setText
public void setText(java.lang.String text)
Set the text to display on the right side of the shortcut keys.- Parameters:
text
- the new text
-
-