org.apache.ecs
Class Input

java.lang.Object
  |
  +--org.apache.ecs.Element
        |
        +--org.apache.ecs.ElementAttributes
              |
              +--org.apache.ecs.ConcreteElement
                    |
                    +--org.apache.ecs.SinglePartElement
                          |
                          +--org.apache.ecs.Input

public class Input
extends SinglePartElement

This class creates a <Input> tag.

Version:
$Id: Input.java,v 1.4 1999/05/14 23:40:36 jonbolt Exp $
Author:
Stephan Nagy, Jon S. Stevens

Field Summary
static java.lang.String button
           
static java.lang.String BUTTON
           
static java.lang.String checkbox
           
static java.lang.String CHECKBOX
           
static java.lang.String file
           
static java.lang.String FILE
           
static java.lang.String hidden
           
static java.lang.String HIDDEN
           
static java.lang.String image
           
static java.lang.String IMAGE
           
static java.lang.String password
           
static java.lang.String PASSWORD
           
static java.lang.String radio
           
static java.lang.String RADIO
           
static java.lang.String reset
           
static java.lang.String RESET
           
static java.lang.String submit
           
static java.lang.String SUBMIT
           
static java.lang.String text
           
static java.lang.String TEXT
           
 
Fields inherited from class org.apache.ecs.ConcreteElement
h_element, v_element
 
Fields inherited from class org.apache.ecs.ElementAttributes
attribute_filter, end_modifier, end_modifier_defined, filter_attribute_state, NO_ATTRIBUTE_VALUE, start_modifier, start_modifier_defined, TAG, TEXT
 
Fields inherited from class org.apache.ecs.Element
case_type, codeset, element, end_element, filter, filter_state, position, VERSION
 
Constructor Summary
Input()
          Basic constructor.
Input(java.lang.String type, java.lang.String name, double value)
          Basic constructor.
Input(java.lang.String type, java.lang.String name, int value)
          Basic constructor.
Input(java.lang.String type, java.lang.String name, java.lang.String value)
          Basic constructor.
 
Method Summary
(package private)  void ()
          Private initialization routine.
 Input addElement(Element element)
          Adds an Element to the element.
 Input addElement(java.lang.String element)
          Adds an Element to the element.
 Input removeElement(java.lang.String hashcode)
          Removes an Element from the element.
 Input setAccept(java.lang.String accept)
          Sets the ACCEPT="" attribute
 Input setAlt(java.lang.String alt)
          Sets the ALT="" attribute
 Input setChecked(boolean checked)
          Sets the checked value
 Input setDisabled(boolean disabled)
          Sets the disabled value
 Input setMaxlength(int maxlength)
          Sets the MAXLENGTH="" attribute
 Input setMaxlength(java.lang.String maxlength)
          Sets the MAXLENGTH="" attribute
 Input setName(java.lang.String name)
          Sets the NAME="" attribute
 Input setReadOnly(boolean readonly)
          Sets the readonly value
 Input setSize(int size)
          Sets the SIZE="" attribute
 Input setSize(java.lang.String size)
          Sets the SIZE="" attribute
 Input setSrc(java.lang.String src)
          Sets the SRC="" attribute
 Input setTabindex(int index)
          Sets the TABINDEX="" attribute
 Input setTabindex(java.lang.String index)
          Sets the TABINDEX="" attribute
 Input setType(java.lang.String type)
          Sets the TYPE="" attribute
 Input setUsemap(java.lang.String usemap)
          Sets the USEMAP="" attribute
 Input setValue(double value)
          Sets the VALUE="" attribute
 Input setValue(int value)
          Sets the VALUE="" attribute
 Input setValue(java.lang.String value)
          Sets the VALUE="" attribute
 
Methods inherited from class org.apache.ecs.ConcreteElement
addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, output, output, registryHasElement, registryHasElement, removeElementFromRegistry, removeElementFromRegistry
 
Methods inherited from class org.apache.ecs.ElementAttributes
addAttribute, clone, getAttributeFilter, getAttributeFilterState, getEndModifier, getEndModifierDefined, getStartModifier, getStartModifierDefined, hasAttribute, removeAttribute, removeEndModifier, removeStartModifier, setAttributeFilter, setAttributeFilterState, setClass, setDir, setEndModifier, setEndModifierDefined, setID, setLang, setModifier, setModifier, setStartModifier, setStartModifierDefined, setStyle, setTitle
 
Methods inherited from class org.apache.ecs.Element
alterCase, getCase, getCodeSet, getElementHashEntry, getElementType, getFilter, getFilterState, getNeedClosingTag, getTagPosition, getVersion, setCase, setCodeSet, setElementType, setFilter, setFilterState, setNeedClosingTag, setTagPosition, toString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

TEXT

public static final java.lang.String TEXT

PASSWORD

public static final java.lang.String PASSWORD

CHECKBOX

public static final java.lang.String CHECKBOX

RADIO

public static final java.lang.String RADIO

FILE

public static final java.lang.String FILE

BUTTON

public static final java.lang.String BUTTON

IMAGE

public static final java.lang.String IMAGE

HIDDEN

public static final java.lang.String HIDDEN

SUBMIT

public static final java.lang.String SUBMIT

RESET

public static final java.lang.String RESET

text

public static final java.lang.String text

password

public static final java.lang.String password

checkbox

public static final java.lang.String checkbox

radio

public static final java.lang.String radio

file

public static final java.lang.String file

button

public static final java.lang.String button

image

public static final java.lang.String image

hidden

public static final java.lang.String hidden

submit

public static final java.lang.String submit

reset

public static final java.lang.String reset
Constructor Detail

Input

public Input()
Basic constructor. Use the set* methods to set the values of the attributes.

Input

public Input(java.lang.String type,
             java.lang.String name,
             java.lang.String value)
Basic constructor. Use the set* methods to set the values of the attributes.

Input

public Input(java.lang.String type,
             java.lang.String name,
             int value)
Basic constructor. Use the set* methods to set the values of the attributes.

Input

public Input(java.lang.String type,
             java.lang.String name,
             double value)
Basic constructor. Use the set* methods to set the values of the attributes.
Method Detail

void ()
Private initialization routine.
Overrides:
in class SinglePartElement

setType

public Input setType(java.lang.String type)
Sets the TYPE="" attribute
Parameters:
type - the TYPE="" attribute

setSrc

public Input setSrc(java.lang.String src)
Sets the SRC="" attribute
Parameters:
src - the SRC="" attribute

setAlt

public Input setAlt(java.lang.String alt)
Sets the ALT="" attribute
Parameters:
alt - the ALT="" attribute

setName

public Input setName(java.lang.String name)
Sets the NAME="" attribute
Parameters:
name - the NAME="" attribute

setValue

public Input setValue(java.lang.String value)
Sets the VALUE="" attribute
Parameters:
value - the VALUE="" attribute

setValue

public Input setValue(int value)
Sets the VALUE="" attribute
Parameters:
value - the VALUE="" attribute

setValue

public Input setValue(double value)
Sets the VALUE="" attribute
Parameters:
value - the VALUE="" attribute

setAccept

public Input setAccept(java.lang.String accept)
Sets the ACCEPT="" attribute
Parameters:
accept - the ACCEPT="" attribute

setSize

public Input setSize(java.lang.String size)
Sets the SIZE="" attribute
Parameters:
size - the SIZE="" attribute

setSize

public Input setSize(int size)
Sets the SIZE="" attribute
Parameters:
size - the SIZE="" attribute

setMaxlength

public Input setMaxlength(java.lang.String maxlength)
Sets the MAXLENGTH="" attribute
Parameters:
maxlength - the MAXLENGTH="" attribute

setMaxlength

public Input setMaxlength(int maxlength)
Sets the MAXLENGTH="" attribute
Parameters:
maxlength - the MAXLENGTH="" attribute

setUsemap

public Input setUsemap(java.lang.String usemap)
Sets the USEMAP="" attribute
Parameters:
usemap - the USEMAP="" attribute

setTabindex

public Input setTabindex(java.lang.String index)
Sets the TABINDEX="" attribute
Parameters:
alt - the TABINDEX="" attribute

setTabindex

public Input setTabindex(int index)
Sets the TABINDEX="" attribute
Parameters:
alt - the TABINDEX="" attribute

setChecked

public Input setChecked(boolean checked)
Sets the checked value
Parameters:
checked - true or false

setReadOnly

public Input setReadOnly(boolean readonly)
Sets the readonly value
Parameters:
readonly - true or false

setDisabled

public Input setDisabled(boolean disabled)
Sets the disabled value
Parameters:
disabled - true or false

addElement

public Input addElement(Element element)
Adds an Element to the element.
Parameters:
element - Adds an Element to the element.

addElement

public Input addElement(java.lang.String element)
Adds an Element to the element.
Parameters:
element - Adds an Element to the element.

removeElement

public Input removeElement(java.lang.String hashcode)
Removes an Element from the element.
Parameters:
hashcode - the name of the element to be removed.