org.apache.myfaces.trinidadinternal.renderkit.core.xhtml
Class FormInputRenderer
java.lang.Object
javax.faces.render.Renderer
org.apache.myfaces.trinidad.render.CoreRenderer
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.ValueRenderer
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.EditableValueRenderer
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormElementRenderer
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormInputRenderer
- All Implemented Interfaces:
- java.lang.Cloneable, org.apache.myfaces.trinidad.render.TypedRenderer
- Direct Known Subclasses:
- SimpleInputTextRenderer, SimpleSelectBooleanRenderer, SimpleSelectManyRenderer, SimpleSelectOneRenderer
public abstract class FormInputRenderer
- extends FormElementRenderer
Fields inherited from class org.apache.myfaces.trinidad.render.CoreRenderer |
CHAR_UNDEFINED, NO_CHILD_INDEX |
Constructor Summary |
protected |
FormInputRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
|
Method Summary |
protected void |
findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
|
protected java.lang.String |
getContentStyleClass(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected abstract java.lang.String |
getRootStyleClass(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected boolean |
getShowRequired(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected boolean |
getSimple(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected void |
renderAllAttributes(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
org.apache.myfaces.trinidad.bean.FacesBean bean,
boolean renderStyleAttrs)
used in the form input components for the 'content' piece. |
protected void |
renderDisabledAttribute(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected void |
renderId(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Render the client ID as both an "id" and a "name" |
protected void |
renderRootDomElementStyles(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
Render the styles and style classes that should go on the root dom element. |
protected boolean |
shouldRenderName(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Returns true if the component should render the ID as a name. |
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormElementRenderer |
encodeAll, encodeAllAsElement, encodeAllAsNonElement, getContentStyle, getDefaultStyleClass, getHiddenLabel, getLabel, getOnblur, getOnchange, getOnfocus, getRendersChildren, isAutoSubmit, isHiddenLabelRequired, renderAsElement, renderEventHandlers, renderFormEventHandlers, renderNonElementContent, renderReadOnlyAsElement, renderShortDescAsHiddenLabel |
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.XhtmlRenderer |
cloneWithType, enableScriptDeferring, getAbsoluteImageUri, getBaseImageUri, getInlineStyle, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, 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 |
FormInputRenderer
protected FormInputRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
findTypeConstants
protected void findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
- Overrides:
findTypeConstants
in class FormElementRenderer
renderId
protected void renderId(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws java.io.IOException
- Render the client ID as both an "id" and a "name"
- Overrides:
renderId
in class org.apache.myfaces.trinidad.render.CoreRenderer
- Throws:
java.io.IOException
shouldRenderName
protected boolean shouldRenderName(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
- Returns true if the component should render the ID as a name.
By default, don't if the component is readonly.
renderDisabledAttribute
protected void renderDisabledAttribute(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
org.apache.myfaces.trinidad.bean.FacesBean bean)
throws java.io.IOException
- Throws:
java.io.IOException
renderAllAttributes
protected void renderAllAttributes(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
org.apache.myfaces.trinidad.bean.FacesBean bean,
boolean renderStyleAttrs)
throws java.io.IOException
- used in the form input components for the 'content' piece.
- Overrides:
renderAllAttributes
in class XhtmlRenderer
- Parameters:
context
- arc
- bean
- renderStyleAttrs,
- whether to render the styleClass/inlineStyle
attribute values on the 'content' piece. This is usually false.
- Throws:
java.io.IOException
getSimple
protected boolean getSimple(org.apache.myfaces.trinidad.bean.FacesBean bean)
renderRootDomElementStyles
protected void renderRootDomElementStyles(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
- Render the styles and style classes that should go on the root dom element.
(called from LabelAndMessageRenderer, the superclass)
- Parameters:
context
- arc
- component
- bean
-
- Throws:
java.io.IOException
getContentStyleClass
protected java.lang.String getContentStyleClass(org.apache.myfaces.trinidad.bean.FacesBean bean)
getRootStyleClass
protected abstract java.lang.String getRootStyleClass(org.apache.myfaces.trinidad.bean.FacesBean bean)
getShowRequired
protected boolean getShowRequired(org.apache.myfaces.trinidad.bean.FacesBean bean)
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.