it.amattioli.applicate.commands
Class AbstractBeanEditor<T>
java.lang.Object
it.amattioli.applicate.commands.AbstractBeanEditor<T>
- Type Parameters:
T -
- All Implemented Interfaces:
- BeanEditor<T>, it.amattioli.dominate.util.PropertyChangeEmitter, it.amattioli.dominate.validation.Validator
public abstract class AbstractBeanEditor<T>
- extends Object
- implements BeanEditor<T>, it.amattioli.dominate.validation.Validator, it.amattioli.dominate.util.PropertyChangeEmitter
Abstract implementation of the BeanEditor interface with validation and
property change support.
When the editing bean is set:
- the editor set a listener on the editing bean so each time a property change
event is fired on the editing bean, the editor will fire a similar event
- the editor will become a
Validator for the editing bean. When a call
to a validating method is performed the editing bean itself will be validated
- Author:
- andrea
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractBeanEditor
public AbstractBeanEditor()
getEditingBean
public T getEditingBean()
- Specified by:
getEditingBean in interface BeanEditor<T>
setEditingBean
public void setEditingBean(T editingBean)
- Specified by:
setEditingBean in interface BeanEditor<T>
getPropertyConstraint
public it.amattioli.dominate.validation.Constraint getPropertyConstraint(String propertyName,
String constraintName)
- Specified by:
getPropertyConstraint in interface it.amattioli.dominate.validation.Validator
getPropertyConstraints
public Collection<it.amattioli.dominate.validation.Constraint> getPropertyConstraints(String propertyName)
- Specified by:
getPropertyConstraints in interface it.amattioli.dominate.validation.Validator
validateBean
public it.amattioli.dominate.validation.ValidationResult validateBean()
- Specified by:
validateBean in interface it.amattioli.dominate.validation.Validator
validateProperty
public it.amattioli.dominate.validation.ValidationResult validateProperty(String propertyName,
Object value)
- Specified by:
validateProperty in interface it.amattioli.dominate.validation.Validator
firePropertyChange
protected void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
- Specified by:
addPropertyChangeListener in interface it.amattioli.dominate.util.PropertyChangeEmitter
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
- Specified by:
removePropertyChangeListener in interface it.amattioli.dominate.util.PropertyChangeEmitter
Copyright © 2011. All Rights Reserved.