|
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.WStringLabel
A string based label. This class is useful for labels where the value is not contained within a resource bundle.
Constructor Summary | |
WStringLabel()
Constructs a string label. |
|
WStringLabel(String text)
Constructs a string label with the specified text. |
|
WStringLabel(String text,
WFont font)
Constructs a string label with the specified text and font. |
|
WStringLabel(String text,
WFont font,
Color color)
Constructs a string label with the specified text, font and color. |
Method Summary | |
String |
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. |
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 WStringLabel()
public WStringLabel(String text)
text
- the text of the label.public WStringLabel(String text, WFont font)
text
- the text of the label.public WStringLabel(String text, WFont font, Color color)
text
- the text of the label.Method Detail |
public String getText()
public String getText(WRunner runner)
WDisplayable
runner
- the current runner context.
public void setText(String 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 |