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

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.html5.renderkit.input.Html5BaseInputTextRenderer
          extended by org.apache.myfaces.html5.renderkit.input.HtmlInputNumberSliderRenderer
              extended by org.apache.myfaces.html5.renderkit.input.HtmlInputNumberSpinnerRenderer

@JSFRenderer(renderKitId="HTML_BASIC",
             family="javax.faces.Input",
             type="org.apache.myfaces.html5.NumberSpinner")
public class HtmlInputNumberSpinnerRenderer
extends HtmlInputNumberSliderRenderer

Renderer for hx:inputNumberSpinner.
Extends the renderer of hx:inputNumberSlider with readonly and required pass thru properties.

Author:
Ali Ok

Constructor Summary
HtmlInputNumberSpinnerRenderer()
           
 
Method Summary
protected  Class<? extends javax.faces.component.html.HtmlInputText> getComponentClass()
          Component class to check the type of rendered component.
protected  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 Html5BaseInputTextRenderer.renderInputBegin(FacesContext, UIComponent)
protected  String getInputHtmlType(Html5BaseInputText component)
          Returns the HTML type attribute of HTML input element, which is being rendered.
protected  void renderInputBegin(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
 
Methods inherited from class org.apache.myfaces.html5.renderkit.input.HtmlInputNumberSliderRenderer
getSuggestionRendererHelper
 
Methods inherited from class org.apache.myfaces.html5.renderkit.input.Html5BaseInputTextRenderer
encodeEnd, getRendersChildren, renderInput, renderInputEnd, renderPassThruAttrsAndEvents
 
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

HtmlInputNumberSpinnerRenderer

public HtmlInputNumberSpinnerRenderer()
Method Detail

renderInputBegin

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

getExtraPassThroughAttributes

protected Map<String,String> getExtraPassThroughAttributes()
Description copied from class: Html5BaseInputTextRenderer
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 Html5BaseInputTextRenderer.renderInputBegin(FacesContext, UIComponent)

Overrides:
getExtraPassThroughAttributes in class HtmlInputNumberSliderRenderer

getComponentClass

protected Class<? extends javax.faces.component.html.HtmlInputText> getComponentClass()
Description copied from class: Html5BaseInputTextRenderer
Component class to check the type of rendered component.

Overrides:
getComponentClass in class HtmlInputNumberSliderRenderer

getInputHtmlType

protected String getInputHtmlType(Html5BaseInputText component)
Description copied from class: Html5BaseInputTextRenderer
Returns the HTML type attribute of HTML input element, which is being rendered.

Overrides:
getInputHtmlType in class HtmlInputNumberSliderRenderer


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