|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
javax.faces.component.UIInput
javax.faces.component.UISelectBoolean
@JSFComponent(defaultRendererType="javax.faces.Checkbox") public class UISelectBoolean
A component that allows the user to select or unselect an object.
This can also be used to choose between two states such as true/false or on/off.
See the javadoc for this class in the JSF Specification for further details.
Field Summary | |
---|---|
static java.lang.String |
COMPONENT_FAMILY
|
static java.lang.String |
COMPONENT_TYPE
|
Fields inherited from class javax.faces.component.UIInput |
---|
CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID, VALIDATE_EMPTY_FIELDS_PARAM_NAME |
Fields inherited from class javax.faces.component.UIComponent |
---|
BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, VIEW_LOCATION_KEY |
Constructor Summary | |
---|---|
UISelectBoolean()
|
Method Summary | |
---|---|
java.lang.String |
getFamily()
|
java.lang.Object |
getValue()
Return the current value of this component. |
ValueBinding |
getValueBinding(java.lang.String name)
Deprecated. Use getValueExpression instead |
javax.el.ValueExpression |
getValueExpression(java.lang.String name)
|
boolean |
isSelected()
|
void |
setSelected(boolean selected)
|
void |
setValueBinding(java.lang.String name,
ValueBinding binding)
Deprecated. Use setValueExpression instead |
void |
setValueExpression(java.lang.String name,
javax.el.ValueExpression binding)
|
Methods inherited from class javax.faces.component.UIOutput |
---|
getConverter, getLocalValue, setConverter |
Methods inherited from class javax.faces.component.UIComponent |
---|
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, setInView, subscribeToEvent, unsubscribeFromEvent, visitTree |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.faces.component.ValueHolder |
---|
getConverter, getLocalValue, setConverter |
Field Detail |
---|
public static final java.lang.String COMPONENT_TYPE
public static final java.lang.String COMPONENT_FAMILY
Constructor Detail |
---|
public UISelectBoolean()
Method Detail |
---|
public java.lang.String getFamily()
getFamily
in class UIInput
public void setSelected(boolean selected)
public boolean isSelected()
public ValueBinding getValueBinding(java.lang.String name)
UIComponentBase
Value-bindings are stored in a map associated with the component, though there is commonly a property (setter/getter methods) of the same name defined on the component itself which evaluates the value-binding when called.
getValueBinding
in class UIComponentBase
public void setValueBinding(java.lang.String name, ValueBinding binding)
UIComponentBase
setValueBinding
in class UIComponentBase
public javax.el.ValueExpression getValueExpression(java.lang.String name)
getValueExpression
in class UIComponent
public void setValueExpression(java.lang.String name, javax.el.ValueExpression binding)
setValueExpression
in class UIComponent
@JSFProperty(deferredValueType="java.lang.Boolean") public java.lang.Object getValue()
UIInput
If a submitted value has been converted but not yet pushed into the model, then return that locally-cached value (see isLocalValueSet).
Otherwise, evaluate an EL expression to fetch a value from the model.
getValue
in interface ValueHolder
getValue
in class UIInput
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |