| net.xoetrope.xui.validation.XValidationExceptionHandler
All known Subclasses: net.xoetrope.xui.XPage, net.xoetrope.xui.validation.XValidationHandler, net.xoetrope.samples.apps.FirstPage, net.xoetrope.samples.controls.ValidationSample, net.xoetrope.samples.advanced.Validation,
XValidationExceptionHandler | public interface XValidationExceptionHandler (Code) | | An interface defining the method taht will be called when a validation
fails. The interface can be implemented by any class and in this way error
reporting or logging can be redirected to a variety of destinations.
Copyright: Copyright (c) Xoetrope Ltd., 1998-2003
License: see license.txt
$Revision: 1.11 $
|
Method Summary | |
public int | accumulateMessages(boolean accumulate, int level) informs the handler when a page validation is starting or stopping. | public boolean | handleException(Component c, Exception ex, XValidator validator) A method called when a validation exeption has been trapped.
Parameters: c - Component being validated Parameters: ex - The exception caused Parameters: validator - The validator being used to validate. |
accumulateMessages | public int accumulateMessages(boolean accumulate, int level)(Code) | | informs the handler when a page validation is starting or stopping. Typically
when it starts the page will begin to accumulate message which are to be displayed.
When the parameter is false the page will usually display the accumulated
messages
Parameters: start - boolean to indicate whether the accumulation is started or stopped. Parameters: level - int which indicates the most serious level of error encountered the new level which might be set to zero if a confirm dialog is displayed |
handleException | public boolean handleException(Component c, Exception ex, XValidator validator)(Code) | | A method called when a validation exeption has been trapped.
Parameters: c - Component being validated Parameters: ex - The exception caused Parameters: validator - The validator being used to validate. true to continue with error validation or false to suppress furthervalidation. |
|
|