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, HasComparable, PresentationModel, Supportable, Validatable
Direct Known Subclasses:
AbstractCustomizerPM, AbstractOperationPM, AbstractValuePM, ColumnListConfigurationPM, ColumnPM, ContactPM, EntryPM, GroupPM, ListPM, LoginPM, LoginPM, MapPM, PathBrowserPM, PathChooserPM, PathNodePM, RegexTesterPM, TimeSpanPM

public abstract class AbstractPM
extends ValidatableBean
implements PresentationModel

The AbstractPM is the general superclass of PM components.

Usually you will extend this class to create new PM components, or any of its descendents.


Nested Class Summary
 class AbstractPM.PropertiesValidationRule
          This rule evaluates to invalid if at least one of this PM's direct children is invalid (but not an instance of IOperationPM).
 
Field Summary
protected static java.lang.String KEY_MESSAGE_ONE_OR_MORE_INVALID
           
 
Constructor Summary
protected AbstractPM()
          Constructs a AbstractPM.
 
Method Summary
 java.lang.Comparable<?> getComparable()
          Returns the comparable substitute.
 Context getContext()
          Returns the Context.
 SupportMap getSupportMap()
          Returns the SupportMap of this object.
 void revalidateProperties()
          Revalidates all properties of this PM.
 
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
 

Field Detail

KEY_MESSAGE_ONE_OR_MORE_INVALID

protected static final java.lang.String KEY_MESSAGE_ONE_OR_MORE_INVALID
See Also:
Constant Field Values
Constructor Detail

AbstractPM

protected AbstractPM()
Constructs a AbstractPM.

Method Detail

getSupportMap

public SupportMap getSupportMap()
Returns the SupportMap of this object.

Specified by:
getSupportMap in interface Supportable
Returns:
the SupportMap of this object

getContext

public Context getContext()
Returns the Context.

The context is assumed being constant. Implementors must not change their context reference during lifetime.

Specified by:
getContext in interface ContextOwner
Returns:
the context.

getComparable

public java.lang.Comparable<?> getComparable()
Returns the comparable substitute. This substitute can be used for comparison of this object with another.

Override this method to control how instances of this class are sorted by a Sorter.

Specified by:
getComparable in interface HasComparable
Returns:
the comparable substitute

revalidateProperties

public void revalidateProperties()
Revalidates all properties of this PM.

See Also:
Validatable.revalidate()