|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.echobinding.binding.AbstractPropertyAdapter
public abstract class AbstractPropertyAdapter
PropertyAdapter| Constructor Summary | |
|---|---|
AbstractPropertyAdapter()
|
|
| Method Summary | |
|---|---|
PropertyAdapter |
addValidator(Validator validator)
Adds a validator to the list of validators. |
protected java.lang.Object |
format(java.lang.Object value)
|
Decorator |
getDecorator()
Returns the decorator. |
Format |
getFormat()
Sets the format to be used by the getValue() method. |
java.lang.String |
getId()
Returns the identifier of the adapter. |
java.lang.String |
getLabel()
Returns the label for the adapter. |
BindingContext |
getSubContext()
Returns the sub context. |
ValidationHandler |
getValidationHandler()
Returns the validation handler. |
java.util.Set<Validator> |
getValidators()
|
protected java.lang.Object |
parse(java.lang.Object value)
|
PropertyAdapter |
setDecorator(Decorator decorator)
Sets the decorator for this adapter. |
PropertyAdapter |
setFormat(Format format)
Sets the format to be used by the getValue() method. |
PropertyAdapter |
setId(java.lang.String id)
Sets the identifier for the adapter. |
PropertyAdapter |
setLabel(java.lang.String label)
Sets the label. |
PropertyAdapter |
setSubContext(BindingContext context)
Sets the sub context. |
PropertyAdapter |
setValidationHandler(ValidationHandler validationHandler)
Sets the validation handler. |
PropertyAdapter |
setValidators(java.util.Set<Validator> validators)
Sets the validators. |
ValidationReport |
validate(java.lang.Object bean,
java.lang.Object value)
Checks if the given value is valid for the specified bean. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.echobinding.binding.PropertyAdapter |
|---|
getValue, newInstance, setValue |
| Constructor Detail |
|---|
public AbstractPropertyAdapter()
| Method Detail |
|---|
protected java.lang.Object format(java.lang.Object value)
protected java.lang.Object parse(java.lang.Object value)
public ValidationReport validate(java.lang.Object bean,
java.lang.Object value)
PropertyAdapter
validate in interface PropertyAdapterbean - the beanvalue - the value to validate
ValidationReportpublic PropertyAdapter setValidators(java.util.Set<Validator> validators)
PropertyAdapter
setValidators in interface PropertyAdaptervalidators - the validators
Validatorpublic PropertyAdapter addValidator(Validator validator)
PropertyAdapter
addValidator in interface PropertyAdapterValidatorpublic PropertyAdapter setFormat(Format format)
PropertyAdapter
setFormat in interface PropertyAdapterformat - the format
public PropertyAdapter setDecorator(Decorator decorator)
PropertyAdapter
setDecorator in interface PropertyAdapterdecorator - the decorator
public Decorator getDecorator()
PropertyAdapter
getDecorator in interface PropertyAdapterpublic java.lang.String getLabel()
PropertyAdapter
getLabel in interface PropertyAdapterpublic PropertyAdapter setLabel(java.lang.String label)
PropertyAdapter
setLabel in interface PropertyAdapterlabel - The label to set.
public java.lang.String getId()
PropertyAdapter
getId in interface PropertyAdapterpublic PropertyAdapter setId(java.lang.String id)
PropertyAdapter
setId in interface PropertyAdapterid - the id
public Format getFormat()
PropertyAdapter
getFormat in interface PropertyAdapterpublic java.util.Set<Validator> getValidators()
public PropertyAdapter setValidationHandler(ValidationHandler validationHandler)
PropertyAdapter
setValidationHandler in interface PropertyAdaptervalidationHandler - The validation handler
public ValidationHandler getValidationHandler()
PropertyAdapter
getValidationHandler in interface PropertyAdapterpublic PropertyAdapter setSubContext(BindingContext context)
PropertyAdapter
setSubContext in interface PropertyAdaptercontext - The context to set
public BindingContext getSubContext()
PropertyAdapter
getSubContext in interface PropertyAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||