com.townleyenterprises.validator
Class FieldValidationEvent
java.lang.Object
java.util.EventObject
com.townleyenterprises.validator.ValidationEvent
com.townleyenterprises.validator.FieldValidationEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class FieldValidationEvent
- extends ValidationEvent
This event is fired whenever a field validation has failed. It is
intended to provide enough information to allow the listener to
react to the validation failure and correct it if possible.
- Since:
- 3.0
- Version:
- $Id: FieldValidationEvent.java,v 1.2 2004/08/11 16:21:39 atownley Exp $
- Author:
- Andrew S. Townley
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
FieldValidationEvent(java.lang.Object sender,
Form form,
java.lang.String field,
java.lang.Object value)
The constructor initializes the instance with all the
relevant failure information. |
Method Summary |
java.lang.String |
getField()
This method returns the field name of the given form. |
java.lang.String |
getText()
This method returns the field value as a string rather than
an object. |
java.lang.Object |
getValue()
This method returns the raw field falue which triggered the
validation failure. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FieldValidationEvent
public FieldValidationEvent(java.lang.Object sender,
Form form,
java.lang.String field,
java.lang.Object value)
- The constructor initializes the instance with all the
relevant failure information.
- Parameters:
sender
- the validator instance which caused the
failureform
- the form instance containing the fieldfield
- the name of the fieldvalue
- the value which failed validation
getField
public java.lang.String getField()
- This method returns the field name of the given form.
getValue
public java.lang.Object getValue()
- This method returns the raw field falue which triggered the
validation failure.
getText
public java.lang.String getText()
- This method returns the field value as a string rather than
an object.
Copyright © 2002-2004, Andrew S. Townley and Townley Enterprises. All Rights Reserved.
This project is hosted on http://te-code.sourceforge.net.