org.apache.myfaces.shared.renderkit.html
Class HtmlCheckboxRendererBase
java.lang.Object
javax.faces.render.Renderer
org.apache.myfaces.shared.renderkit.html.HtmlRenderer
org.apache.myfaces.shared.renderkit.html.HtmlCheckboxRendererBase
public class HtmlCheckboxRendererBase
- extends HtmlRenderer
- Version:
- $Revision: 1393891 $ $Date: 2012-10-04 02:55:02 +0000 (Thu, 04 Oct 2012) $
- Author:
- Thomas Spiegl (latest modification by $Author: lu4242 $), Anton Koinov
Method Summary |
void |
decode(FacesContext facesContext,
UIComponent component)
|
void |
encodeEnd(FacesContext facesContext,
UIComponent uiComponent)
|
Object |
getConvertedValue(FacesContext facesContext,
UIComponent component,
Object submittedValue)
|
protected Converter |
getConverter(FacesContext facesContext,
UIComponent component)
Gets the converter for the given component rendered by this renderer. |
protected String |
getLayout(UISelectMany selectMany)
|
protected boolean |
isDisabled(FacesContext facesContext,
UIComponent component)
|
protected String |
renderCheckbox(FacesContext facesContext,
UIComponent uiComponent,
String value,
boolean disabled,
boolean checked,
boolean renderId,
Integer itemNum)
Renders the input item |
protected void |
renderCheckbox(FacesContext facesContext,
UIComponent uiComponent,
String value,
String label,
boolean disabled,
boolean checked,
boolean renderId)
Deprecated. |
void |
renderCheckboxList(FacesContext facesContext,
UISelectMany selectMany)
|
protected int |
renderGroupOrItemCheckbox(FacesContext facesContext,
UIComponent uiComponent,
SelectItem selectItem,
boolean useSubmittedValues,
Set lookupSet,
Converter converter,
boolean pageDirectionLayout,
Integer itemNum)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HtmlCheckboxRendererBase
public HtmlCheckboxRendererBase()
encodeEnd
public void encodeEnd(FacesContext facesContext,
UIComponent uiComponent)
throws IOException
- Overrides:
encodeEnd
in class Renderer
- Throws:
IOException
renderCheckboxList
public void renderCheckboxList(FacesContext facesContext,
UISelectMany selectMany)
throws IOException
- Throws:
IOException
getLayout
protected String getLayout(UISelectMany selectMany)
renderGroupOrItemCheckbox
protected int renderGroupOrItemCheckbox(FacesContext facesContext,
UIComponent uiComponent,
SelectItem selectItem,
boolean useSubmittedValues,
Set lookupSet,
Converter converter,
boolean pageDirectionLayout,
Integer itemNum)
throws IOException
- Parameters:
facesContext
- uiComponent
- selectItem
- useSubmittedValues
- lookupSet
- converter
- pageDirectionLayout
- itemNum
-
- Returns:
- the itemNum for the next option
- Throws:
IOException
renderCheckbox
@Deprecated
protected void renderCheckbox(FacesContext facesContext,
UIComponent uiComponent,
String value,
String label,
boolean disabled,
boolean checked,
boolean renderId)
throws IOException
- Deprecated.
- Throws:
IOException
renderCheckbox
protected String renderCheckbox(FacesContext facesContext,
UIComponent uiComponent,
String value,
boolean disabled,
boolean checked,
boolean renderId,
Integer itemNum)
throws IOException
- Renders the input item
- Returns:
- the 'id' value of the rendered element
- Throws:
IOException
isDisabled
protected boolean isDisabled(FacesContext facesContext,
UIComponent component)
decode
public void decode(FacesContext facesContext,
UIComponent component)
- Overrides:
decode
in class Renderer
getConvertedValue
public Object getConvertedValue(FacesContext facesContext,
UIComponent component,
Object submittedValue)
throws ConverterException
- Overrides:
getConvertedValue
in class Renderer
- Throws:
ConverterException
getConverter
protected Converter getConverter(FacesContext facesContext,
UIComponent component)
- Gets the converter for the given component rendered by this renderer.
- Parameters:
facesContext
- component
-
- Returns:
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.