Logo Search packages:      
Sourcecode: libjgoodies-binding-java version File versions

com::jgoodies::binding::tutorial::manager::BufferedAlbumPresentationModel Class Reference

Inheritance diagram for com::jgoodies::binding::tutorial::manager::BufferedAlbumPresentationModel:

com::jgoodies::binding::tutorial::AlbumPresentationModel com::jgoodies::binding::PresentationModel com::jgoodies::binding::beans::Model com::jgoodies::binding::beans::Observable

List of all members.


Detailed Description

In addition to its superclass AlbumPresentationModel this class provides a bound read-only property and presentation logic for views that present buffered Album contents.

The bufferedComposerEnabled property is true if and only if the underlying Album is non-null and the buffered classical property is true. This aggregated property is intended to be used by views that present buffered albums and want to indicate the composer enablement.

Also, this buffered presentation model adds presentation logic that is copied from the domain: if the buffered classical property is deselected, the buffered composer content is set to null.

This code could be moved to the AlbumPresentationModel. But I wanted to keep the AlbumPresentationModel close to the example that Martin Fowler uses to describe the Presentation Model pattern.

Author:
Karsten Lentzsch
Version:
Revision
1.5

See also:
AlbumPresentationModel

Definition at line 64 of file BufferedAlbumPresentationModel.java.


Public Member Functions

synchronized void addBeanPropertyChangeListener (String propertyName, PropertyChangeListener listener)
synchronized void addBeanPropertyChangeListener (PropertyChangeListener listener)
final synchronized void addPropertyChangeListener (String propertyName, PropertyChangeListener listener)
final synchronized void addPropertyChangeListener (PropertyChangeListener listener)
final synchronized void addVetoableChangeListener (String propertyName, VetoableChangeListener listener)
final synchronized void addVetoableChangeListener (VetoableChangeListener listener)
void afterBeanChange (Object oldBean, Object newBean)
void beforeBeanChange (Object oldBean, Object newBean)
 BufferedAlbumPresentationModel (Album album)
Object getBean ()
ValueModel getBeanChannel ()
synchronized
PropertyChangeListener[] 
getBeanPropertyChangeListeners (String propertyName)
synchronized
PropertyChangeListener[] 
getBeanPropertyChangeListeners ()
ComponentValueModel getBufferedComponentModel (String propertyName)
BufferedValueModel getBufferedModel (String propertyName, String getterName, String setterName)
BufferedValueModel getBufferedModel (String propertyName)
Object getBufferedValue (String propertyName)
ComponentValueModel getComponentModel (String propertyName)
AbstractValueModel getModel (String propertyName, String getterName, String setterName)
AbstractValueModel getModel (String propertyName)
final synchronized
PropertyChangeListener[] 
getPropertyChangeListeners (String propertyName)
final synchronized
PropertyChangeListener[] 
getPropertyChangeListeners ()
ValueModel getTriggerChannel ()
Object getValue (String propertyName)
final synchronized
VetoableChangeListener[] 
getVetoableChangeListeners (String propertyName)
final synchronized
VetoableChangeListener[] 
getVetoableChangeListeners ()
boolean isBufferedComposerEnabled ()
boolean isBuffering ()
boolean isChanged ()
boolean isComposerEnabled ()
void observeChanged (ValueModel valueModel)
void observeChanged (Object bean, String propertyName)
void release ()
synchronized void removeBeanPropertyChangeListener (String propertyName, PropertyChangeListener listener)
synchronized void removeBeanPropertyChangeListener (PropertyChangeListener listener)
final synchronized void removePropertyChangeListener (String propertyName, PropertyChangeListener listener)
final synchronized void removePropertyChangeListener (PropertyChangeListener listener)
final synchronized void removeVetoableChangeListener (String propertyName, VetoableChangeListener listener)
final synchronized void removeVetoableChangeListener (VetoableChangeListener listener)
void resetChanged ()
void retractInterestFor (ValueModel valueModel)
void retractInterestFor (Object bean, String propertyName)
void setBean (Object newBean)
void setBufferedValue (String propertyName, Object newValue)
void setTriggerChannel (ValueModel newTriggerChannel)
void setValue (String propertyName, Object newValue)
void setVetoableValue (String propertyName, Object newValue) throws PropertyVetoException
void triggerCommit ()
void triggerFlush ()

Static Public Attributes

static final String PROPERTYNAME_AFTER_BEAN = "afterBean"
static final String PROPERTYNAME_BEAN = "bean"
static final String PROPERTYNAME_BEFORE_BEAN = "beforeBean"
static final String PROPERTYNAME_BUFFERED_COMPOSER_ENABLED
static final String PROPERTYNAME_BUFFERING = "buffering"
static final String PROPERTYNAME_CHANGED = "changed"
static final String PROPERTYNAME_COMPOSER_ENABLED = "composerEnabled"
static final String PROPERTYNAME_TRIGGERCHANNEL = "triggerChannel"

Protected Member Functions

BeanAdapter createBeanAdapter (ValueModel beanChannel)
final boolean equals (Object o1, Object o2)
final void fireMultiplePropertiesChanged ()
final void firePropertyChange (String propertyName, long oldValue, long newValue)
final void firePropertyChange (String propertyName, int oldValue, int newValue)
final void firePropertyChange (String propertyName, float oldValue, float newValue)
final void firePropertyChange (String propertyName, double oldValue, double newValue)
final void firePropertyChange (String propertyName, boolean oldValue, boolean newValue)
final void firePropertyChange (String propertyName, Object oldValue, Object newValue, boolean checkIdentity)
final void firePropertyChange (String propertyName, Object oldValue, Object newValue)
final void firePropertyChange (PropertyChangeEvent event)
final void fireVetoableChange (String propertyName, long oldValue, long newValue) throws PropertyVetoException
final void fireVetoableChange (String propertyName, float oldValue, float newValue) throws PropertyVetoException
final void fireVetoableChange (String propertyName, int oldValue, int newValue) throws PropertyVetoException
final void fireVetoableChange (String propertyName, double oldValue, double newValue) throws PropertyVetoException
final void fireVetoableChange (String propertyName, boolean oldValue, boolean newValue) throws PropertyVetoException
final void fireVetoableChange (String propertyName, Object oldValue, Object newValue) throws PropertyVetoException
final void fireVetoableChange (PropertyChangeEvent event) throws PropertyVetoException
void setChanged (boolean newValue)

Private Member Functions

void initEventHandling ()
boolean isBufferedClassical ()

Classes

class  BufferedClassicalChangeHandler

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index