Package wicket.contrib.phonebook.web
Class CheckBoxModel
- java.lang.Object
-
- org.apache.wicket.extensions.model.AbstractCheckBoxModel
-
- wicket.contrib.phonebook.web.CheckBoxModel
-
- All Implemented Interfaces:
Serializable,IDetachable,IModel<Boolean>,IClusterable
public class CheckBoxModel extends AbstractCheckBoxModel
A model for checkboxes that represent a more-than-one-selection.- Author:
- ivaynberg
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CheckBoxModel(IModel<Collection<Serializable>> selection, Serializable token)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSelected()voidselect()voidunselect()-
Methods inherited from class org.apache.wicket.extensions.model.AbstractCheckBoxModel
getObject, setObject
-
-
-
-
Constructor Detail
-
CheckBoxModel
public CheckBoxModel(IModel<Collection<Serializable>> selection, Serializable token)
Constructor- Parameters:
selection- model that contains a collection of tokens which will represent selection statetoken- token whose presense in the collection represents a selection state
-
-
Method Detail
-
isSelected
public boolean isSelected()
- Specified by:
isSelectedin classAbstractCheckBoxModel
-
select
public void select()
- Specified by:
selectin classAbstractCheckBoxModel
-
unselect
public void unselect()
- Specified by:
unselectin classAbstractCheckBoxModel
-
-