Constructor and Description |
---|
TStatusBar(TWindow window)
Public constructor.
|
TStatusBar(TWindow window,
java.lang.String text)
Public constructor.
|
Modifier and Type | Method and 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.
|
activate, 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, close, compareTo, doRepaint, drawBox, drawBox, drawBoxShadow, fileOpenBox, fileOpenBox, fileOpenBox, fileOpenBox, fileSaveBox, getAbsoluteX, getAbsoluteY, getActiveChild, getApplication, getAttrXY, getChildren, getCursorAbsoluteX, getCursorAbsoluteY, getCursorX, getCursorY, getHeight, getLayoutManager, getParent, getScreen, getTheme, getWidth, getWindow, getX, getY, handleEvent, hLineXY, inputBox, inputBox, inputBox, isAbsoluteActive, isActive, isCursorVisible, isDrawable, 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, setEnabled, setHeight, setLayoutManager, setParent, setupForTWindow, setVisible, setWidth, setWindow, setX, setY, splitHorizontal, splitVertical, switchWidget, toPrettyString, toPrettyString, toString, vLineXY
public TStatusBar(TWindow window, java.lang.String text)
window
- the window associated with this status bartext
- text for the bar on the bottom rowpublic TStatusBar(TWindow window)
window
- the window associated with this status barpublic boolean statusBarKeypress(TKeypressEvent keypress)
keypress
- keystroke eventpublic boolean statusBarMouseDown(TMouseEvent mouse)
mouse
- mouse button eventpublic boolean statusBarMouseUp(TMouseEvent mouse)
mouse
- mouse button release eventpublic void statusBarMouseMotion(TMouseEvent mouse)
mouse
- mouse motion eventpublic void addShortcutKeypress(TKeypress key, TCommand cmd, java.lang.String label)
key
- the key to trigger oncmd
- the command event to issue when key is pressed or this item
is clickedlabel
- the label for this actionpublic void setText(java.lang.String text)
text
- the new textCopyright © 2019 Kevin Lamonte. Licensed MIT.