|
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.WAbstractButton
org.westofj.wui.WLink
A button represented as a hyperlink.
| 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 |
public WLink()
public WLink(String text)
text - the label of the link button.public WLink(WDisplayable text)
text - the label of the link button.| Method Detail |
public Color getColor()
public WFont getFont()
public Color getLinkColor()
public void render(WRunner runner,
WRenderContext context,
PrintWriter out)
Widget
render in class Widgetrunner - the current runner context.out - the output for the display.public void setColor(Color color)
color - The color to set.public void setFont(WFont font)
font - The font to set.public void setLinkColor(Color linkColor)
linkColor - The link color to set.
|
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 | ||||||||||