org.siebengeisslein.pgui.validation
Class SelectionValidator
java.lang.Object
org.siebengeisslein.client.Persistent
org.siebengeisslein.pgui.validation.AbstractValidator
org.siebengeisslein.pgui.validation.SelectionValidator
- All Implemented Interfaces:
- java.lang.Cloneable, CloneAware, Instrumented, Validator
- Direct Known Subclasses:
- NotSystemAccountValidator
public class SelectionValidator
- extends AbstractValidator
|
Constructor Summary |
SelectionValidator(java.lang.String entryName,
javax.swing.ListSelectionModel model)
|
| 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 |
SelectionValidator
public SelectionValidator(java.lang.String entryName,
javax.swing.ListSelectionModel model)
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.
getModel
protected javax.swing.ListSelectionModel getModel()
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 AbstractValidator
- Throws:
java.lang.CloneNotSupportedException