|
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.WTextWidget
org.westofj.wui.WTextField
A text input widget.
| Constructor Summary | |
WTextField()
Constructs a text input widget. |
|
WTextField(String text)
Constructs a text input widget that initially contains the specified text. |
|
WTextField(String text,
int maxLength,
int visibleSize)
Constructs a text input widget that initially contains the specified text with the specified maximum length and visible size. |
|
| Method Summary | |
int |
getMaxLength()
Returns the maximum length in characters of text input to the widget. |
int |
getVisibleSize()
Returns the visible horizontal size of the text input widget. |
void |
render(WRunner runner,
WRenderContext context,
PrintWriter out)
Renders the widget to the display. |
void |
setMaxLength(int maxLength)
Sets the maximum length in characters of text input to the widget. |
void |
setVisibleSize(int visibleSize)
Sets the visible horizontal size of the text input widget. |
| Methods inherited from class org.westofj.wui.WTextWidget |
getColor, getFont, getText, handleParams, setColor, setFont, 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 WTextField()
public WTextField(String text)
text - the initial text of the widget.
public WTextField(String text,
int maxLength,
int visibleSize)
text - the initial text of the widget.maxLength - the maximum length in characters of text input to the widget.visibleSize - the visible horizontal size of the text input widget.| Method Detail |
public int getMaxLength()
public int getVisibleSize()
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 setMaxLength(int maxLength)
maxLength - the maximum length in characters of text input to the widget.public void setVisibleSize(int visibleSize)
visibleSize - the visible horizontal size of the text input widget.
|
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 | ||||||||||