javax.faces.component
Class UISelectBoolean

java.lang.Object
  extended byjavax.faces.component.UIComponentBase
      extended byjavax.faces.component.UIOutput
          extended byjavax.faces.component.UIInput
              extended byjavax.faces.component.UISelectBoolean
All Implemented Interfaces:
java.io.Serializable, UIComponent

public class UISelectBoolean
extends UIInput

UISelectBoolean is a UIComponent that represents a single boolean (true or false) value. It is most commonly rendered as a checkbox.

By default, the rendererType property is set to "Checkbox". This value can be changed by calling the setRendererType() method.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.faces.component.UIInput
listeners
 
Fields inherited from interface javax.faces.component.UIComponent
SEPARATOR_CHAR
 
Constructor Summary
UISelectBoolean()
          Create a new UISelectBoolean instance with default property values.
 
Method Summary
 boolean isSelected()
          Return the local value of the selected state of this component.
 void setSelected(boolean selected)
          Set the local value of the selected state of this component.
 
Methods inherited from class javax.faces.component.UIInput
addValueChangedListener, broadcast, broadcast, compareValues, fireValueChangedEvent, getPrevious, removeValueChangedListener, setPrevious, updateModel, validate
 
Methods inherited from class javax.faces.component.UIOutput
currentValue, getValue, getValueRef, setValue, setValueRef
 
Methods inherited from class javax.faces.component.UIComponentBase
addChild, addChild, addFacet, addValidator, clearChildren, clearFacets, clearValidators, containsChild, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttribute, getAttributeNames, getChild, getChildCount, getChildren, getClientId, getComponentId, getConverter, getFacet, getFacetNames, getFacetsAndChildren, getParent, getRendererType, getRendersChildren, getRendersSelf, getValidators, isRendered, isValid, processDecodes, processReconstitutes, processUpdates, processValidators, reconstitute, removeChild, removeChild, removeFacet, removeValidator, setAttribute, setComponentId, setConverter, setParent, setRendered, setRendererType, setValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UISelectBoolean

public UISelectBoolean()

Create a new UISelectBoolean instance with default property values.

Method Detail

isSelected

public boolean isSelected()

Return the local value of the selected state of this component.


setSelected

public void setSelected(boolean selected)

Set the local value of the selected state of this component.

Parameters:
selected - The new selected state