|
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.WButton
Represents a button with a label. The current implementation renders the
button as an html submit button. When the button is pressed, the wui
framework maps the press event to a WActionEventinstance and
invokes all WActionListenerinstances registered with the button.
| Constructor Summary | |
WButton()
Constructs a button without a label. |
|
WButton(String text)
Constructs a button with the specified label. |
|
WButton(WDisplayable text)
Constructs a button with the specified label. |
|
| Method Summary | |
WFont |
getFont()
Returns the font. |
int |
getHeight()
Returns the height of the button. |
int |
getWidth()
Returns the width of the button. |
void |
render(WRunner runner,
WRenderContext context,
PrintWriter out)
Renders the widget to the display. |
void |
setFont(WFont font)
Sets the font. |
void |
setHeight(int height)
Sets the height of the button. |
void |
setWidth(int width)
Sets the width of the button. |
| 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 WButton()
public WButton(String text)
text - the label of the button.public WButton(WDisplayable text)
text - the label of the button.| Method Detail |
public WFont getFont()
public int getHeight()
public int getWidth()
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 setFont(WFont font)
font - The font to set.public void setHeight(int height)
height - The height of the button to set.public void setWidth(int width)
width - The width to set 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 | ||||||||||