|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.gui.AbstractComponent
com.groiss.gui.component.Textfield
public class Textfield
Textfield component is used for a single line text entry fields. it should be used in conjunction with the SIZE and MAXLENGTH attributes to set the maximum amount of text that can be entered.
| Field Summary |
|---|
| Fields inherited from class com.groiss.gui.AbstractComponent |
|---|
actions, ACTIVE, browserMode, DEFAULT, ID, IE, INVISIBLE, isSensitive, label, NS, ON_BLUR, ON_CHANGE, ON_CLICK, ON_DBLCLICK, ON_FOCUS, ON_KEY_DOWN, ON_KEY_PRESS, ON_KEY_UP, ON_LOAD, ON_MOUSE_DOWN, ON_MOUSE_MOVE, ON_MOUSE_OUT, ON_MOUSE_UP, ON_RESET, ON_SELECT, ON_SUBMIT, ON_UNLOAD, outputter, parent, parentElem, READONLY, root, viewMode |
| Constructor Summary | |
|---|---|
Textfield()
Constructs a new empty textfield component. |
|
Textfield(String name)
|
|
Textfield(String name,
int size)
|
|
Textfield(String name,
int size,
boolean enabled)
|
|
Textfield(String name,
String value)
Constructor with name and value. |
|
Textfield(String name,
String value,
int maxlength,
int size)
Constructor with name, value maxlength and size |
|
Textfield(String name,
String value,
String styleClass)
Constructor with name and value. |
|
| Method Summary | |
|---|---|
Object |
getContent()
Get the value. |
int |
getMaxlength()
|
int |
getSize()
|
String |
getValue()
|
void |
setContent(Object o)
Set the value attribute. |
void |
setMaxlength(int length)
sets the maximum length of the text in the textfield |
void |
setSize(int size)
sets the size of the textfield |
void |
setValue(String value)
sets the initial displayed value of the field |
| Methods inherited from class com.groiss.gui.AbstractComponent |
|---|
clone, create, getActionListener, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, init, removeAttribute, setActionListener, setAttribute, setBrowserMode, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setName, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, show, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Textfield()
public Textfield(String name)
public Textfield(String name,
int size)
public Textfield(String name,
int size,
boolean enabled)
public Textfield(String name,
String value)
name - the group where the field belongs tovalue - the value of the field
public Textfield(String name,
String value,
String styleClass)
name - the group where the field belongs tovalue - the value of the fieldstyleClass - the name of a CSS class
public Textfield(String name,
String value,
int maxlength,
int size)
name - the group where the text field belongs tovalue - the value of the text fieldmaxlength - the maximum length of the contentsize - the size of the field| Method Detail |
|---|
public void setMaxlength(int length)
length - - the maximum lengthpublic int getMaxlength()
public void setSize(int size)
size - - the size of the input fieldpublic int getSize()
public void setValue(String value)
value - - the valuepublic String getValue()
public void setContent(Object o)
setContent in interface ComponentsetContent in class AbstractComponento - any object where the string representation is used for renderingpublic Object getContent()
getContent in interface ComponentgetContent in class AbstractComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||