|
Sydney | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--Widget
|
+--Label
Defined in label.js
| Field Summary | |
<static> <final> int |
DEFAULT
Default format, non-wrapping label. |
<static> <final> int |
MONOSPACED
Text is pre formatted using spaces and fixed-width font. |
<static> <final> int |
MULTILINE
Text is multiline so any '\n' will be replaced with ' ' |
<static> <final> int |
WRAPPING
Will allow text to wrap (different the MultiLineLabel). |
| Fields inherited from class Widget |
html, id, parent, layoutData, eventTable
|
| Constructor Summary | |
Label
(<string> text, <enum> format)
Creates a label displaying the given text. |
|
| Method Summary | |
function
|
constructor(<string> text, <enum> format)
Creates a label displaying the given text. |
string
|
getText()
Returns the label's current display value. |
void
|
setStyle(<enum> format)
Changes the type of label on the fly. |
void
|
setText(<string> text)
Sets the label's text to text.
|
| Field Detail |
<static> <final> int DEFAULT
<static> <final> int MONOSPACED
<static> <final> int MULTILINE
<static> <final> int WRAPPING
| Constructor Detail |
function Label(<string> text, <enum> format)
text - the string to display in the label. Defaults to ''.
format - Select the wrapping/layout format for the label Defaults to Label.DEFAULT.
tag - the name of the tag to use when creating the label's HTML. Defaults to 'span'.
| Method Detail |
function constructor(<string> text, <enum> format)
text - the string to display in the label. Defaults to ''.
format - Select the wrapping/layout format for the label Defaults to Label.DEFAULT.
tag - the name of the tag to use when creating the label's HTML. Defaults to 'span'.
string getText()
string
void setStyle(<enum> format)
format - Select the wrapping/layout format for the label
void setText(<string> text)
text.
text - a string to display in the label
|
Sydney | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||