Class CheckBox

All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IGenericComponent<Boolean,FormComponent<Boolean>>, IMetadataContext<Serializable,Component>, IFormModelUpdateListener, IFormVisitorParticipant, ILabelProvider<String>, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable
Direct Known Subclasses:
AjaxCheckBox

public class CheckBox extends FormComponent<Boolean>
HTML checkbox input component.

Java:

 form.add(new CheckBox("bool"));
 
HTML:
  <input type="checkbox" wicket:id="bool" />
 

A CheckBox always has a valid therefore values from methods FormComponent.setRequired(boolean) and FormComponent.isRequired() are not taken into account.

Author:
Jonathan Locke
See Also: