wheel.components
Class ValidationError

java.lang.Object
  extended by wheel.components.ValidationError

public class ValidationError
extends java.lang.Object

Represents a validation error on a FormElement class. Many validation errors can be attached to single FormElement.

Author:
Henri Frilund

Constructor Summary
ValidationError(java.lang.String message, Component source)
           
 
Method Summary
 java.lang.String getMessage()
          Returns the validation message (set by calling FormElement#addValidationRule(String, String)) without evaluating it.
 Component getSource()
          Returns the component that caused this error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationError

public ValidationError(java.lang.String message,
                       Component source)
Method Detail

getMessage

public java.lang.String getMessage()
Returns the validation message (set by calling FormElement#addValidationRule(String, String)) without evaluating it.

Returns:

getSource

public Component getSource()
Returns the component that caused this error.

Returns:


Copyright © 2007-2008. All Rights Reserved.