org.chwf.plugin
Interface ValidationData

All Known Implementing Classes:
InputTag

public interface ValidationData

Interface for components that contain validation data used to generate client-side validation with the Scripter class.

Author:
Paul Strack

Field Summary
static java.lang.String TYPE_CHECKBOX
          Input type for checkbox.
static java.lang.String TYPE_FIXED
          Input type for fixed.
static java.lang.String TYPE_HIDDEN
          Input type for hidden.
static java.lang.String TYPE_PASSWORD
          Input type for password.
static java.lang.String TYPE_SELECT
          Input type for select.
static java.lang.String TYPE_TEXT
          Input type for text.
static java.lang.String TYPE_TEXTAREA
          Input type for textarea.
 
Method Summary
 java.lang.Object getLocalizedAttribute(java.lang.String attribute)
          Returns the named and localized attribute for the property.
 java.lang.String getName()
          The form field name.
 java.lang.Object getPropertyAttribute(java.lang.String attribute)
          Returns the named attribute for the property.
 java.lang.String getType()
          Gets the input element type.
 

Field Detail

TYPE_CHECKBOX

public static final java.lang.String TYPE_CHECKBOX
Input type for checkbox.

TYPE_HIDDEN

public static final java.lang.String TYPE_HIDDEN
Input type for hidden.

TYPE_FIXED

public static final java.lang.String TYPE_FIXED
Input type for fixed.

TYPE_PASSWORD

public static final java.lang.String TYPE_PASSWORD
Input type for password.

TYPE_SELECT

public static final java.lang.String TYPE_SELECT
Input type for select.

TYPE_TEXT

public static final java.lang.String TYPE_TEXT
Input type for text.

TYPE_TEXTAREA

public static final java.lang.String TYPE_TEXTAREA
Input type for textarea.
Method Detail

getName

public java.lang.String getName()
The form field name. Defaults to the property name if absent.

Returns:
The field name.

getPropertyAttribute

public java.lang.Object getPropertyAttribute(java.lang.String attribute)
                                      throws javax.servlet.jsp.JspException
Returns the named attribute for the property.

Parameters:
attribute - The attribute name.
Returns:
The attribute value.
Throws:
javax.servlet.jsp.JspException - If the property filter cannot be initialized.

getLocalizedAttribute

public java.lang.Object getLocalizedAttribute(java.lang.String attribute)
                                       throws javax.servlet.jsp.JspException
Returns the named and localized attribute for the property.

Parameters:
attribute - The attribute name.
Returns:
The attribute value.
Throws:
javax.servlet.jsp.JspException - If the property filter cannot be initialized.

getType

public java.lang.String getType()
                         throws javax.servlet.jsp.JspException
Gets the input element type.

Returns:
The input type.
Throws:
javax.servlet.jsp.JspException - If the type cannot be derived


Copyright © 2002-2004, Paul Strack. All Rights Reserved.