com.fruitioninc.jwc
Class AbstractModel

java.lang.Object
  |
  +--com.fruitioninc.jwc.AbstractModel
All Implemented Interfaces:
Model
Direct Known Subclasses:
AbstractListBoxModel, AbstractTableModel, AbstractThreadLocalModel, DefaultButtonModel, DefaultHyperLinkModel, DefaultLabelModel, DefaultPageModel, DefaultTextAreaModel, DefaultTextFieldModel

public abstract class AbstractModel
extends java.lang.Object
implements Model

Partial implementation of the Model interface. No assumptions are made about where the state is stored.


Constructor Summary
AbstractModel()
          Creates a non-statefull model.
AbstractModel(boolean statefull)
          Creates a model.
 
Method Summary
 boolean _getStatefull()
          Returns true if this model's state should persist beyond the life its page.
 void _setStatefull(boolean statefull)
          Sets the state of this model's statefullness.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractModel

public AbstractModel()
Creates a non-statefull model.


AbstractModel

public AbstractModel(boolean statefull)
Creates a model.

Parameters:
statefull - specifies whether the model is statefull.
Method Detail

_getStatefull

public boolean _getStatefull()
Description copied from interface: Model
Returns true if this model's state should persist beyond the life its page.

Specified by:
_getStatefull in interface Model

_setStatefull

public void _setStatefull(boolean statefull)
Description copied from interface: Model
Sets the state of this model's statefullness.

Specified by:
_setStatefull in interface Model
See Also:
isStatefull