ICEfaces 3.1.0
Java API Documentation

org.icefaces.ace.renderkit
Class InputRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.icefaces.ace.renderkit.CoreRenderer
          extended by org.icefaces.ace.renderkit.InputRenderer
Direct Known Subclasses:
AutoCompleteEntryRenderer, DateTimeEntryRenderer, MaskedEntryRenderer, RichTextEntryRenderer, TextAreaEntryRenderer, TextEntryRenderer

public class InputRenderer
extends CoreRenderer


Field Summary
static java.lang.String IN_FIELD_LABEL_STYLE_CLASS
           
static java.util.Set<java.lang.String> indicatorPositionSet
           
static java.lang.String LABEL_STYLE_CLASS
           
static java.util.Set<java.lang.String> labelPositionSet
           
 
Constructor Summary
InputRenderer()
           
 
Method Summary
protected  void encodeLabelAndInput(javax.faces.component.UIComponent component, java.util.Map<java.lang.String,java.lang.Object> labelAttributes)
           
 java.lang.Object getConvertedValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object submittedValue)
           
protected  javax.faces.convert.Converter getConverter(javax.faces.context.FacesContext context, javax.faces.component.UIInput component)
           
protected  java.util.Map<java.lang.String,java.lang.Object> getLabelAttributes(javax.faces.component.UIComponent component)
           
protected  java.lang.String getOptionAsString(javax.faces.context.FacesContext context, javax.faces.component.UIInput component, javax.faces.convert.Converter converter, java.lang.Object value)
           
protected  java.util.List<javax.faces.model.SelectItem> getSelectItems(javax.faces.context.FacesContext context, javax.faces.component.UIInput component)
           
protected  java.lang.String getStateStyleClasses(javax.faces.component.UIInput component)
           
protected  void writeInputField(javax.faces.component.UIComponent component, java.util.Map<java.lang.String,java.lang.Object> labelAttributes)
           
protected  void writeLabelAndIndicatorAfter(java.util.Map<java.lang.String,java.lang.Object> attributes)
           
protected  void writeLabelAndIndicatorAfter(javax.faces.context.ResponseWriter writer, java.lang.String label, boolean hasLabel, java.lang.String labelPosition, java.lang.String indicator, boolean hasIndicator, java.lang.String indicatorPosition, boolean required)
           
protected  void writeLabelAndIndicatorBefore(java.util.Map<java.lang.String,java.lang.Object> attributes)
           
protected  void writeLabelAndIndicatorBefore(javax.faces.context.ResponseWriter writer, java.lang.String label, boolean hasLabel, java.lang.String labelPosition, java.lang.String indicator, boolean hasIndicator, java.lang.String indicatorPosition, boolean required)
           
 
Methods inherited from class org.icefaces.ace.renderkit.CoreRenderer
addSubmitParam, addToAutoUpdate, decodeBehaviors, encodeClientBehaviors, encodeClientBehaviors, escapeText, getActionURL, getEscapedClientId, getResourceRequestPath, getResourceURL, isAjaxRequest, isPostBack, isPostback, isValueBlank, isValueEmpty, renderChild, renderChildren, renderPassThruAttributes, renderPassThruAttributes, renderPassThruAttributes, resolveWidgetVar, shouldRenderAttribute, themeForms
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, decode, encodeBegin, encodeChildren, encodeEnd, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LABEL_STYLE_CLASS

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

IN_FIELD_LABEL_STYLE_CLASS

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

labelPositionSet

public static final java.util.Set<java.lang.String> labelPositionSet

indicatorPositionSet

public static final java.util.Set<java.lang.String> indicatorPositionSet
Constructor Detail

InputRenderer

public InputRenderer()
Method Detail

getSelectItems

protected java.util.List<javax.faces.model.SelectItem> getSelectItems(javax.faces.context.FacesContext context,
                                                                      javax.faces.component.UIInput component)

getOptionAsString

protected java.lang.String getOptionAsString(javax.faces.context.FacesContext context,
                                             javax.faces.component.UIInput component,
                                             javax.faces.convert.Converter converter,
                                             java.lang.Object value)

getConverter

protected javax.faces.convert.Converter getConverter(javax.faces.context.FacesContext context,
                                                     javax.faces.component.UIInput component)

getConvertedValue

public java.lang.Object getConvertedValue(javax.faces.context.FacesContext context,
                                          javax.faces.component.UIComponent component,
                                          java.lang.Object submittedValue)
                                   throws javax.faces.convert.ConverterException
Overrides:
getConvertedValue in class javax.faces.render.Renderer
Throws:
javax.faces.convert.ConverterException

encodeLabelAndInput

protected void encodeLabelAndInput(javax.faces.component.UIComponent component,
                                   java.util.Map<java.lang.String,java.lang.Object> labelAttributes)
                            throws java.io.IOException
Throws:
java.io.IOException

writeInputField

protected void writeInputField(javax.faces.component.UIComponent component,
                               java.util.Map<java.lang.String,java.lang.Object> labelAttributes)
                        throws java.io.IOException
Throws:
java.io.IOException

writeLabelAndIndicatorBefore

protected void writeLabelAndIndicatorBefore(javax.faces.context.ResponseWriter writer,
                                            java.lang.String label,
                                            boolean hasLabel,
                                            java.lang.String labelPosition,
                                            java.lang.String indicator,
                                            boolean hasIndicator,
                                            java.lang.String indicatorPosition,
                                            boolean required)
                                     throws java.io.IOException
Throws:
java.io.IOException

writeLabelAndIndicatorAfter

protected void writeLabelAndIndicatorAfter(javax.faces.context.ResponseWriter writer,
                                           java.lang.String label,
                                           boolean hasLabel,
                                           java.lang.String labelPosition,
                                           java.lang.String indicator,
                                           boolean hasIndicator,
                                           java.lang.String indicatorPosition,
                                           boolean required)
                                    throws java.io.IOException
Throws:
java.io.IOException

getStateStyleClasses

protected java.lang.String getStateStyleClasses(javax.faces.component.UIInput component)

getLabelAttributes

protected java.util.Map<java.lang.String,java.lang.Object> getLabelAttributes(javax.faces.component.UIComponent component)

writeLabelAndIndicatorBefore

protected void writeLabelAndIndicatorBefore(java.util.Map<java.lang.String,java.lang.Object> attributes)
                                     throws java.io.IOException
Throws:
java.io.IOException

writeLabelAndIndicatorAfter

protected void writeLabelAndIndicatorAfter(java.util.Map<java.lang.String,java.lang.Object> attributes)
                                    throws java.io.IOException
Throws:
java.io.IOException

ICEfaces 3.1.0
Java API Documentation

Copyright 2012 ICEsoft Technologies Canada Corp., All Rights Reserved.