|
WUI : API |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.westofj.wui.Widget org.westofj.wui.WLabelWidget
Implements base functionality for labels.
Constructor Summary | |
WLabelWidget()
Constructs a base label widget. |
|
WLabelWidget(WFont font,
Color color)
Constructs a base label widget with the specified style. |
Method Summary | |
Color |
getColor()
Returns the color of the label. |
WFont |
getFont()
Returns the font of the label. |
void |
render(WRunner runner,
WRenderContext context,
PrintWriter out)
Renders the widget to the display. |
void |
setColor(Color color)
Sets the color of the label. |
void |
setFont(WFont font)
Sets the font of the label. |
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 |
Methods inherited from interface org.westofj.wui.WDisplayable |
getText |
Constructor Detail |
public WLabelWidget()
public WLabelWidget(WFont font, Color color)
Method Detail |
public Color getColor()
public WFont getFont()
public void render(WRunner runner, WRenderContext context, PrintWriter out) throws WRenderException
Widget
render
in class Widget
runner
- the current runner context.out
- the output for the display.
WRenderException
public void setColor(Color color)
color
- the color of the label.public void setFont(WFont font)
font
- the font 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 |