swingwtx.swing.event
Class ValidationEvent
java.lang.Object
java.util.EventObject
swingwtx.swing.event.ValidationEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class ValidationEvent
- extends java.util.EventObject
This event object is used to determine if a particular
component passes/fails it's validation.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Method Summary |
java.lang.String |
getErrorMessage()
Getter for property errorMessage. |
boolean |
isValid()
Getter for property valid. |
void |
setErrorMessage(java.lang.String errorMessage)
Setter for property errorMessage. |
void |
setValid(boolean valid)
Setter for property valid. |
void |
setValid(boolean valid,
java.lang.String errorMessage)
|
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 |
valid
protected boolean valid
errorMessage
protected java.lang.String errorMessage
ValidationEvent
public ValidationEvent(java.lang.Object source)
getErrorMessage
public java.lang.String getErrorMessage()
- Getter for property errorMessage.
- Returns:
- Value of property errorMessage.
setErrorMessage
public void setErrorMessage(java.lang.String errorMessage)
- Setter for property errorMessage. Set this value if
the component fails validation and the reason why
- Parameters:
errorMessage
- New value of property errorMessage.
isValid
public boolean isValid()
- Getter for property valid.
- Returns:
- Value of property valid.
setValid
public void setValid(boolean valid)
- Setter for property valid. Set this appropriately
depending on whether the component passes validation
- Parameters:
valid
- New value of property valid.
setValid
public void setValid(boolean valid,
java.lang.String errorMessage)