WUI : API


org.westofj.wui
Class WLink

java.lang.Object
  extended byorg.westofj.wui.Widget
      extended byorg.westofj.wui.WAbstractButton
          extended byorg.westofj.wui.WLink
Direct Known Subclasses:
WExternalLink

public class WLink
extends WAbstractButton

A button represented as a hyperlink.

Version:
$Revision: 1.4 $, $Date: 2004/03/15 23:55:02 $
Author:
bill

Constructor Summary
WLink()
          Constructs a link button.
WLink(String text)
          Constructs a link button with the specified label.
WLink(WDisplayable text)
          Constructs a link button with the specified label.
 
Method Summary
 Color getColor()
          Returns the color.
 WFont getFont()
          Returns the font.
 Color getLinkColor()
          Returns the link color.
 void render(WRunner runner, WRenderContext context, PrintWriter out)
          Renders the widget to the display.
 void setColor(Color color)
          Sets the color.
 void setFont(WFont font)
          Sets the font.
 void setLinkColor(Color linkColor)
          Sets the link color.
 
Methods inherited from class org.westofj.wui.WAbstractButton
addActionListener, getActionCommand, getText, getText, handleParams, hasActionListeners, isEnabled, press, removeActionListener, setActionCommand, setEnabled, setText, setText
 
Methods inherited from class org.westofj.wui.Widget
addChangeListener, getRunner, handleNoParams, hasChangeListeners, removeChangeListener, stateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WLink

public WLink()
Constructs a link button.


WLink

public WLink(String text)
Constructs a link button with the specified label.

Parameters:
text - the label of the link button.

WLink

public WLink(WDisplayable text)
Constructs a link button with the specified label.

Parameters:
text - the label of the link button.
Method Detail

getColor

public Color getColor()
Returns the color.

Returns:
Returns the color.

getFont

public WFont getFont()
Returns the font.

Returns:
Returns the font.

getLinkColor

public Color getLinkColor()
Returns the link color.

Returns:
Returns the link color.

render

public void render(WRunner runner,
                   WRenderContext context,
                   PrintWriter out)
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.

setColor

public void setColor(Color color)
Sets the color.

Parameters:
color - The color to set.

setFont

public void setFont(WFont font)
Sets the font.

Parameters:
font - The font to set.

setLinkColor

public void setLinkColor(Color linkColor)
Sets the link color.

Parameters:
linkColor - The link color to set.

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