org.apache.myfaces.trinidadinternal.renderkit.core.xhtml
Class SimpleInputListOfValuesRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.trinidad.render.CoreRenderer
          extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
              extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.ValueRenderer
                  extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.EditableValueRenderer
                      extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormElementRenderer
                          extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormInputRenderer
                              extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleInputTextRenderer
                                  extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleInputListOfValuesRenderer
All Implemented Interfaces:
java.lang.Cloneable, org.apache.myfaces.trinidad.render.TypedRenderer
Direct Known Subclasses:
SimpleInputColorRenderer, SimpleInputDateRenderer, SimpleInputNumberSpinboxRenderer

public class SimpleInputListOfValuesRenderer
extends SimpleInputTextRenderer


Field Summary
 
Fields inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
TRANSPARENT_GIF
 
Fields inherited from class org.apache.myfaces.trinidad.render.CoreRenderer
CHAR_UNDEFINED, NO_CHILD_INDEX
 
Constructor Summary
SimpleInputListOfValuesRenderer()
           
SimpleInputListOfValuesRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
           
 
Method Summary
protected  void decode(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean facesBean, java.lang.String clientId)
           
protected  void encodeAllAsElement(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext rc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  void encodeAllAsNonElement(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext rc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  void findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
           
protected  java.lang.Object getActionExpression(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getButtonIconName()
           
protected  java.lang.String getButtonOnclick(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getContentStyleClass(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getIcon(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getLaunchOnclick(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext rc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
          Must be called before starting an element!!!
protected  java.lang.String getOnclick(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
          We want onclick to move from the input field to the button;
protected  java.lang.String getRootStyleClass(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getSearchDesc(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  boolean getSecret(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  boolean isSimpleInputText(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
 boolean isTextArea(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  void queueActionEvent(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
protected  void queueReturnEvent(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.event.ReturnEvent event)
          Give subclasses a chance to override the ReturnEvent.
protected  void renderAfterTextField(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext rc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  void renderIcon(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext rc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  void renderTextField(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext rc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  boolean shouldRenderInputOnclick()
           
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleInputTextRenderer
getAutoComplete, getColumns, getDefaultColumns, getDefaultInputType, getDefaultRows, getMaximumLength, getOnchange, getOnfocus, getOnkeydown, getOnkeyup, getOnpaste, getOnselect, getRows, getSubmittedValue, getWrap, renderAllAttributes, renderContent, renderEventHandlers, renderNonElementContent, renderReadOnlyAsElement
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormInputRenderer
getShowRequired, getSimple, renderDisabledAttribute, renderId, renderRootDomElementStyles, shouldRenderName
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormElementRenderer
detectAutoSubmit, encodeAll, getContentStyle, getDefaultStyleClass, getHiddenLabel, getLabel, getOnblur, getRendersChildren, isAutoSubmit, isHiddenLabelRequired, renderAsElement, renderFormEventHandlers, renderShortDescAsHiddenLabel
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.EditableValueRenderer
addOnSubmitConverterValidators, getConvertedString, getConvertedValue, getDisabled, getReadOnly, getRequired, getRequiredMessageKey, getSubmittedValue, getValidators, isImmediate, shouldRenderId, wasSubmitted
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.ValueRenderer
getConverter, getDefaultConverter, getValue, getValueExpression
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
canSkipRendering, canSkipRendering, cloneWithType, getAbsoluteImageUri, getBaseImageUri, getInlineStyle, getOndblclick, getOnkeypress, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getPartialTriggers, getShortDesc, getStyleClass, renderAllAttributes, renderDecorativeIcon, renderDecorativeIcon, renderFormattedText, renderHAlign, renderInlineStyle, renderInlineStyleAttribute, renderPossiblyFormattedText, renderScriptDeferAttribute, renderScriptTypeAttribute, renderShortDescAttribute, renderSpacer, renderStyleAttributes, renderStyleAttributes, renderSubmitButtonNonJSBrowser, renderTransparent, renderVerticalSpacer, resolveProperty, resolveProperty, skipDecode, supportsAccessKeys, supportsAdvancedForms, supportsAutoCompleteFormElements, supportsDisabledFormElements, supportsEditing, supportsIntrinsicEvents, supportsNarrowScreen, supportsNavigation, supportsOnClickOnImgInput, supportsReadonlyFormElements, supportsScripting, supportsSeparateWindow, supportsStyleAttributes, supportsTarget, supportsTextPresentation
 
Methods inherited from class org.apache.myfaces.trinidad.render.CoreRenderer
afterEncode, beforeEncode, decode, decodeBehaviors, delegateRenderer, delegateRendererBegin, delegateRendererEnd, encodeAllChildren, encodeBegin, encodeBegin, encodeChild, encodeChildren, encodeComponentResources, encodeEnd, encodeEnd, getBehaviorParameters, getClientId, getFacesBean, getFacet, getNextRenderedChildIndex, getRenderedChildCount, getRenderedFacetsAndChildren, getRenderingProperty, hasRenderedChildren, isDesktop, isGecko, isGenericPDA, isIE, isInaccessibleMode, isIPhone, isKonqueror, isNokiaS60, isOpera, isPDA, isScreenReaderMode, isWebKit, partialEncodeVisit, renderEncodedActionURI, renderEncodedResourceURI, renderStyleClass, renderStyleClasses, setRenderingProperty, setupChildrenEncodingContext, setupEncodingContext, setupEncodingContext, tearDownChildrenEncodingContext, tearDownEncodingContext, tearDownEncodingContext, toActionUri, toChar, toInt, toLong, toResourceUri, toString, toUri, visitChildrenForEncoding
 
Methods inherited from class javax.faces.render.Renderer
convertClientId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleInputListOfValuesRenderer

public SimpleInputListOfValuesRenderer()

SimpleInputListOfValuesRenderer

public SimpleInputListOfValuesRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
Method Detail

findTypeConstants

protected void findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
Overrides:
findTypeConstants in class SimpleInputTextRenderer

decode

protected void decode(javax.faces.context.FacesContext facesContext,
                      javax.faces.component.UIComponent component,
                      org.apache.myfaces.trinidad.bean.FacesBean facesBean,
                      java.lang.String clientId)
Overrides:
decode in class EditableValueRenderer

queueReturnEvent

protected void queueReturnEvent(javax.faces.context.FacesContext context,
                                javax.faces.component.UIComponent component,
                                org.apache.myfaces.trinidad.event.ReturnEvent event)
Give subclasses a chance to override the ReturnEvent.


queueActionEvent

protected void queueActionEvent(javax.faces.context.FacesContext context,
                                javax.faces.component.UIComponent component)

encodeAllAsElement

protected void encodeAllAsElement(javax.faces.context.FacesContext context,
                                  org.apache.myfaces.trinidad.context.RenderingContext rc,
                                  javax.faces.component.UIComponent component,
                                  org.apache.myfaces.trinidad.bean.FacesBean bean)
                           throws java.io.IOException
Overrides:
encodeAllAsElement in class SimpleInputTextRenderer
Throws:
java.io.IOException

encodeAllAsNonElement

protected void encodeAllAsNonElement(javax.faces.context.FacesContext context,
                                     org.apache.myfaces.trinidad.context.RenderingContext rc,
                                     javax.faces.component.UIComponent component,
                                     org.apache.myfaces.trinidad.bean.FacesBean bean)
                              throws java.io.IOException
Overrides:
encodeAllAsNonElement in class SimpleInputTextRenderer
Throws:
java.io.IOException

isSimpleInputText

protected boolean isSimpleInputText(javax.faces.component.UIComponent component,
                                    org.apache.myfaces.trinidad.bean.FacesBean bean)
Overrides:
isSimpleInputText in class SimpleInputTextRenderer

renderTextField

protected void renderTextField(javax.faces.context.FacesContext context,
                               org.apache.myfaces.trinidad.context.RenderingContext rc,
                               javax.faces.component.UIComponent component,
                               org.apache.myfaces.trinidad.bean.FacesBean bean)
                        throws java.io.IOException
Throws:
java.io.IOException

renderAfterTextField

protected void renderAfterTextField(javax.faces.context.FacesContext context,
                                    org.apache.myfaces.trinidad.context.RenderingContext rc,
                                    javax.faces.component.UIComponent component,
                                    org.apache.myfaces.trinidad.bean.FacesBean bean)
                             throws java.io.IOException
Throws:
java.io.IOException

renderIcon

protected void renderIcon(javax.faces.context.FacesContext context,
                          org.apache.myfaces.trinidad.context.RenderingContext rc,
                          javax.faces.component.UIComponent component,
                          org.apache.myfaces.trinidad.bean.FacesBean bean)
                   throws java.io.IOException
Throws:
java.io.IOException

getButtonIconName

protected java.lang.String getButtonIconName()

getButtonOnclick

protected java.lang.String getButtonOnclick(javax.faces.component.UIComponent component,
                                            org.apache.myfaces.trinidad.bean.FacesBean bean)

getLaunchOnclick

protected java.lang.String getLaunchOnclick(javax.faces.context.FacesContext context,
                                            org.apache.myfaces.trinidad.context.RenderingContext rc,
                                            javax.faces.component.UIComponent component,
                                            org.apache.myfaces.trinidad.bean.FacesBean bean)
                                     throws java.io.IOException
Must be called before starting an element!!!

Throws:
java.io.IOException

isTextArea

public boolean isTextArea(javax.faces.component.UIComponent component,
                          org.apache.myfaces.trinidad.bean.FacesBean bean)
Overrides:
isTextArea in class SimpleInputTextRenderer

getSecret

protected boolean getSecret(javax.faces.component.UIComponent component,
                            org.apache.myfaces.trinidad.bean.FacesBean bean)
Overrides:
getSecret in class SimpleInputTextRenderer

getOnclick

protected java.lang.String getOnclick(javax.faces.component.UIComponent component,
                                      org.apache.myfaces.trinidad.bean.FacesBean bean)
We want onclick to move from the input field to the button;

Overrides:
getOnclick in class XhtmlRenderer
See Also:
getButtonOnclick(javax.faces.component.UIComponent, org.apache.myfaces.trinidad.bean.FacesBean)

shouldRenderInputOnclick

protected boolean shouldRenderInputOnclick()

getActionExpression

protected java.lang.Object getActionExpression(javax.faces.component.UIComponent component,
                                               org.apache.myfaces.trinidad.bean.FacesBean bean)

getSearchDesc

protected java.lang.String getSearchDesc(javax.faces.component.UIComponent component,
                                         org.apache.myfaces.trinidad.bean.FacesBean bean)

getIcon

protected java.lang.String getIcon(javax.faces.component.UIComponent component,
                                   org.apache.myfaces.trinidad.bean.FacesBean bean)

getRootStyleClass

protected java.lang.String getRootStyleClass(javax.faces.component.UIComponent component,
                                             org.apache.myfaces.trinidad.bean.FacesBean bean)
Overrides:
getRootStyleClass in class SimpleInputTextRenderer

getContentStyleClass

protected java.lang.String getContentStyleClass(javax.faces.component.UIComponent component,
                                                org.apache.myfaces.trinidad.bean.FacesBean bean)
Overrides:
getContentStyleClass in class FormInputRenderer


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