WUI : API


org.westofj.wui
Class WLabelWidget

java.lang.Object
  extended byorg.westofj.wui.Widget
      extended byorg.westofj.wui.WLabelWidget
All Implemented Interfaces:
WDisplayable
Direct Known Subclasses:
WLabel, WStringLabel

public abstract class WLabelWidget
extends Widget
implements WDisplayable

Implements base functionality for labels.

Version:
$Revision: 1.5 $, $Date: 2004/03/22 00:34:01 $
Author:
bill

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

WLabelWidget

public WLabelWidget()
Constructs a base label widget.


WLabelWidget

public WLabelWidget(WFont font,
                    Color color)
Constructs a base label widget with the specified style.

Method Detail

getColor

public Color getColor()
Returns the color of the label.

Returns:
Returns the color of the label.

getFont

public WFont getFont()
Returns the font of the label.

Returns:
Returns the font of the label.

render

public void render(WRunner runner,
                   WRenderContext context,
                   PrintWriter out)
            throws WRenderException
Description copied from class: Widget
Renders the widget to the display.

Specified by:
render in class Widget
Parameters:
runner - the current runner context.
out - the output for the display.
Throws:
WRenderException

setColor

public void setColor(Color color)
Sets the color of the label.

Parameters:
color - the color of the label.

setFont

public void setFont(WFont font)
Sets the font of the label.

Parameters:
font - the font of the label.

Copyright (c) 2003 West of J - All rights reserved.