SRJRCFrames
v0.1.296

de.schwarzrot.ui.model
Class WizardModel<E extends Entity>

java.lang.Object
  extended by com.jgoodies.binding.beans.Model
      extended by com.jgoodies.binding.PresentationModel<E>
          extended by de.schwarzrot.ui.model.WizardModel<E>
Type Parameters:
E - - the entity that is the data base for the wizard
All Implemented Interfaces:
com.jgoodies.binding.beans.Observable, PropertyChangeListener, Serializable, EventListener

public class WizardModel<E extends Entity>
extends com.jgoodies.binding.PresentationModel<E>
implements PropertyChangeListener

is a PresentationModel that offers support for partial validated beans. Wizzards need that support, as each WizzardPage may offer a different view to the same bean. Additionally it may be necessary, to skip a WizzardPage leaving all its managed properties unvalidated.

Author:
Reinhard Mantey
See Also:
Serialized Form

Nested Class Summary
protected  class WizardModel.ValidationUpdateHandler
          Validates the order using an OrderValidator and updates the validation result.
 
Field Summary
protected  Validator<E> validator
           
 
Fields inherited from class com.jgoodies.binding.PresentationModel
PROPERTYNAME_AFTER_BEAN, PROPERTYNAME_BEAN, PROPERTYNAME_BEFORE_BEAN, PROPERTYNAME_BUFFERING, PROPERTYNAME_CHANGED, PROPERTYNAME_TRIGGERCHANNEL
 
Constructor Summary
WizardModel(E bean)
           
 
Method Summary
 void addPage(AbstractWizardPage<E> page)
           
 int getCurrentPage()
           
protected  org.apache.commons.logging.Log getLogger()
           
 List<String> getPageNames()
           
 Map<String,AbstractWizardPage<E>> getPagePool()
           
 com.jgoodies.validation.ValidationResultModel getValidationResultModel()
           
protected  Validator<E> getValidator()
           
 void propertyChange(PropertyChangeEvent evt)
           
 void refresh()
           
 void setCurrentPage(int newValue)
           
 void setPageNames(List<String> pageNames)
           
 void setPagePool(Map<String,AbstractWizardPage<E>> pagePool)
           
 void setValidator(Validator<E> validator)
           
 
Methods inherited from class com.jgoodies.binding.PresentationModel
addBeanPropertyChangeListener, addBeanPropertyChangeListener, afterBeanChange, beforeBeanChange, createBeanAdapter, getBean, getBeanChannel, getBeanPropertyChangeListeners, getBeanPropertyChangeListeners, getBufferedComponentModel, getBufferedModel, getBufferedModel, getBufferedValue, getComponentModel, getModel, getModel, getTriggerChannel, getValue, isBuffering, isChanged, observeChanged, observeChanged, release, removeBeanPropertyChangeListener, removeBeanPropertyChangeListener, resetChanged, retractInterestFor, retractInterestFor, setBean, setBufferedValue, setChanged, setTriggerChannel, setValue, setVetoableValue, triggerCommit, triggerFlush
 
Methods inherited from class com.jgoodies.binding.beans.Model
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

validator

protected Validator<E extends Entity> validator
Constructor Detail

WizardModel

public WizardModel(E bean)
Method Detail

addPage

public void addPage(AbstractWizardPage<E> page)

getCurrentPage

public int getCurrentPage()

getPageNames

public List<String> getPageNames()

getPagePool

public Map<String,AbstractWizardPage<E>> getPagePool()

getValidationResultModel

public com.jgoodies.validation.ValidationResultModel getValidationResultModel()

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Specified by:
propertyChange in interface PropertyChangeListener

refresh

public void refresh()

setCurrentPage

public void setCurrentPage(int newValue)

setPageNames

public void setPageNames(List<String> pageNames)

setPagePool

public void setPagePool(Map<String,AbstractWizardPage<E>> pagePool)

setValidator

public void setValidator(Validator<E> validator)

getLogger

protected final org.apache.commons.logging.Log getLogger()

getValidator

protected Validator<E> getValidator()

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.