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
 void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
protected  void encodeAllAsElement(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, 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 arc, 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 getAction(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getButtonIconName()
           
protected  java.lang.String getButtonOnclick(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getContentStyleClass(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getIcon(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getLaunchOnclick(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
          Must be called before starting an element!!!
protected  java.lang.String getOnclick(org.apache.myfaces.trinidad.bean.FacesBean bean)
          We want onclick to move from the input field to the button;
protected  java.lang.String getRootStyleClass(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getSearchDesc(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  boolean getSecret(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  boolean isSimpleInputText(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
 boolean isTextArea(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 arc, 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 arc, 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 arc, 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
getColumns, getColumnsAdjustedForAgent, getDefaultColumns, getDefaultInputType, getDefaultRows, getMaximumLength, getNoAutoComplete, getOnchange, getOnfocus, getOnkeydown, getOnkeypress, 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
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, getValueBinding
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
cloneWithType, enableScriptDeferring, getAbsoluteImageUri, getBaseImageUri, getInlineStyle, getOndblclick, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getShortDesc, getStyleClass, renderAllAttributes, renderDecorativeIcon, renderDecorativeIcon, renderFormattedText, renderHAlign, renderInlineStyle, renderInlineStyleAttribute, renderPossiblyFormattedText, renderScriptDeferAttribute, renderScriptTypeAttribute, renderShortDescAttribute, renderSpacer, renderStyleAttributes, renderStyleAttributes, renderTransparent, renderVerticalSpacer, skipDecode, supportsAccessKeys, supportsAdvancedForms, supportsAutoCompleteFormElements, supportsDisabledFormElements, supportsEditing, supportsIntrinsicEvents, supportsNavigation, supportsReadonlyFormElements, supportsScripting, supportsSeparateWindow, supportsStyleAttributes, supportsTarget, supportsTextPresentation, supportsXMLDOM
 
Methods inherited from class org.apache.myfaces.trinidad.render.CoreRenderer
delegateRenderer, delegateRendererBegin, delegateRendererEnd, encodeAllChildren, encodeBegin, encodeBegin, encodeChild, encodeChildren, encodeEnd, encodeEnd, getClientId, getFacesBean, getFacet, getNextRenderedChildIndex, getRenderedChildCount, getRenderingProperty, hasRenderedChildren, isDesktop, isGecko, isIE, isInaccessibleMode, isPDA, isScreenReaderMode, renderEncodedActionURI, renderEncodedResourceURI, renderStyleClass, renderStyleClasses, setRenderingProperty, toChar, toInt, toLong, toString, toUri
 
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

public void decode(javax.faces.context.FacesContext context,
                   javax.faces.component.UIComponent component)
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 arc,
                                  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 arc,
                                     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(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 arc,
                               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 arc,
                                    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 arc,
                          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(org.apache.myfaces.trinidad.bean.FacesBean bean)

getLaunchOnclick

protected java.lang.String getLaunchOnclick(javax.faces.context.FacesContext context,
                                            org.apache.myfaces.trinidad.context.RenderingContext arc,
                                            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(org.apache.myfaces.trinidad.bean.FacesBean bean)
Overrides:
isTextArea in class SimpleInputTextRenderer

getSecret

protected boolean getSecret(org.apache.myfaces.trinidad.bean.FacesBean bean)
Overrides:
getSecret in class SimpleInputTextRenderer

getOnclick

protected java.lang.String getOnclick(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(org.apache.myfaces.trinidad.bean.FacesBean)

shouldRenderInputOnclick

protected boolean shouldRenderInputOnclick()

getAction

protected java.lang.Object getAction(org.apache.myfaces.trinidad.bean.FacesBean bean)

getSearchDesc

protected java.lang.String getSearchDesc(org.apache.myfaces.trinidad.bean.FacesBean bean)

getIcon

protected java.lang.String getIcon(org.apache.myfaces.trinidad.bean.FacesBean bean)

getRootStyleClass

protected java.lang.String getRootStyleClass(org.apache.myfaces.trinidad.bean.FacesBean bean)
Overrides:
getRootStyleClass in class SimpleInputTextRenderer

getContentStyleClass

protected java.lang.String getContentStyleClass(org.apache.myfaces.trinidad.bean.FacesBean bean)
Overrides:
getContentStyleClass in class FormInputRenderer


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.