Constructor and Description |
---|
TLabel(TWidget parent,
java.lang.String text,
int x,
int y)
Public constructor, using the default "tlabel" for colorKey.
|
TLabel(TWidget parent,
java.lang.String text,
int x,
int y,
java.lang.String colorKey)
Public constructor.
|
TLabel(TWidget parent,
java.lang.String text,
int x,
int y,
java.lang.String colorKey,
boolean useWindowBackground)
Public constructor.
|
TLabel(TWidget parent,
java.lang.String text,
int x,
int y,
java.lang.String colorKey,
boolean useWindowBackground,
TAction action)
Public constructor.
|
TLabel(TWidget parent,
java.lang.String text,
int x,
int y,
java.lang.String colorKey,
TAction action)
Public constructor.
|
TLabel(TWidget parent,
java.lang.String text,
int x,
int y,
TAction action)
Public constructor, using the default "tlabel" for colorKey.
|
Modifier and Type | Method and Description |
---|---|
void |
dispatch()
Act as though the mnemonic shortcut was pressed.
|
void |
draw()
Draw a static label.
|
java.lang.String |
getColorKey()
Get the label color.
|
java.lang.String |
getLabel()
Get label raw text.
|
MnemonicString |
getMnemonic()
Get the mnemonic string for this label.
|
void |
setColorKey(java.lang.String colorKey)
Set the label color.
|
void |
setHeight(int height)
Override TWidget's height: we can only set height at construction
time.
|
void |
setLabel(java.lang.String label)
Set label text.
|
void |
setWidth(int width)
Override TWidget's width: we can only set width at construction time.
|
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, setLayoutManager, setParent, setupForTWindow, setVisible, setWindow, setX, setY, splitHorizontal, splitVertical, switchWidget, toPrettyString, toPrettyString, toString, vLineXY
public TLabel(TWidget parent, java.lang.String text, int x, int y)
parent
- parent widgettext
- label on the screenx
- column relative to parenty
- row relative to parentpublic TLabel(TWidget parent, java.lang.String text, int x, int y, TAction action)
parent
- parent widgettext
- label on the screenx
- column relative to parenty
- row relative to parentaction
- to call when shortcut is pressedpublic TLabel(TWidget parent, java.lang.String text, int x, int y, java.lang.String colorKey)
parent
- parent widgettext
- label on the screenx
- column relative to parenty
- row relative to parentcolorKey
- ColorTheme key color to use for foreground textpublic TLabel(TWidget parent, java.lang.String text, int x, int y, java.lang.String colorKey, TAction action)
parent
- parent widgettext
- label on the screenx
- column relative to parenty
- row relative to parentcolorKey
- ColorTheme key color to use for foreground textaction
- to call when shortcut is pressedpublic TLabel(TWidget parent, java.lang.String text, int x, int y, java.lang.String colorKey, boolean useWindowBackground)
parent
- parent widgettext
- label on the screenx
- column relative to parenty
- row relative to parentcolorKey
- ColorTheme key color to use for foreground textuseWindowBackground
- if true, use the window's background colorpublic TLabel(TWidget parent, java.lang.String text, int x, int y, java.lang.String colorKey, boolean useWindowBackground, TAction action)
parent
- parent widgettext
- label on the screenx
- column relative to parenty
- row relative to parentcolorKey
- ColorTheme key color to use for foreground textuseWindowBackground
- if true, use the window's background coloraction
- to call when shortcut is pressedpublic void setWidth(int width)
public void setHeight(int height)
public java.lang.String getLabel()
public MnemonicString getMnemonic()
public void setLabel(java.lang.String label)
label
- new label textpublic java.lang.String getColorKey()
public void setColorKey(java.lang.String colorKey)
colorKey
- ColorTheme key color to use for foreground textpublic void dispatch()
Copyright © 2019 Kevin Lamonte. Licensed MIT.