org.japano.action.parameter
Class TextField
java.lang.Object
org.japano.action.Parameter
org.japano.action.parameter.TextField
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
- Direct Known Subclasses:
- Password
public class TextField
- extends Parameter
HTML form input field.
- Version:
- $Id: TextField.java,v 1.9 2005/11/26 22:33:38 fforw Exp $
- Author:
- Sven Helmberger ( sven dot helmberger at gmx dot de )
- See Also:
- Serialized Form
Method Summary |
void |
configure(MetadataTag tag)
Configures this paramater instance with information by the given MetadataTag. |
java.util.List |
createTags(ActionTag parent)
Generates a Tag for this type of parameter. |
void |
getCode(org.japano.jasper.compiler.ServletWriter servletWriter,
org.japano.jasper.compiler.CompilationContext context,
java.lang.String styleId,
java.lang.String styleClass,
java.lang.String style)
Returns the input field code for this type of parameter |
protected java.lang.String |
getInputType()
|
void |
setMaxLength(int maxLength)
|
java.lang.String |
toString()
|
protected java.lang.String |
validate(Session session,
java.lang.String value)
|
Methods inherited from class org.japano.action.Parameter |
addListVariable, addStyleAttributes, appendAttribute, appendStyleAttributes, clone, configureValidation, getAccessorName, getDefaultValue, getDescription, getErrorMessage, getFieldId, getMutator, getMutatorName, getName, getProperty, getQualifiedName, getRequiredMessage, getTagName, getType, getValueMethod, isRequired, makeFieldId, set, set, setDefaultValue, setDescription, setName, setParent, setProperty, setValidator, valueExpression |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TextField
public TextField()
setMaxLength
public void setMaxLength(int maxLength)
createTags
public java.util.List createTags(ActionTag parent)
- Description copied from class:
Parameter
- Generates a Tag for this type of parameter.
- Specified by:
createTags
in class Parameter
- Parameters:
parent
- action tag this parameter is child of
- Returns:
- Tag or
null
configure
public void configure(MetadataTag tag)
- Description copied from class:
Parameter
- Configures this paramater instance with information by the given MetadataTag.
- Specified by:
configure
in class Parameter
getCode
public void getCode(org.japano.jasper.compiler.ServletWriter servletWriter,
org.japano.jasper.compiler.CompilationContext context,
java.lang.String styleId,
java.lang.String styleClass,
java.lang.String style)
- Description copied from class:
Parameter
- Returns the input field code for this type of parameter
- Specified by:
getCode
in class Parameter
- Parameters:
servletWriter
- ServletWritercontext
- PageNodeCreator contextstyleId
- HTML id attributestyleClass
- HTML class attributestyle
- HTML style attribute
getInputType
protected java.lang.String getInputType()
toString
public java.lang.String toString()
- Overrides:
toString
in class Parameter
validate
protected java.lang.String validate(Session session,
java.lang.String value)
throws InvalidParameterException
- Overrides:
validate
in class Parameter
- Throws:
InvalidParameterException