com.raj.htmlForms
Class HtmlTextBoxes

java.lang.Object
  |
  +--com.raj.htmlForms.HtmlFormElement
        |
        +--com.raj.htmlForms.HtmlInput
              |
              +--com.raj.htmlForms.HtmlTextBoxes
Direct Known Subclasses:
HtmlPassword, HtmlText

public abstract class HtmlTextBoxes
extends HtmlInput

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

Author:
Rajnish Bhaskar

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

HtmlTextBoxes

public HtmlTextBoxes()
Method Detail

setMaxLength

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

See Also:
W3C Reference of this attribute

getMaxLength

public java.lang.String getMaxLength()
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 HtmlInput
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 HtmlInput