Copyright 2002 by aragost

com.aragost.html
Class InputElement

java.lang.Object
  |
  +--com.aragost.html.Element
        |
        +--com.aragost.html.HtmlElement
              |
              +--com.aragost.html.InputElement
Direct Known Subclasses:
Checkbox, Hidden, Submit, TextInput

public abstract class InputElement
extends HtmlElement

This is the abstract super class for for form input elements.


Constructor Summary
InputElement()
           
InputElement(java.lang.String name, java.lang.String value)
          Creates new InputElement
 
Method Summary
 java.lang.String getName()
          Getter for property name.
 java.lang.String getTag()
          Return the html tag for this element.
abstract  java.lang.String getType()
           
 java.lang.String getValue()
          Getter for property value.
 void setName(java.lang.String name)
          Setter for property name.
 void setValue(java.lang.String value)
          Setter for property value.
 void writeAttributes(HtmlWriter writer)
           
 
Methods inherited from class com.aragost.html.HtmlElement
getAttribute, getAttributes, getBody, getIntAttribute, postBodyWrite, preBodyWrite, setAlign, setAttribute, setBgcolor, setIntAttribute, setWidth, writeTo
 
Methods inherited from class com.aragost.html.Element
isCellLike, isNowrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputElement

public InputElement()

InputElement

public InputElement(java.lang.String name,
                    java.lang.String value)
Creates new InputElement

Method Detail

getType

public abstract java.lang.String getType()

getTag

public final java.lang.String getTag()
Description copied from class: HtmlElement
Return the html tag for this element.

Specified by:
getTag in class HtmlElement

writeAttributes

public void writeAttributes(HtmlWriter writer)
Overrides:
writeAttributes in class HtmlElement

getName

public java.lang.String getName()
Getter for property name.

Returns:
Value of property name.

setName

public void setName(java.lang.String name)
Setter for property name.

Parameters:
name - New value of property name.

getValue

public java.lang.String getValue()
Getter for property value.

Returns:
Value of property value.

setValue

public void setValue(java.lang.String value)
Setter for property value.

Parameters:
value - New value of property value.

Copyright 2002 by aragost