|
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.WResetButton
Implements an HTML reset button. This buttons actions are entirely client side.
Constructor Summary | |
WResetButton()
Constructs a reset button without a label. |
|
WResetButton(String text)
Constructs a reset button with the specified label. |
|
WResetButton(WDisplayable text)
Constructs a reset button with the specified label. |
Method Summary | |
WFont |
getFont()
Returns the font. |
int |
getHeight()
Returns the height. |
WDisplayable |
getText()
Returns the label of the reset button. |
String |
getText(WRunner runner)
Returns the label of the reset button as a string. |
int |
getWidth()
Returns the wdith. |
boolean |
isEnabled()
Returns true if the reset button is enabled, false otherwise. |
void |
render(WRunner runner,
WRenderContext context,
PrintWriter out)
Renders the widget to the display. |
void |
setEnabled(boolean enabled)
Enables or disables the reset button. |
void |
setFont(WFont font)
Sets the font. |
void |
setHeight(int height)
Sets the height. |
void |
setText(String text)
Sets the label of the reset button to the specified value. |
void |
setText(WDisplayable text)
Sets the label of the reset button to the specified value. |
void |
setWidth(int width)
Sets the width. |
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 WResetButton()
public WResetButton(String text)
text
- the label of the reset button.public WResetButton(WDisplayable text)
text
- the label of the reset button.Method Detail |
public WFont getFont()
public int getHeight()
public WDisplayable getText()
public final String getText(WRunner runner)
runner
- the current runner context.
public int getWidth()
public boolean isEnabled()
public void render(WRunner runner, WRenderContext context, PrintWriter out)
Widget
render
in class Widget
runner
- the current runner context.out
- the output for the display.public void setEnabled(boolean enabled)
enabled
- true if the reset button is enabled, false otherwise.public void setFont(WFont font)
font
- The font to set.public void setHeight(int height)
height
- The height to set.public void setText(String text)
text
- the label of the reset button.public void setText(WDisplayable text)
text
- the label of the reset button.public void setWidth(int width)
width
- The width 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 |