org.siebengeisslein.pgui.validation
Class EqualTextFieldValidator

java.lang.Object
  extended by org.siebengeisslein.client.Persistent
      extended by org.siebengeisslein.pgui.validation.AbstractValidator
          extended by org.siebengeisslein.pgui.validation.AbstractPComponentValidator<PTextField>
              extended by org.siebengeisslein.pgui.validation.EqualTextFieldValidator
All Implemented Interfaces:
java.lang.Cloneable, CloneAware, Instrumented, Validator

public class EqualTextFieldValidator
extends AbstractPComponentValidator<PTextField>


Constructor Summary
EqualTextFieldValidator(PTextField textField1, PTextField textField2, java.lang.String message)
           
 
Method Summary
 CloneAware clone(CloneHelper helper)
           
 java.lang.String getValidationMessage()
           
 boolean isEnabled()
          Returns wether this validator is currently enabled.
 boolean isValid()
           
 
Methods inherited from class org.siebengeisslein.pgui.validation.AbstractPComponentValidator
getComponent, getListener
 
Methods inherited from class org.siebengeisslein.pgui.validation.AbstractValidator
addChangeListener, fireChangeEvent, removeChangeListener
 
Methods inherited from class org.siebengeisslein.client.Persistent
abort, clearUserLocals, clone, commit, disposeTransient, getGroup, getRef, getTransientValue, hashCode, initTransient, isWriteTransaction, joinWriteTransaction, readLock, setGroup, setTransientValue, toPersistent, toRef, writeExternal, writeLock
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EqualTextFieldValidator

public EqualTextFieldValidator(PTextField textField1,
                               PTextField textField2,
                               java.lang.String message)
Method Detail

isEnabled

public boolean isEnabled()
Description copied from interface: Validator
Returns wether this validator is currently enabled. For example a validator for a textfield will return false, if the textfield is not editable.


isValid

public boolean isValid()

getValidationMessage

public java.lang.String getValidationMessage()

clone

public CloneAware clone(CloneHelper helper)
                 throws java.lang.CloneNotSupportedException
Specified by:
clone in interface CloneAware
Overrides:
clone in class AbstractPComponentValidator<PTextField>
Throws:
java.lang.CloneNotSupportedException