org.apache.myfaces.html5.renderkit.input.delegate
Class HtmlDataListSuggestionRendererHelper

java.lang.Object
  extended by org.apache.myfaces.html5.renderkit.input.delegate.HtmlTextInputSuggestionRendererHelper
      extended by org.apache.myfaces.html5.renderkit.input.delegate.HtmlDataListSuggestionRendererHelper
All Implemented Interfaces:
SuggestionRendererHelper

public class HtmlDataListSuggestionRendererHelper
extends HtmlTextInputSuggestionRendererHelper

Implementation of SuggestionRendererHelper for usage in HtmlDataLists.


Constructor Summary
HtmlDataListSuggestionRendererHelper()
           
 
Method Summary
 void checkSuggestions(javax.faces.component.UIComponent uiComponent)
          Check if suggestion conditions are OK.
 void renderDataList(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
          Renders the datalist.
protected  void renderDataListBegin(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
protected  void renderDataListOptions(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, javax.faces.convert.Converter converter)
           
protected  void renderOptionsOfChildren(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, javax.faces.convert.Converter converter)
           
protected  void renderOptionsOfSuggestionsAttr(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, javax.faces.convert.Converter converter)
           
 boolean shouldGenerateDatalist(javax.faces.component.UIComponent uiComponent)
          Returns true if a datalist should be generated for given component.
 
Methods inherited from class org.apache.myfaces.html5.renderkit.input.delegate.HtmlTextInputSuggestionRendererHelper
extractSelectItemsCollectionFromObject, getSelectItemsList, renderDataListEnd, renderOptionsFromSelectItemsCollection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlDataListSuggestionRendererHelper

public HtmlDataListSuggestionRendererHelper()
Method Detail

shouldGenerateDatalist

public boolean shouldGenerateDatalist(javax.faces.component.UIComponent uiComponent)
Description copied from interface: SuggestionRendererHelper
Returns true if a datalist should be generated for given component.

Specified by:
shouldGenerateDatalist in interface SuggestionRendererHelper
Overrides:
shouldGenerateDatalist in class HtmlTextInputSuggestionRendererHelper

checkSuggestions

public void checkSuggestions(javax.faces.component.UIComponent uiComponent)
Description copied from interface: SuggestionRendererHelper
Check if suggestion conditions are OK. For example, if 'datalist' is defined, then other suggestion options(with f:selectItem(s) children or 'suggestions' attribute) should not be used.

Specified by:
checkSuggestions in interface SuggestionRendererHelper
Overrides:
checkSuggestions in class HtmlTextInputSuggestionRendererHelper

renderDataList

public void renderDataList(javax.faces.context.FacesContext facesContext,
                           javax.faces.component.UIComponent component)
                    throws IOException
Description copied from interface: SuggestionRendererHelper
Renders the datalist.

Implementations of this method should not render any other markup.

Specified by:
renderDataList in interface SuggestionRendererHelper
Overrides:
renderDataList in class HtmlTextInputSuggestionRendererHelper
Throws:
IOException

renderDataListBegin

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

renderDataListOptions

protected void renderDataListOptions(javax.faces.context.FacesContext facesContext,
                                     javax.faces.component.UIComponent component,
                                     javax.faces.convert.Converter converter)
                              throws IOException
Overrides:
renderDataListOptions in class HtmlTextInputSuggestionRendererHelper
Throws:
IOException

renderOptionsOfSuggestionsAttr

protected void renderOptionsOfSuggestionsAttr(javax.faces.context.FacesContext facesContext,
                                              javax.faces.component.UIComponent uiComponent,
                                              javax.faces.convert.Converter converter)
                                       throws IOException
Overrides:
renderOptionsOfSuggestionsAttr in class HtmlTextInputSuggestionRendererHelper
Throws:
IOException

renderOptionsOfChildren

protected void renderOptionsOfChildren(javax.faces.context.FacesContext facesContext,
                                       javax.faces.component.UIComponent component,
                                       javax.faces.convert.Converter converter)
                                throws IOException
Overrides:
renderOptionsOfChildren in class HtmlTextInputSuggestionRendererHelper
Throws:
IOException


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