Class AbstractCheckBoxModel
- java.lang.Object
-
- org.apache.wicket.extensions.model.AbstractCheckBoxModel
-
- All Implemented Interfaces:
Serializable
,IDetachable
,IModel<Boolean>
,IClusterable
public abstract class AbstractCheckBoxModel extends Object implements IModel<Boolean>
Model adapter that makes working with models for checkboxes easier.- Author:
- Igor Vaynberg (ivaynberg)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractCheckBoxModel()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Boolean
getObject()
Gets the model object.abstract boolean
isSelected()
abstract void
select()
Called when checkbox has been selectedvoid
setObject(Boolean object)
Sets the model object.abstract void
unselect()
Called when checkbox is unselected
-
-
-
Constructor Detail
-
AbstractCheckBoxModel
public AbstractCheckBoxModel()
-
-
Method Detail
-
isSelected
public abstract boolean isSelected()
- Returns:
- true to indicate the checkbox should be selected, false otherwise
-
select
public abstract void select()
Called when checkbox has been selected
-
unselect
public abstract void unselect()
Called when checkbox is unselected
-
getObject
public final Boolean getObject()
Description copied from interface:IModel
Gets the model object.- Specified by:
getObject
in interfaceIModel<Boolean>
- Returns:
- The model object
- See Also:
IModel.getObject()
-
-