wicket.contrib.phonebook.web
Class CheckBoxModel
java.lang.Object
org.apache.wicket.extensions.model.AbstractCheckBoxModel
wicket.contrib.phonebook.web.CheckBoxModel
- All Implemented Interfaces:
- Serializable, IClusterable, IDetachable, IModel<Boolean>
public class CheckBoxModel
- extends AbstractCheckBoxModel
A model for checkboxes that represent a more-than-one-selection.
- Author:
- ivaynberg
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
isSelected
public boolean isSelected()
- Specified by:
isSelected in class AbstractCheckBoxModel
select
public void select()
- Specified by:
select in class AbstractCheckBoxModel
unselect
public void unselect()
- Specified by:
unselect in class AbstractCheckBoxModel
Copyright © 2005-2011 Wicket developers. All Rights Reserved.