All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.netobjects.nfx.wizard.WizardModel

java.lang.Object
   |
   +----java.util.Observable
           |
           +----com.netobjects.nfx.wizard.WizardModel

public class WizardModel
extends Observable
implements Observer
This class is the model portion of a model-view-controller design, the wizard-part-view being the view portion. The controller is replaced by the java Observable/Observer mechanism.

Version:
1.0
Author:
Scott Cinnamond

Variable Index

 o dmWizardView

Constructor Index

 o WizardModel(WizardView)
Constructor.

Method Index

 o createView()
Create the view.
 o getView()
 o isValid()
Return true if there is a corrisponding view member which has been instanciated and it is valid.
 o show()
Create the associated view if not already instanciated.
 o update(Observable, Object)
Implements the Observer interface.

Variables

 o dmWizardView
 protected WizardView dmWizardView

Constructors

 o WizardModel
 public WizardModel(WizardView page)
Constructor.

Parameters:
page - the parent page.

Methods

 o getView
 public WizardView getView()
 o isValid
 public boolean isValid()
Return true if there is a corrisponding view member which has been instanciated and it is valid.

 o show
 public void show()
Create the associated view if not already instanciated.

 o createView
 public void createView()
Create the view. This class must be overridden in derived classes.

 o update
 public void update(Observable observable,
                    Object object)
Implements the Observer interface.

Parameters:
observable - the observable object.
object - an object argument.

All Packages  Class Hierarchy  This Package  Previous  Next  Index