|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.raj.htmlForms.HtmlFormElement
|
+--com.raj.htmlForms.HtmlInput
|
+--com.raj.htmlForms.HtmlTextBoxes
This abstract class forms the superclass of all the single line text boxes (currently there are only two of these in HTML, both generated by the <input> tag).
This class (HtmlTextBoxes.java) is part of the com.raj.htmlForms package that
automatically generates HTML forms programmatically.
CREATED 22-FEB-2002, Copyright (c) Rajnish Bhaskar 2002
| Field Summary |
| Fields inherited from class com.raj.htmlForms.HtmlFormElement |
isXHTML, out |
| Constructor Summary | |
HtmlTextBoxes()
|
|
| Method Summary | |
java.lang.String |
getMaxLength()
gets the value of this input element |
void |
reset()
resets all attributes of the element back to a blank state |
void |
setMaxLength(int x)
sets the max size of this input element |
java.lang.String |
toString()
Writes the attributes of this object to a string and returns them. |
| Methods inherited from class com.raj.htmlForms.HtmlInput |
getAccessKey, getDisabled, getReadOnly, getSize, getValue, isDisabled, setAccessKey, setReadOnly, setSize, setValue |
| Methods inherited from class com.raj.htmlForms.HtmlFormElement |
getDir, getId, getLang, getName, getOnBlur, getOnClick, getOnDblClick, getOnFocus, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp, getOnSelect, getStyle, getTabIndex, getTheClass, getTitle, getXhtml, setDir, setId, setLang, setName, setOnBlur, setOnClick, setOnDblClick, setOnFocus, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setOnSelect, setStyle, setStyle, setTabIndex, setTheClass, setTitle, setXhtml, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public HtmlTextBoxes()
| Method Detail |
public void setMaxLength(int x)
public java.lang.String getMaxLength()
public java.lang.String toString()
HtmlFormElement
The toString() method should logically return a string representing the attributes
of the HTML element, eg if you set the name, title and style of the element then you should return a
string containing:
name="myName" title="some title" style="foo: xxx; bar: yyy;"
The responsibility for turning this into a form deliverable to a user agent belongs to
the write() method.
toString in class HtmlInputHtmlFormElement.write()public void reset()
HtmlFormElement
reset in class HtmlInput
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||