com.raj.htmlForms
Class HtmlInput

java.lang.Object
  |
  +--com.raj.htmlForms.HtmlFormElement
        |
        +--com.raj.htmlForms.HtmlInput
Direct Known Subclasses:
HtmlButtons, HtmlFile, HtmlGroups, HtmlHidden, HtmlTextBoxes

public abstract class HtmlInput
extends HtmlFormElement

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

Author:
Rajnish Bhaskar

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

HtmlInput

public HtmlInput()
Method Detail

setValue

public void setValue(java.lang.String x)
sets the value of this input element

See Also:
W3C Reference of this attribute

getValue

public java.lang.String getValue()
gets the value of this input element

See Also:
W3C Reference of this attribute

setSize

public void setSize(int x)
sets the size of this input element

See Also:
W3C Reference of this attribute

getSize

public java.lang.String getSize()
gets the size of this input element

See Also:
W3C Reference of this attribute

isDisabled

public void isDisabled(boolean x)
sets the disabled status of this input element

See Also:
W3C Reference of this attribute

getDisabled

public java.lang.String getDisabled()
gets the disabled status of this input element

See Also:
W3C Reference of this attribute

setReadOnly

public void setReadOnly(boolean x)
sets the value of this input element

See Also:
W3C Reference of this attribute

getReadOnly

public java.lang.String getReadOnly()
gets the disabled status of this input element

See Also:
W3C Reference of this attribute

setAccessKey

public void setAccessKey(char x)
sets the value of this input element

See Also:
W3C Reference of this attribute

getAccessKey

public java.lang.String getAccessKey()
gets the value of this input element

See Also:
W3C Reference of this attribute

toString

public java.lang.String toString()
Description copied from class: HtmlFormElement
Writes the attributes of this object to a string and returns them.

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.

Overrides:
toString in class HtmlFormElement
See Also:
HtmlFormElement.write()

reset

public void reset()
Description copied from class: HtmlFormElement
resets all attributes of the element back to a blank state

Overrides:
reset in class HtmlFormElement