atg.droplet
Class InputTag

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by atg.droplet.Tag
          extended by atg.droplet.FormEventReceiver
              extended by atg.droplet.InputTag
All Implemented Interfaces:
EventReceiver, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class InputTag
extends FormEventReceiver

This class is used to define an InputTag that is generated dynamically from Java code. It is a Java Bean that implements properties for each of the input tag attributes. This includes standard HTML attributes and those that are extensions used for delivering events with droplets.

See Also:
Serialized Form

Field Summary
static java.lang.String ALIGN_BOTTOM
           
static java.lang.String ALIGN_LEFT
           
static java.lang.String ALIGN_MIDDLE
           
static java.lang.String ALIGN_RIGHT
           
static java.lang.String ALIGN_TOP
           
static java.lang.String CLASS_VERSION
          Class version string
static java.lang.String TAG_NAME
           
static java.lang.String TYPE_BUTTON
           
static java.lang.String TYPE_FILE
           
static java.lang.String TYPE_HIDDEN
           
static java.lang.String TYPE_IMAGE
           
static java.lang.String TYPE_PASSWORD
           
static java.lang.String TYPE_RADIO
           
static java.lang.String TYPE_RESET
           
static java.lang.String TYPE_SUBMIT
           
static java.lang.String TYPE_TEXT
           
 
Constructor Summary
InputTag()
          Constructor sets all required attributes
 
Method Summary
 java.lang.String getAlign()
          Returns the value of the align attribute
 boolean getChecked()
          Returns the value of the checked attribute
 int getMaxLength()
          Returns the value of the maxlength attribute
 int getSize()
          Returns the value of the size attribute
 java.lang.String getTagName()
          Returns the name of this tag or null if no name has been specified.
 java.lang.String getType()
          Returns the value of the type attribute
 java.lang.String getValue()
          Returns the value of the value attribute
 void service(DynamoHttpServletRequest pReq, DynamoHttpServletResponse pRes)
          Renders this input tag
 void setAlign(java.lang.String pAlign)
          Sets the value of the align attribute
 void setChecked(boolean pChecked)
          Sets the value of the checked attribute
 void setMaxLength(int pMaxLength)
          Sets the value of the maxlength attribute
 void setSize(int pSize)
          Sets the value of the size attribute
 void setType(java.lang.String pType)
          Sets the value of the type attribute
 void setValue(java.lang.String pValue)
          Sets the value of the value attribute
 
Methods inherited from class atg.droplet.FormEventReceiver
getComponentPath, getConverter, getConverterArgs, getDefault, getMayHaveSubmitValue, getName, getPathDims, getPathNames, getPriority, getPropertyPath, getSubmitValue, isImage, setConverter, setConverterArgs, setMayHaveSubmitValue, setName, setPathDims, setPathNames, setPriority, setProperty, setPropertyPath
 
Methods inherited from class atg.droplet.Tag
getAttribute, getAttributes, service, serviceAttributes, setAttribute, setAttributes, setTagName
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string


TAG_NAME

public static final java.lang.String TAG_NAME
See Also:
Constant Field Values

TYPE_IMAGE

public static final java.lang.String TYPE_IMAGE
See Also:
Constant Field Values

TYPE_SUBMIT

public static final java.lang.String TYPE_SUBMIT
See Also:
Constant Field Values

TYPE_HIDDEN

public static final java.lang.String TYPE_HIDDEN
See Also:
Constant Field Values

TYPE_TEXT

public static final java.lang.String TYPE_TEXT
See Also:
Constant Field Values

TYPE_BUTTON

public static final java.lang.String TYPE_BUTTON
See Also:
Constant Field Values

TYPE_RADIO

public static final java.lang.String TYPE_RADIO
See Also:
Constant Field Values

TYPE_RESET

public static final java.lang.String TYPE_RESET
See Also:
Constant Field Values

TYPE_FILE

public static final java.lang.String TYPE_FILE
See Also:
Constant Field Values

TYPE_PASSWORD

public static final java.lang.String TYPE_PASSWORD
See Also:
Constant Field Values

ALIGN_TOP

public static final java.lang.String ALIGN_TOP
See Also:
Constant Field Values

ALIGN_MIDDLE

public static final java.lang.String ALIGN_MIDDLE
See Also:
Constant Field Values

ALIGN_BOTTOM

public static final java.lang.String ALIGN_BOTTOM
See Also:
Constant Field Values

ALIGN_LEFT

public static final java.lang.String ALIGN_LEFT
See Also:
Constant Field Values

ALIGN_RIGHT

public static final java.lang.String ALIGN_RIGHT
See Also:
Constant Field Values
Constructor Detail

InputTag

public InputTag()
Constructor sets all required attributes

Method Detail

getTagName

public java.lang.String getTagName()
Description copied from class: Tag
Returns the name of this tag or null if no name has been specified.

Overrides:
getTagName in class Tag

setSize

public void setSize(int pSize)
Sets the value of the size attribute


getSize

public int getSize()
Returns the value of the size attribute


getType

public java.lang.String getType()
Returns the value of the type attribute

Overrides:
getType in class FormEventReceiver

setType

public void setType(java.lang.String pType)
Sets the value of the type attribute

Overrides:
setType in class FormEventReceiver

getValue

public java.lang.String getValue()
Returns the value of the value attribute


setValue

public void setValue(java.lang.String pValue)
Sets the value of the value attribute


getAlign

public java.lang.String getAlign()
Returns the value of the align attribute


setAlign

public void setAlign(java.lang.String pAlign)
Sets the value of the align attribute


getChecked

public boolean getChecked()
Returns the value of the checked attribute


setChecked

public void setChecked(boolean pChecked)
Sets the value of the checked attribute


getMaxLength

public int getMaxLength()
Returns the value of the maxlength attribute


setMaxLength

public void setMaxLength(int pMaxLength)
Sets the value of the maxlength attribute


service

public void service(DynamoHttpServletRequest pReq,
                    DynamoHttpServletResponse pRes)
             throws javax.servlet.ServletException,
                    java.io.IOException
Renders this input tag

Overrides:
service in class Tag
Throws:
javax.servlet.ServletException
java.io.IOException