|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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(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()
Get the value. |
int |
getMaxlength()
|
int |
getSize()
|
java.lang.String |
getValue()
|
void |
setContent(java.lang.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(java.lang.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(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 fieldpublic 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 classpublic 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 fieldMethod 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 Component
setContent
in class AbstractComponent
o
- any object where the string representation is used for renderingpublic java.lang.Object getContent()
getContent
in interface Component
getContent
in class AbstractComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |