|
|||||||||
| 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_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, outputRoot, outputter, parent, parentElem, READONLY, root, viewMode |
| Constructor Summary | |
|---|---|
Textfield()
Constructs a new empty textfield component. |
|
Textfield(java.lang.String name)
|
|
Textfield(java.lang.String name,
int size)
|
|
Textfield(java.lang.String name,
int size,
boolean enabled)
|
|
Textfield(java.lang.String name,
java.lang.String value)
Constructor with name and value. |
|
Textfield(java.lang.String name,
java.lang.String value,
int maxlength,
int size)
Constructor with name, value maxlength and size |
|
Textfield(java.lang.String name,
java.lang.String value,
java.lang.String styleClass)
Constructor with name and value. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getContent()
|
int |
getMaxlength()
|
int |
getSize()
|
java.lang.String |
getValue()
|
void |
setAttribute(java.lang.String name,
java.lang.String value)
sets the attribute to the component |
void |
setContent(java.lang.Object o)
sets the content of the component |
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(java.lang.String value)
sets the initial displayed value of the field |
| Methods inherited from class com.groiss.gui.AbstractComponent |
|---|
clone, getActionListener, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, init, removeAttribute, setActionListener, 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(java.lang.String name)
public Textfield(java.lang.String name,
int size)
public Textfield(java.lang.String name,
int size,
boolean enabled)
public Textfield(java.lang.String name,
java.lang.String value)
name - the group where the field belongs tovalue - the value of the field
public Textfield(java.lang.String name,
java.lang.String value,
java.lang.String styleClass)
name - the group where the field belongs tovalue - the value of the fieldstyleClass - the name of a CSS class
public Textfield(java.lang.String name,
java.lang.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(java.lang.String value)
value - - the valuepublic java.lang.String getValue()
public void setContent(java.lang.Object o)
setContent in interface ComponentsetContent in class AbstractComponento - any object where the string representation is used for renderingpublic java.lang.Object getContent()
getContent in interface ComponentgetContent in class AbstractComponent
public void setAttribute(java.lang.String name,
java.lang.String value)
AbstractComponent
setAttribute in interface ComponentsetAttribute in class AbstractComponentname - - the name of the attributevalue - - the value of the attribute
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||