org.apache.myfaces.html5.renderkit.input
Class Html5BaseInputTextRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.html5.renderkit.input.Html5BaseInputTextRenderer
Direct Known Subclasses:
HtmlInputColorRenderer, HtmlInputDateTimeRenderer, HtmlInputEmailRenderer, HtmlInputNumberSliderRenderer, HtmlInputTextRendererDelegate

public abstract class Html5BaseInputTextRenderer
extends javax.faces.render.Renderer

An extensible base of the Html5 input renderers.

Author:
Ali Ok

Constructor Summary
Html5BaseInputTextRenderer()
           
 
Method Summary
 void encodeEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
protected abstract  Class<? extends javax.faces.component.html.HtmlInputText> getComponentClass()
          Component class to check the type of rendered component.
protected abstract  Map<String,String> getExtraPassThroughAttributes()
          Returns pass through attributes that are not present in HtmlInputText Child component classes can override this method to modify pass through attributes, which are rendered at renderInputBegin(FacesContext, UIComponent)
protected abstract  String getInputHtmlType(Html5BaseInputText component)
          Returns the HTML type attribute of HTML input element, which is being rendered.
 boolean getRendersChildren()
           
abstract  SuggestionRendererHelper getSuggestionRendererHelper(Html5BaseInputText component)
          Returns the SuggestionRendererHelper instance, to render suggestion related markup.
protected  void renderInput(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
protected  void renderInputBegin(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
protected  void renderInputEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
protected  void renderPassThruAttrsAndEvents(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, decode, encodeBegin, encodeChildren, getConvertedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Html5BaseInputTextRenderer

public Html5BaseInputTextRenderer()
Method Detail

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext facesContext,
                      javax.faces.component.UIComponent uiComponent)
               throws IOException
Overrides:
encodeEnd in class javax.faces.render.Renderer
Throws:
IOException

renderInput

protected void renderInput(javax.faces.context.FacesContext facesContext,
                           javax.faces.component.UIComponent component)
                    throws IOException
Throws:
IOException

renderInputBegin

protected void renderInputBegin(javax.faces.context.FacesContext facesContext,
                                javax.faces.component.UIComponent uiComponent)
                         throws IOException
Throws:
IOException

renderPassThruAttrsAndEvents

protected void renderPassThruAttrsAndEvents(javax.faces.context.FacesContext facesContext,
                                            javax.faces.component.UIComponent uiComponent)
                                     throws IOException
Throws:
IOException

renderInputEnd

protected void renderInputEnd(javax.faces.context.FacesContext facesContext,
                              javax.faces.component.UIComponent component)
                       throws IOException
Throws:
IOException

getInputHtmlType

protected abstract String getInputHtmlType(Html5BaseInputText component)
Returns the HTML type attribute of HTML input element, which is being rendered.


getExtraPassThroughAttributes

protected abstract Map<String,String> getExtraPassThroughAttributes()
Returns pass through attributes that are not present in HtmlInputText Child component classes can override this method to modify pass through attributes, which are rendered at renderInputBegin(FacesContext, UIComponent)


getComponentClass

protected abstract Class<? extends javax.faces.component.html.HtmlInputText> getComponentClass()
Component class to check the type of rendered component.


getSuggestionRendererHelper

public abstract SuggestionRendererHelper getSuggestionRendererHelper(Html5BaseInputText component)
Returns the SuggestionRendererHelper instance, to render suggestion related markup.


getRendersChildren

public boolean getRendersChildren()
Overrides:
getRendersChildren in class javax.faces.render.Renderer


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