org.jaffa.presentation.portlet.widgets.model
Class CheckBoxModel

java.lang.Object
  extended byorg.jaffa.presentation.portlet.widgets.model.WidgetModel
      extended byorg.jaffa.presentation.portlet.widgets.model.CheckBoxModel

public class CheckBoxModel
extends WidgetModel

Model for the CheckBox widget.


Constructor Summary
CheckBoxModel(boolean checkValue)
          Creates a new instance with the specified value.
CheckBoxModel(Boolean checkValue)
          Creates a new instance with the specified value.
 
Method Summary
 boolean getState()
          Returns the value of the model.
 boolean isModelChanged()
          See if model has changed, in the process reset the changed flag.
 void setState(boolean checkValue)
          Sets the value of the model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckBoxModel

public CheckBoxModel(Boolean checkValue)
Creates a new instance with the specified value.

Parameters:
checkValue - the initial value.

CheckBoxModel

public CheckBoxModel(boolean checkValue)
Creates a new instance with the specified value.

Parameters:
checkValue - the initial value.
Method Detail

getState

public boolean getState()
Returns the value of the model.

Returns:
the value of the model.

setState

public void setState(boolean checkValue)
Sets the value of the model.

Parameters:
checkValue - The new value of the model.

isModelChanged

public boolean isModelChanged()
See if model has changed, in the process reset the changed flag.

Returns:
true if the model was changed.


Copyright © 2002-2004 JAFFA Project.