com.townleyenterprises.validator
Class ValidationEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.townleyenterprises.validator.ValidationEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
FieldSetValidationEvent, FieldValidationEvent

public abstract class ValidationEvent
extends java.util.EventObject

This event is the basis for all of the validation failure events. It provides a way to consume the event and detect if the failure has already been corrected in addition to a link to the form holding the data to be validated.

Since:
3.0
Version:
$Id: ValidationEvent.java,v 1.1 2004/07/28 10:13:40 atownley Exp $
Author:
Andrew S. Townley
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ValidationEvent(java.lang.Object sender, Form form)
          The constructor initializes the instance with the event sender.
 
Method Summary
 void consume()
          Consume the event and mark it so that other listeners in the chain can detect if they have to do anything.
 Form getForm()
          Retrieve a reference to the form.
 boolean isConsumed()
          Check if the event has been consumed.
 
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
 

Constructor Detail

ValidationEvent

public ValidationEvent(java.lang.Object sender,
                       Form form)
The constructor initializes the instance with the event sender.

Parameters:
sender - the validator instance which caused the failure
Method Detail

consume

public void consume()
Consume the event and mark it so that other listeners in the chain can detect if they have to do anything.


isConsumed

public boolean isConsumed()
Check if the event has been consumed.


getForm

public Form getForm()
Retrieve a reference to the form.



Copyright © 2002-2004, Andrew S. Townley and Townley Enterprises. All Rights Reserved.
This project is hosted on http://te-code.sourceforge.net.