wicket.contrib.phonebook.web
Class CheckBoxModel

java.lang.Object
  extended by org.apache.wicket.extensions.model.AbstractCheckBoxModel
      extended by wicket.contrib.phonebook.web.CheckBoxModel
All Implemented Interfaces:
Serializable, org.apache.wicket.IClusterable, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel<Boolean>

public class CheckBoxModel
extends org.apache.wicket.extensions.model.AbstractCheckBoxModel

A model for checkboxes that represent a more-than-one-selection.

Author:
ivaynberg
See Also:
Serialized Form

Constructor Summary
CheckBoxModel(org.apache.wicket.model.IModel<Collection<Serializable>> selection, Serializable token)
          Constructor
 
Method Summary
 boolean isSelected()
           
 void select()
           
 void unselect()
           
 
Methods inherited from class org.apache.wicket.extensions.model.AbstractCheckBoxModel
detach, getObject, getObject, isSelected, setObject, setObject, setSelected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckBoxModel

public CheckBoxModel(org.apache.wicket.model.IModel<Collection<Serializable>> selection,
                     Serializable token)
Constructor

Parameters:
selection - model that contains a collection of tokens which will represent selection state
token - token whose presense in the collection represents a selection state
Method Detail

isSelected

public boolean isSelected()
Specified by:
isSelected in class org.apache.wicket.extensions.model.AbstractCheckBoxModel

select

public void select()
Specified by:
select in class org.apache.wicket.extensions.model.AbstractCheckBoxModel

unselect

public void unselect()
Specified by:
unselect in class org.apache.wicket.extensions.model.AbstractCheckBoxModel


Copyright © 2005-2012 Wicket developers. All Rights Reserved.