com.primix.tapestry.valid
Interface IValidatingTextField

All Superinterfaces:
IComponent, IRender
All Known Implementing Classes:
AbstractValidatingTextField

public interface IValidatingTextField
extends IComponent

Interface for a number of components that act as a normal TextField component, but perform extra validation.

Version:
$Id: IValidatingTextField.java,v 1.4 2001/05/02 14:15:17 hship Exp $
Author:
Howard Ship

Method Summary
 java.lang.String getDisplayName()
          Returns the display name for the component, suitable for display to a user.
 boolean getError()
          Returns true if an error has been detected in this component.
 java.lang.String getName()
          Returns the form name for the component; this is for constructing JavaScript event handlers and such.
 boolean isRequired()
          Returns true if entering a non-null value into the field is required.
 void refresh()
          Forces the component to re-read through its value binding (whose name and type is dependant on the implementation).
 void setError(boolean value)
          Used to force an error flag on or off for this component.
 
Methods inherited from interface com.primix.tapestry.IComponent
addAsset, addComponent, addWrapped, finishLoad, getAsset, getAssets, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getPage, getSpecification, renderWrapped, setBinding, setContainer, setId, setPage, setSpecification
 
Methods inherited from interface com.primix.tapestry.IRender
render
 

Method Detail

isRequired

public boolean isRequired()
Returns true if entering a non-null value into the field is required.

refresh

public void refresh()
Forces the component to re-read through its value binding (whose name and type is dependant on the implementation). Normally this only occurs once per request cycle. This does not clear the error property.

getError

public boolean getError()
Returns true if an error has been detected in this component.

setError

public void setError(boolean value)
Used to force an error flag on or off for this component.

getDisplayName

public java.lang.String getDisplayName()
Returns the display name for the component, suitable for display to a user.

getName

public java.lang.String getName()
Returns the form name for the component; this is for constructing JavaScript event handlers and such. This value won't be set until after the component renders.