org.beanfabrics.model
Class AbstractPM

java.lang.Object
  extended by org.beanfabrics.AbstractBean
      extended by org.beanfabrics.ValidatableBean
          extended by org.beanfabrics.model.AbstractPM
All Implemented Interfaces:
Bean, ContextOwner, PresentationModel, Supportable, Validatable
Direct Known Subclasses:
AbstractOperationPM, AbstractValuePM, ListPM, MapPM

public abstract class AbstractPM
extends ValidatableBean
implements PresentationModel

Author:
Michael Karneim

Nested Class Summary
 class AbstractPM.PropertiesValidationRule
          This rule defines that this object is invalid if any of its properties (that are NOT instances of IOperationPM) is invalid.
 
Constructor Summary
AbstractPM()
           
 
Method Summary
protected  ValidationRule createPropertiesValidationRule()
           
 Context getContext()
          Returns the Context of this model.
 SupportMap getSupportMap()
           
 void revalidateProperties()
           
 
Methods inherited from class org.beanfabrics.ValidatableBean
getValidationState, getValidator, isValid, revalidate, setValidationState
 
Methods inherited from class org.beanfabrics.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, equals, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.beanfabrics.Bean
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface org.beanfabrics.validation.Validatable
getValidationState, getValidator, isValid, revalidate
 

Constructor Detail

AbstractPM

public AbstractPM()
Method Detail

getSupportMap

public SupportMap getSupportMap()
Specified by:
getSupportMap in interface Supportable

getContext

public Context getContext()
Description copied from interface: ContextOwner
Returns the Context of this model.

Specified by:
getContext in interface ContextOwner
Returns:
the IContext of this model

revalidateProperties

public void revalidateProperties()

createPropertiesValidationRule

protected ValidationRule createPropertiesValidationRule()


© 2010 by Michael Karneim, http://www.beanfabrics.org