|
WUI : API |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.westofj.wui.Widget
org.westofj.wui.WLabelWidget
org.westofj.wui.WLabel
Renders text to the display.
Constructor Summary | |
WLabel()
Constructs a label. |
|
WLabel(String text)
Constructs a label with the specified text. |
|
WLabel(String text,
WFont font)
Constructs a label with the specified text and font. |
|
WLabel(String text,
WFont font,
Color color)
Constructs a label with the specified text, font and color. |
|
WLabel(WDisplayable text)
Constructs a label with the specified text. |
|
WLabel(WDisplayable text,
WFont font)
Constructs a label with the specified text and font. |
|
WLabel(WDisplayable text,
WFont font,
Color color)
Constructs a label with the specified text, font and color. |
Method Summary | |
WDisplayable |
getText()
Returns the text of the label. |
String |
getText(WRunner runner)
Returns the textual view of the instance. |
void |
setText(String text)
Sets the text of the label. |
void |
setText(WDisplayable text)
Sets the text of the label. |
Methods inherited from class org.westofj.wui.WLabelWidget |
getColor, getFont, render, setColor, setFont |
Methods inherited from class org.westofj.wui.Widget |
addChangeListener, getRunner, handleNoParams, handleParams, hasChangeListeners, removeChangeListener, stateChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WLabel()
public WLabel(String text)
text
- the text of the label.public WLabel(String text, WFont font)
text
- the text of the label.public WLabel(String text, WFont font, Color color)
text
- the text of the label.public WLabel(WDisplayable text)
text
- the text of the label.public WLabel(WDisplayable text, WFont font)
text
- the text of the label.public WLabel(WDisplayable text, WFont font, Color color)
text
- the text of the label.Method Detail |
public WDisplayable getText()
public String getText(WRunner runner)
WDisplayable
runner
- the current runner context.
public void setText(String text)
text
- the text of the label.public void setText(WDisplayable text)
text
- the text of the label.
|
Copyright (c) 2003 West of J - All rights reserved. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |