|
SRJRCFrames v0.1.296 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.schwarzrot.ui.validation.constraints.AbstractValidationConstraint<E> de.schwarzrot.ui.validation.constraints.VCDirIsWritable<E>
E
- type of the bean managed by a presentation modelpublic class VCDirIsWritable<E extends Entity>
offers a constraint, that checks if certain directory is writable. Directory is the property value of a bean. The second constructor enables conditional checks depending on another property value.
Constructor Summary | |
---|---|
VCDirIsWritable(com.jgoodies.binding.PresentationModel<E> model,
String propertyName)
creates a constraint, that checks, whether the value of the given property is a writable directory |
|
VCDirIsWritable(com.jgoodies.binding.PresentationModel<E> model,
String propertyName,
PropertyCondition<E> pc)
creates a constraint, that checks, whether the value of the given property is a writable directory. |
Method Summary | |
---|---|
boolean |
matches()
the validation kernel |
Methods inherited from class de.schwarzrot.ui.validation.constraints.AbstractValidationConstraint |
---|
getLogger, getModel, getPropertyName, getValue, getValue, setModel, setPropertyName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VCDirIsWritable(com.jgoodies.binding.PresentationModel<E> model, String propertyName)
model
- - the presentation model, that manages the beanpropertyName
- - the name of the property containing the path of a directorypublic VCDirIsWritable(com.jgoodies.binding.PresentationModel<E> model, String propertyName, PropertyCondition<E> pc)
PropertyCondition
is a
construct to check, whether validating should be bypassed or not.
model
- - the presentation model, that manages the beanpropertyName
- - the name of the property containing the path of a directorypc
- - a PropertyCondition
used to bypass the validating.
If property condition matches, it means no validation will be
performed and if the property condition fails the validating
will be performed.Method Detail |
---|
public boolean matches()
ValidationConstraint
false - if the property failed on validation
|
SRJRCFrames v0.1.296 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |