org.apache.myfaces.trinidadinternal.renderkit.core.xhtml
Class InputLabelAndMessageRenderer
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.LabelAndMessageRenderer
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.InputLabelAndMessageRenderer
- All Implemented Interfaces:
- java.lang.Cloneable, org.apache.myfaces.trinidad.render.TypedRenderer
- Direct Known Subclasses:
- InputColorRenderer, InputDateRenderer, InputFileRenderer, InputListOfValuesRenderer, InputNumberSpinboxRenderer, InputTextRenderer, SelectBooleanCheckboxRenderer, SelectBooleanRadioRenderer, SelectManyCheckboxRenderer, SelectManyListboxRenderer, SelectOneChoiceRenderer, SelectOneListboxRenderer, SelectOneRadioRenderer
public abstract class InputLabelAndMessageRenderer
- extends LabelAndMessageRenderer
Fields inherited from class org.apache.myfaces.trinidad.render.CoreRenderer |
CHAR_UNDEFINED, NO_CHILD_INDEX |
Method Summary |
void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
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 |
findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
|
java.lang.Object |
getConvertedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object submittedValue)
|
protected abstract FormInputRenderer |
getFormInputRenderer()
|
protected java.lang.String |
getLabelFor(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
Returns the ID (clientId) of the component that
should receive the label. |
protected boolean |
getSimple(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected boolean |
isContentEditable(org.apache.myfaces.trinidad.bean.FacesBean bean)
If it's known that the field content is not editable, return false. |
protected boolean |
isDisabled(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected boolean |
isReadOnly(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected void |
renderFieldCellContents(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 |
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. |
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.LabelAndMessageRenderer |
getClientId, getDefaultLabelValign, getLabel, getLabelInlineStyleKey, getLabelStyleClass, getRendersChildren, getRequired, getRootStyleClass, getShowRequired, hasMessage, hasOwnLabel, isIndented, labelShowRequired, shouldRenderId, showAccessKeyOnLabel |
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer |
cloneWithType, enableScriptDeferring, getAbsoluteImageUri, getBaseImageUri, getDefaultStyleClass, getInlineStyle, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getShortDesc, getStyleClass, renderAllAttributes, renderAllAttributes, renderDecorativeIcon, renderDecorativeIcon, renderEventHandlers, 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, 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 |
InputLabelAndMessageRenderer
public InputLabelAndMessageRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
findTypeConstants
protected void findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
- Overrides:
findTypeConstants
in class LabelAndMessageRenderer
decode
public void decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
- Overrides:
decode
in class javax.faces.render.Renderer
getConvertedValue
public java.lang.Object getConvertedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object submittedValue)
- Overrides:
getConvertedValue
in class javax.faces.render.Renderer
getLabelFor
protected java.lang.String getLabelFor(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
- Description copied from class:
LabelAndMessageRenderer
- Returns the ID (clientId) of the component that
should receive the label.
- Specified by:
getLabelFor
in class LabelAndMessageRenderer
encodeAll
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)
throws java.io.IOException
- Overrides:
encodeAll
in class LabelAndMessageRenderer
- Throws:
java.io.IOException
isContentEditable
protected boolean isContentEditable(org.apache.myfaces.trinidad.bean.FacesBean bean)
- If it's known that the field content is not editable, return false.
Otherwise, assume it is editable and return true
- Overrides:
isContentEditable
in class LabelAndMessageRenderer
renderFieldCellContents
protected void renderFieldCellContents(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
- Specified by:
renderFieldCellContents
in class LabelAndMessageRenderer
- 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)
- Overrides:
renderRootDomElementStyles
in class LabelAndMessageRenderer
- Parameters:
context
- arc
- component
- bean
-
- Throws:
java.io.IOException
isDisabled
protected boolean isDisabled(org.apache.myfaces.trinidad.bean.FacesBean bean)
isReadOnly
protected boolean isReadOnly(org.apache.myfaces.trinidad.bean.FacesBean bean)
getFormInputRenderer
protected abstract FormInputRenderer getFormInputRenderer()
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.