Class UISelectBooleanCheckbox
java.lang.Object
org.apache.myfaces.tobago.internal.component.AbstractUISelectBoolean
org.apache.myfaces.tobago.internal.component.AbstractUISelectBooleanCheckbox
org.apache.myfaces.tobago.component.UISelectBooleanCheckbox
- All Implemented Interfaces:
EventListener, SupportFieldId, SupportsAccessKey, SupportsAutoSpacing, SupportsDecorationPosition, SupportsHelp, SupportsLabelLayout, Visual
@Generated("component.stg")
public class UISelectBooleanCheckbox
extends AbstractUISelectBooleanCheckbox
Renders a checkbox.
UIComponent class, generated from template
component.stg with class
SelectBooleanCheckboxTagDeclaration.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final StringDeprecated.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClientBehavior(String arg0, jakarta.faces.component.behavior.ClientBehavior arg1) voidaddClientBehavior(String arg0, jakarta.faces.component.behavior.ClientBehavior arg1) protected voidaddFacesListener(jakarta.faces.event.FacesListener arg0) voidaddValidator(jakarta.faces.validator.Validator arg0) voidaddValueChangeListener(jakarta.faces.event.ValueChangeListener arg0) voidbroadcast(jakarta.faces.event.FacesEvent arg0) voidprotected booleancompareValues(Object arg0, Object arg1) voiddecode(jakarta.faces.context.FacesContext arg0) voidencodeAll(jakarta.faces.context.FacesContext arg0) voidencodeBegin(jakarta.faces.context.FacesContext arg0) voidencodeChildren(jakarta.faces.context.FacesContext arg0) voidencodeEnd(jakarta.faces.context.FacesContext arg0) jakarta.faces.component.UIComponentfindComponent(String arg0) The access key of this control.Automatically add spacing (margins/paddings) to the component for better positioning.intList<jakarta.faces.component.UIComponent> getClientId(jakarta.faces.context.FacesContext arg0) static jakarta.faces.component.UIComponentgetCompositeComponentParent(jakarta.faces.component.UIComponent arg0) getContainerClientId(jakarta.faces.context.FacesContext arg0) protected ObjectgetConvertedValue(jakarta.faces.context.FacesContext arg0, Object arg1) jakarta.faces.convert.Converterjakarta.faces.convert.Converterstatic jakarta.faces.component.UIComponentgetCurrentComponent(jakarta.faces.context.FacesContext arg0) static jakarta.faces.component.UIComponentgetCurrentCompositeComponent(jakarta.faces.context.FacesContext arg0) Sets a CSS class in its parent, if the parent supports it.protected jakarta.faces.context.FacesContextprotected jakarta.faces.event.FacesListener[]getFacesListeners(Class arg0) jakarta.faces.component.UIComponentintIterator<jakarta.faces.component.UIComponent> getHelp()Text value to display as a help.Defines the position and the appearance of a help message on a component.getId()Image to be displayed to the user for this option.Label to be displayed to the user for this option.getLabel()A localized user presentable label for this component.Defines the position of the label relative to the field.List<jakarta.faces.event.SystemEventListener> getListenersForEventClass(Class<? extends jakarta.faces.event.SystemEvent> arg0) Defines the position and the appearance of additional faces messages (like error message or help message) on a component.jakarta.faces.component.UIComponentjakarta.faces.component.UIComponentgetPassThroughAttributes(boolean arg0) protected jakarta.faces.render.RenderergetRenderer(jakarta.faces.context.FacesContext arg0) booleanprotected jakarta.faces.component.StateHelperprotected jakarta.faces.component.StateHelpergetStateHelper(boolean arg0) Controls the navigation of the focus through the input controls on a page with the Tab-Key.getTip()Text value to display as tooltip.jakarta.faces.component.TransientStateHelperjakarta.faces.component.TransientStateHelpergetTransientStateHelper(boolean arg0) jakarta.faces.validator.Validator[]getValue()jakarta.faces.event.ValueChangeListener[]jakarta.el.ValueExpressiongetValueExpression(String arg0) booleanbooleaninvokeOnComponent(jakarta.faces.context.FacesContext arg0, String arg1, jakarta.faces.component.ContextCallback arg2) static booleanisCompositeComponent(jakarta.faces.component.UIComponent arg0) booleanFlag indicating that this element is disabled.static booleanbooleanisFocus()Flag indicating this component should receive the focus.booleanbooleanisInView()booleanbooleanFlag indicating that this component will prohibit changes by the user.booleanbooleanbooleanbooleanisValid()protected booleanisVisitable(jakarta.faces.component.visit.VisitContext arg0) voidvoidpopComponentFromEL(jakarta.faces.context.FacesContext arg0) voidprocessDecodes(jakarta.faces.context.FacesContext arg0) voidprocessEvent(jakarta.faces.event.ComponentSystemEvent arg0) voidprocessRestoreState(jakarta.faces.context.FacesContext arg0, Object arg1) processSaveState(jakarta.faces.context.FacesContext arg0) voidprocessUpdates(jakarta.faces.context.FacesContext arg0) voidprocessValidators(jakarta.faces.context.FacesContext arg0) voidpushComponentToEL(jakarta.faces.context.FacesContext arg0, jakarta.faces.component.UIComponent arg1) voidqueueEvent(jakarta.faces.event.FacesEvent arg0) protected voidremoveFacesListener(jakarta.faces.event.FacesListener arg0) voidremoveValidator(jakarta.faces.validator.Validator arg0) voidremoveValueChangeListener(jakarta.faces.event.ValueChangeListener arg0) voidstatic ObjectrestoreAttachedState(jakarta.faces.context.FacesContext arg0, Object arg1) voidrestoreState(jakarta.faces.context.FacesContext context, Object state) voidrestoreTransientState(jakarta.faces.context.FacesContext arg0, Object arg1) static ObjectsaveAttachedState(jakarta.faces.context.FacesContext arg0, Object arg1) saveState(jakarta.faces.context.FacesContext arg0) saveTransientState(jakarta.faces.context.FacesContext arg0) voidsetAccessKey(Character accessKey) voidsetAutoSpacing(Boolean autoSpacing) voidsetConverter(jakarta.faces.convert.Converter arg0) voidsetConverter(jakarta.faces.convert.Converter arg0) voidsetConverterMessage(String arg0) voidsetCustomClass(CustomClass customClass) voidsetDisabled(boolean disabled) voidsetFocus(boolean focus) voidvoidsetHelpPosition(DecorationPosition helpPosition) voidvoidsetImmediate(boolean arg0) voidsetInView(boolean arg0) voidsetItemImage(String itemImage) voidsetItemLabel(String itemLabel) voidvoidsetLabelLayout(LabelLayout labelLayout) voidsetLocalValueSet(boolean arg0) voidvoidsetMessagePosition(DecorationPosition messagePosition) voidsetParent(jakarta.faces.component.UIComponent arg0) voidsetReadonly(boolean readonly) voidsetRendered(boolean arg0) voidsetRendererType(String arg0) voidsetRequired(boolean arg0) voidsetRequiredMessage(String arg0) voidsetSelected(boolean arg0) voidsetSubmittedValue(Object arg0) voidsetTabIndex(Integer tabIndex) voidvoidsetTransient(boolean arg0) voidsetValid(boolean arg0) voidsetValidatorMessage(String arg0) voidvoidsetValueExpression(String arg0, jakarta.el.ValueExpression arg1) voidsubscribeToEvent(Class<? extends jakarta.faces.event.SystemEvent> arg0, jakarta.faces.event.ComponentSystemEventListener arg1) voidunsubscribeFromEvent(Class<? extends jakarta.faces.event.SystemEvent> arg0, jakarta.faces.event.ComponentSystemEventListener arg1) voidupdateModel(jakarta.faces.context.FacesContext arg0) voidvalidate(jakarta.faces.context.FacesContext arg0) booleanvisitTree(jakarta.faces.component.visit.VisitContext arg0, jakarta.faces.component.visit.VisitCallback arg1) Methods inherited from class AbstractUISelectBoolean
getFieldId, isError, isLabelLayoutSkip, isNextToRenderIsLabel, isSelected, setNextToRenderIsLabel, validateValueMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SupportsAutoSpacing
getAutoSpacingMethods inherited from interface Visual
getRendererType, isPlain
-
Field Details
-
COMPONENT_TYPE
-
COMPONENT_FAMILY
- See Also:
-
CONVERSION_MESSAGE_ID
- See Also:
-
REQUIRED_MESSAGE_ID
- See Also:
-
UPDATE_MESSAGE_ID
- See Also:
-
VALIDATE_EMPTY_FIELDS_PARAM_NAME
- See Also:
-
EMPTY_STRING_AS_NULL_PARAM_NAME
- See Also:
-
ALWAYS_PERFORM_VALIDATION_WHEN_REQUIRED_IS_TRUE
- See Also:
-
BEANINFO_KEY
- See Also:
-
COMPOSITE_COMPONENT_TYPE_KEY
- See Also:
-
COMPOSITE_FACET_NAME
- See Also:
-
FACETS_KEY
- See Also:
-
VIEW_LOCATION_KEY
- See Also:
-
ATTRS_WITH_DECLARED_DEFAULT_VALUES
- See Also:
-
bindings
Deprecated.
-
-
Constructor Details
-
UISelectBooleanCheckbox
public UISelectBooleanCheckbox()
-
-
Method Details
-
getEventNames
-
getDefaultEventName
-
getFamily
-
getMarkup
-
setMarkup
-
getLabelLayout
Defines the position of the label relative to the field. The default is flexLeft, if the label is set, or none, if the label isn't set. Set to 'skip' to avoid surrounding label container. Hint for tc:out: set also compact=true to render only text (without html tags). -
setLabelLayout
-
getMessagePosition
Defines the position and the appearance of additional faces messages (like error message or help message) on a component. The default is popoverRight. -
setMessagePosition
-
isFocus
public boolean isFocus()Flag indicating this component should receive the focus.
Default:false- Specified by:
isFocusin classAbstractUISelectBoolean
-
setFocus
public void setFocus(boolean focus) -
getTabIndex
Controls the navigation of the focus through the input controls on a page with the Tab-Key. The navigation starts from the element with the lowest tabIndex value to the element with the highest value. Elements that have identical tabIndex values should be navigated in the order they appear in the character stream Elements that are disabled or with a negative tabIndex do not participate in the tabbing order.- Specified by:
getTabIndexin classAbstractUISelectBoolean
-
setTabIndex
-
getLabel
A localized user presentable label for this component.- Specified by:
getLabelin interfaceSupportsAccessKey- Specified by:
getLabelin classAbstractUISelectBoolean
-
setLabel
-
getItemLabel
Label to be displayed to the user for this option.- Specified by:
getItemLabelin classAbstractUISelectBoolean
-
setItemLabel
- Specified by:
setItemLabelin classAbstractUISelectBoolean
-
getItemImage
Image to be displayed to the user for this option.- Specified by:
getItemImagein classAbstractUISelectBoolean
-
setItemImage
-
getHelp
Text value to display as a help. -
setHelp
-
getAutoSpacing
Automatically add spacing (margins/paddings) to the component for better positioning. Default is 'true' except the component is inside a: - header - footer - bar - sheet - tree - link group - button group - before facet - after facet - label facet - bar facet -
setAutoSpacing
-
isReadonly
public boolean isReadonly()Flag indicating that this component will prohibit changes by the user.
Default:false- Specified by:
isReadonlyin classAbstractUISelectBoolean
-
setReadonly
public void setReadonly(boolean readonly) -
getHelpPosition
Defines the position and the appearance of a help message on a component. The default is popoverRight. -
setHelpPosition
-
getAccessKey
The access key of this control. -
setAccessKey
-
getCustomClass
Sets a CSS class in its parent, if the parent supports it. Which this feature it is possible to put a CSS class name into a component with the <tc:style> tag. Example:<tc:in> <tc:style customClass="my-emphasized"/> </tc:in>
One capability is, to used external CSS libs.
This feature should not be used imprudent. Because it might be unstable against changes in the renderered HTML code. -
setCustomClass
-
isDisabled
public boolean isDisabled()Flag indicating that this element is disabled.
Default:false- Specified by:
isDisabledin classAbstractUISelectBoolean
-
setDisabled
public void setDisabled(boolean disabled) -
getTip
Text value to display as tooltip. -
setTip
-
restoreState
-
addClientBehavior
-
getClientBehaviors
-
setSelected
public void setSelected(boolean arg0) -
getValueExpression
-
setValueExpression
-
getValue
-
setValue
-
processDecodes
public void processDecodes(jakarta.faces.context.FacesContext arg0) -
processValidators
public void processValidators(jakarta.faces.context.FacesContext arg0) -
processUpdates
public void processUpdates(jakarta.faces.context.FacesContext arg0) -
decode
public void decode(jakarta.faces.context.FacesContext arg0) -
broadcast
public void broadcast(jakarta.faces.event.FacesEvent arg0) throws jakarta.faces.event.AbortProcessingException - Throws:
jakarta.faces.event.AbortProcessingException
-
updateModel
public void updateModel(jakarta.faces.context.FacesContext arg0) -
validate
public void validate(jakarta.faces.context.FacesContext arg0) -
getConvertedValue
-
compareValues
-
resetValue
public void resetValue() -
isImmediate
public boolean isImmediate() -
setImmediate
public void setImmediate(boolean arg0) -
isRequired
public boolean isRequired() -
setRequired
public void setRequired(boolean arg0) -
getConverterMessage
-
setConverterMessage
-
getRequiredMessage
-
setRequiredMessage
-
addValidator
public void addValidator(jakarta.faces.validator.Validator arg0) -
removeValidator
public void removeValidator(jakarta.faces.validator.Validator arg0) -
getValidators
public jakarta.faces.validator.Validator[] getValidators() -
getValidatorMessage
-
setValidatorMessage
-
isValid
public boolean isValid() -
setValid
public void setValid(boolean arg0) -
isLocalValueSet
public boolean isLocalValueSet() -
setLocalValueSet
public void setLocalValueSet(boolean arg0) -
getSubmittedValue
-
setSubmittedValue
-
addValueChangeListener
public void addValueChangeListener(jakarta.faces.event.ValueChangeListener arg0) -
removeValueChangeListener
public void removeValueChangeListener(jakarta.faces.event.ValueChangeListener arg0) -
getValueChangeListeners
public jakarta.faces.event.ValueChangeListener[] getValueChangeListeners() -
markInitialState
public void markInitialState() -
clearInitialState
public void clearInitialState() -
saveState
-
isEmpty
-
getLocalValue
Object getLocalValue() -
getConverter
jakarta.faces.convert.Converter getConverter() -
setConverter
void setConverter(jakarta.faces.convert.Converter arg0) -
getLocalValue
-
getConverter
public jakarta.faces.convert.Converter getConverter() -
setConverter
public void setConverter(jakarta.faces.convert.Converter arg0) -
setId
-
setParent
public void setParent(jakarta.faces.component.UIComponent arg0) -
addClientBehavior
-
encodeAll
- Throws:
IOException
-
encodeBegin
- Throws:
IOException
-
encodeChildren
- Throws:
IOException
-
encodeEnd
- Throws:
IOException
-
findComponent
-
getAttributes
-
getPassThroughAttributes
-
getChildCount
public int getChildCount() -
getChildren
-
getClientBehaviors
-
getClientId
-
getFacet
-
getFacetCount
public int getFacetCount() -
getFacets
-
getFacetsAndChildren
-
getId
-
getParent
public jakarta.faces.component.UIComponent getParent() -
getRendererType
-
getRendersChildren
public boolean getRendersChildren() -
invokeOnComponent
public boolean invokeOnComponent(jakarta.faces.context.FacesContext arg0, String arg1, jakarta.faces.component.ContextCallback arg2) throws jakarta.faces.FacesException - Throws:
jakarta.faces.FacesException
-
visitTree
public boolean visitTree(jakarta.faces.component.visit.VisitContext arg0, jakarta.faces.component.visit.VisitCallback arg1) -
isRendered
public boolean isRendered() -
isTransient
public boolean isTransient() -
addFacesListener
protected void addFacesListener(jakarta.faces.event.FacesListener arg0) -
getFacesContext
protected jakarta.faces.context.FacesContext getFacesContext() -
getFacesListeners
-
getRenderer
protected jakarta.faces.render.Renderer getRenderer(jakarta.faces.context.FacesContext arg0) -
removeFacesListener
protected void removeFacesListener(jakarta.faces.event.FacesListener arg0) -
queueEvent
public void queueEvent(jakarta.faces.event.FacesEvent arg0) -
processSaveState
-
processRestoreState
-
setTransient
public void setTransient(boolean arg0) -
saveAttachedState
-
restoreAttachedState
public static Object restoreAttachedState(jakarta.faces.context.FacesContext arg0, Object arg1) throws IllegalStateException - Throws:
IllegalStateException
-
setRendered
public void setRendered(boolean arg0) -
setRendererType
-
getPassThroughAttributes
-
initialStateMarked
public boolean initialStateMarked() -
isCompositeComponent
public static boolean isCompositeComponent(jakarta.faces.component.UIComponent arg0) -
isInView
public boolean isInView() -
isVisitable
protected boolean isVisitable(jakarta.faces.component.visit.VisitContext arg0) -
getClientId
-
getCompositeComponentParent
public static jakarta.faces.component.UIComponent getCompositeComponentParent(jakarta.faces.component.UIComponent arg0) -
getContainerClientId
-
getCurrentComponent
public static jakarta.faces.component.UIComponent getCurrentComponent(jakarta.faces.context.FacesContext arg0) -
getCurrentCompositeComponent
public static jakarta.faces.component.UIComponent getCurrentCompositeComponent(jakarta.faces.context.FacesContext arg0) -
getListenersForEventClass
-
getNamingContainer
public jakarta.faces.component.UIComponent getNamingContainer() -
setInView
public void setInView(boolean arg0) -
getResourceBundleMap
-
processEvent
public void processEvent(jakarta.faces.event.ComponentSystemEvent arg0) throws jakarta.faces.event.AbortProcessingException - Throws:
jakarta.faces.event.AbortProcessingException
-
subscribeToEvent
public void subscribeToEvent(Class<? extends jakarta.faces.event.SystemEvent> arg0, jakarta.faces.event.ComponentSystemEventListener arg1) -
unsubscribeFromEvent
public void unsubscribeFromEvent(Class<? extends jakarta.faces.event.SystemEvent> arg0, jakarta.faces.event.ComponentSystemEventListener arg1) -
getStateHelper
protected jakarta.faces.component.StateHelper getStateHelper() -
getStateHelper
protected jakarta.faces.component.StateHelper getStateHelper(boolean arg0) -
getTransientStateHelper
public jakarta.faces.component.TransientStateHelper getTransientStateHelper() -
getTransientStateHelper
public jakarta.faces.component.TransientStateHelper getTransientStateHelper(boolean arg0) -
restoreTransientState
-
saveTransientState
-
popComponentFromEL
public void popComponentFromEL(jakarta.faces.context.FacesContext arg0) -
pushComponentToEL
public void pushComponentToEL(jakarta.faces.context.FacesContext arg0, jakarta.faces.component.UIComponent arg1)
-