|
||||||||||
| 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
This abstract class forms the superclass of all HTML Input types (eg text, radio, checkbox etc)
This class (HtmlInput.java) is part of the com.raj.htmlForms package that
automatically generates HTML forms programmatically.
CREATED 20-FEB-2002, Copyright (c) Rajnish Bhaskar 2002
| Field Summary |
| Fields inherited from class com.raj.htmlForms.HtmlFormElement |
isXHTML, out |
| Constructor Summary | |
HtmlInput()
|
|
| Method Summary | |
java.lang.String |
getAccessKey()
gets the value of this input element |
java.lang.String |
getDisabled()
gets the disabled status of this input element |
java.lang.String |
getReadOnly()
gets the disabled status of this input element |
java.lang.String |
getSize()
gets the size of this input element |
java.lang.String |
getValue()
gets the value of this input element |
void |
isDisabled(boolean x)
sets the disabled status of this input element |
void |
reset()
resets all attributes of the element back to a blank state |
void |
setAccessKey(char x)
sets the value of this input element |
void |
setReadOnly(boolean x)
sets the value of this input element |
void |
setSize(int x)
sets the size of this input element |
void |
setValue(java.lang.String x)
sets the value 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.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 HtmlInput()
| Method Detail |
public void setValue(java.lang.String x)
public java.lang.String getValue()
public void setSize(int x)
public java.lang.String getSize()
public void isDisabled(boolean x)
public java.lang.String getDisabled()
public void setReadOnly(boolean x)
public java.lang.String getReadOnly()
public void setAccessKey(char x)
public java.lang.String getAccessKey()
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 HtmlFormElementHtmlFormElement.write()public void reset()
HtmlFormElement
reset in class HtmlFormElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||