org.apache.myfaces.custom.checkbox
Class AbstractHtmlCheckbox

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.apache.myfaces.custom.checkbox.AbstractHtmlCheckbox
All Implemented Interfaces:
javax.faces.component.StateHolder, UserRoleAware
Direct Known Subclasses:
HtmlCheckbox

public abstract class AbstractHtmlCheckbox
extends javax.faces.component.UIComponentBase
implements UserRoleAware

Renders a HTML input of type "checkbox". The associated SelectItem comes from an extended selectManyCheckbox component with layout "spread". The selectManyCheckbox is referenced by the "for" attribute. All HTML pass-through attributes for this input are taken from the associated selectManyCheckbox. Unless otherwise specified, all attributes accept static values or EL expressions.

Since:
1.1.7
Version:
$Revision: 691856 $ $Date: 2008-09-03 21:40:30 -0500 (Wed, 03 Sep 2008) $
Author:
Manfred Geiler (latest modification by $Author: lu4242 $)

Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
static java.lang.String FOR_ATTR
           
static java.lang.String INDEX_ATTR
           
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Fields inherited from interface org.apache.myfaces.component.UserRoleAware
ENABLED_ON_USER_ROLE_ATTR, VISIBLE_ON_USER_ROLE_ATTR
 
Constructor Summary
AbstractHtmlCheckbox()
           
 
Method Summary
abstract  java.lang.String getFor()
          id of the referenced extended selectManyCheckbox component
abstract  int getIndex()
          n-th SelectItem of referenced UISelectMany starting with 0.
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getFamily, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.myfaces.component.UserRoleAware
getEnabledOnUserRole, getVisibleOnUserRole, setEnabledOnUserRole, setVisibleOnUserRole
 

Field Detail

FOR_ATTR

public static final java.lang.String FOR_ATTR

INDEX_ATTR

public static final java.lang.String INDEX_ATTR

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values

COMPONENT_FAMILY

public static final java.lang.String COMPONENT_FAMILY
See Also:
Constant Field Values
Constructor Detail

AbstractHtmlCheckbox

public AbstractHtmlCheckbox()
Method Detail

getFor

public abstract java.lang.String getFor()
id of the referenced extended selectManyCheckbox component


getIndex

public abstract int getIndex()
n-th SelectItem of referenced UISelectMany starting with 0.



Copyright © 2011 The Apache Software Foundation. All Rights Reserved.