Class Hierarchy All Classes All Fields and Methods

 

Class javax.faces.component.UISelectBoolean

java.lang.Object
        javax.faces.component.UIComponent
                javax.faces.component.UIComponentBase
                        javax.faces.component.UIOutput
                                javax.faces.component.UIInput
                                        javax.faces.component.UISelectBoolean

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 must be set to "javax.faces.Checkbox". This value can be changed by calling the setRendererType() method.

Field Index
Field Description
COMPONENT_FAMILY The standard component family for this component.
COMPONENT_TYPE The standard component type for this component.

Constructor Index
Constructor Description
UISelectBoolean() Create a new UISelectBoolean instance with default property values.

Method Index
Method Description
String getFamily()  
ValueBinding getValueBinding(String) Return any ValueBinding set for value if a ValueBinding for selected is requested; otherwise, perform the default superclass processing for this method.
boolean isSelected() Return the local value of the selected state of this component.
void setSelected(boolean) Set the local value of the selected state of this component.
void setValueBinding(String, ValueBinding) Store any ValueBinding specified for selected under value instead; otherwise, perform the default superclass processing for this method.

 

Fields

 

COMPONENT_FAMILY

public static final java.lang.String COMPONENT_FAMILY

The standard component family for this component.

 

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE

The standard component type for this component.

 

Constructors

 

UISelectBoolean

public UISelectBoolean() 

Create a new UISelectBoolean instance with default property values.

 

Methods

 

getFamily

public String getFamily() 

 

getValueBinding

public ValueBinding getValueBinding(String name) 

Return any ValueBinding set for value if a ValueBinding for selected is requested; otherwise, perform the default superclass processing for this method.

 

isSelected

public boolean isSelected() 

Return the local value of the selected state of this component. This method is a typesafe alias for getValue().

 

setSelected

public void setSelected(boolean selected) 

Set the local value of the selected state of this component. This method is a typesafe alias for setValue().

 

setValueBinding

public void setValueBinding(String name,
                            ValueBinding binding) 

Store any ValueBinding specified for selected under value instead; otherwise, perform the default superclass processing for this method.

Class Hierarchy All Classes All Fields and Methods