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

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
All Implemented Interfaces:
java.lang.Cloneable, org.apache.myfaces.trinidad.render.TypedRenderer
Direct Known Subclasses:
FormInputRenderer

public abstract class FormElementRenderer
extends EditableValueRenderer


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
protected FormElementRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
           
 
Method Summary
protected  void encodeAll(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 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.String getContentStyle(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getDefaultStyleClass(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getHiddenLabel(org.apache.myfaces.trinidad.bean.FacesBean bean)
          Return the text for a hidden label, using "shortDesc" if set, "label" otherwise.
protected  java.lang.String getLabel(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getOnblur(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getOnchange(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getOnfocus(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
 boolean getRendersChildren()
           
protected  boolean isAutoSubmit(org.apache.myfaces.trinidad.bean.FacesBean bean)
          Tells whether or not the autoSubmit attribute is set on the bean
protected  boolean isHiddenLabelRequired(org.apache.myfaces.trinidad.context.RenderingContext arc)
           
protected  boolean renderAsElement(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, org.apache.myfaces.trinidad.bean.FacesBean bean)
          Should this component render as a form element, or just as some non-form content?
protected  void renderEventHandlers(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.bean.FacesBean bean)
          Render all the Javascript attributes.
protected  void renderFormEventHandlers(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  void renderNonElementContent(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 renderReadOnlyAsElement(org.apache.myfaces.trinidad.context.RenderingContext arc, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  void renderShortDescAsHiddenLabel(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.EditableValueRenderer
addOnSubmitConverterValidators, decode, getConvertedString, getConvertedValue, getDisabled, getReadOnly, getRequired, getRequiredMessageKey, getSubmittedValue, 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, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getShortDesc, getStyleClass, renderAllAttributes, 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, renderId, 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

FormElementRenderer

protected FormElementRenderer(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 EditableValueRenderer

getRendersChildren

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

encodeAll

protected final void encodeAll(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:
encodeAll in class org.apache.myfaces.trinidad.render.CoreRenderer
Throws:
java.io.IOException

isHiddenLabelRequired

protected boolean isHiddenLabelRequired(org.apache.myfaces.trinidad.context.RenderingContext arc)

renderShortDescAsHiddenLabel

protected void renderShortDescAsHiddenLabel(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

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
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
Throws:
java.io.IOException

renderNonElementContent

protected void renderNonElementContent(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

renderEventHandlers

protected void renderEventHandlers(javax.faces.context.FacesContext context,
                                   org.apache.myfaces.trinidad.bean.FacesBean bean)
                            throws java.io.IOException
Description copied from class: XhtmlRenderer
Render all the Javascript attributes.

Overrides:
renderEventHandlers in class XhtmlRenderer
Throws:
java.io.IOException

renderFormEventHandlers

protected void renderFormEventHandlers(javax.faces.context.FacesContext context,
                                       org.apache.myfaces.trinidad.bean.FacesBean bean)
                                throws java.io.IOException
Throws:
java.io.IOException

renderAsElement

protected final boolean renderAsElement(javax.faces.context.FacesContext context,
                                        org.apache.myfaces.trinidad.context.RenderingContext arc,
                                        org.apache.myfaces.trinidad.bean.FacesBean bean)
Should this component render as a form element, or just as some non-form content?


renderReadOnlyAsElement

protected boolean renderReadOnlyAsElement(org.apache.myfaces.trinidad.context.RenderingContext arc,
                                          org.apache.myfaces.trinidad.bean.FacesBean bean)

getLabel

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

getContentStyle

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

getOnblur

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

getOnfocus

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

getOnchange

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

getDefaultStyleClass

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

isAutoSubmit

protected boolean isAutoSubmit(org.apache.myfaces.trinidad.bean.FacesBean bean)
Tells whether or not the autoSubmit attribute is set on the bean

Parameters:
bean - the bean

getHiddenLabel

protected java.lang.String getHiddenLabel(org.apache.myfaces.trinidad.bean.FacesBean bean)
Return the text for a hidden label, using "shortDesc" if set, "label" otherwise.



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