|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 PropertyAdapter
bean
- the beanvalue
- the value to validate
ValidationReport
public PropertyAdapter setValidators(java.util.Set<Validator> validators)
PropertyAdapter
setValidators
in interface PropertyAdapter
validators
- the validators
Validator
public PropertyAdapter addValidator(Validator validator)
PropertyAdapter
addValidator
in interface PropertyAdapter
Validator
public PropertyAdapter setFormat(Format format)
PropertyAdapter
setFormat
in interface PropertyAdapter
format
- the format
public PropertyAdapter setDecorator(Decorator decorator)
PropertyAdapter
setDecorator
in interface PropertyAdapter
decorator
- the decorator
public Decorator getDecorator()
PropertyAdapter
getDecorator
in interface PropertyAdapter
public java.lang.String getLabel()
PropertyAdapter
getLabel
in interface PropertyAdapter
public PropertyAdapter setLabel(java.lang.String label)
PropertyAdapter
setLabel
in interface PropertyAdapter
label
- The label to set.
public java.lang.String getId()
PropertyAdapter
getId
in interface PropertyAdapter
public PropertyAdapter setId(java.lang.String id)
PropertyAdapter
setId
in interface PropertyAdapter
id
- the id
public Format getFormat()
PropertyAdapter
getFormat
in interface PropertyAdapter
public java.util.Set<Validator> getValidators()
public PropertyAdapter setValidationHandler(ValidationHandler validationHandler)
PropertyAdapter
setValidationHandler
in interface PropertyAdapter
validationHandler
- The validation handler
public ValidationHandler getValidationHandler()
PropertyAdapter
getValidationHandler
in interface PropertyAdapter
public PropertyAdapter setSubContext(BindingContext context)
PropertyAdapter
setSubContext
in interface PropertyAdapter
context
- 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 |