org.apache.myfaces.trinidadinternal.renderkit.core.xhtml
Class EditableValueRenderer
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
- All Implemented Interfaces:
- java.lang.Cloneable, org.apache.myfaces.trinidad.render.TypedRenderer
- Direct Known Subclasses:
- FormElementRenderer, InputHiddenRenderer
public abstract class EditableValueRenderer
- extends ValueRenderer
Fields inherited from class org.apache.myfaces.trinidad.render.CoreRenderer |
CHAR_UNDEFINED, NO_CHILD_INDEX |
Constructor Summary |
protected |
EditableValueRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
|
Method Summary |
protected void |
addOnSubmitConverterValidators(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
protected void |
findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
|
protected java.lang.String |
getConvertedString(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
Override to include "submitted value". |
java.lang.Object |
getConvertedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object submittedValue)
Converts a string value into the component's value |
protected boolean |
getDisabled(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected boolean |
getReadOnly(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected boolean |
getRequired(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getRequiredMessageKey()
|
protected java.lang.Object |
getSubmittedValue(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
java.lang.Object |
getSubmittedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
protected java.util.Iterator<javax.faces.validator.Validator> |
getValidators(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected boolean |
isImmediate(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected boolean |
shouldRenderId(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
All editable components need IDs. |
protected boolean |
wasSubmitted(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Override this method to return "false" if the component was
not actually submitted (if, for instance, it was disabled
or "read-only". |
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, encodeAll, 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, getRendersChildren |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EditableValueRenderer
protected EditableValueRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
findTypeConstants
protected void findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
- Overrides:
findTypeConstants
in class ValueRenderer
decode
public void decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
- Overrides:
decode
in class javax.faces.render.Renderer
getSubmittedValue
public java.lang.Object getSubmittedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
getConvertedValue
public java.lang.Object getConvertedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object submittedValue)
throws javax.faces.convert.ConverterException
- Converts a string value into the component's value
- Overrides:
getConvertedValue
in class javax.faces.render.Renderer
- Parameters:
context
- the FacesContextcomponent
- the componentnewValue
- the unconverted string value
- Throws:
javax.faces.convert.ConverterException
wasSubmitted
protected boolean wasSubmitted(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
- Override this method to return "false" if the component was
not actually submitted (if, for instance, it was disabled
or "read-only".
shouldRenderId
protected boolean shouldRenderId(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
- All editable components need IDs.
- Overrides:
shouldRenderId
in class XhtmlRenderer
getConvertedString
protected java.lang.String getConvertedString(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
- Override to include "submitted value".
- Overrides:
getConvertedString
in class ValueRenderer
getSubmittedValue
protected java.lang.Object getSubmittedValue(org.apache.myfaces.trinidad.bean.FacesBean bean)
addOnSubmitConverterValidators
protected void addOnSubmitConverterValidators(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
getRequiredMessageKey
protected java.lang.String getRequiredMessageKey()
getReadOnly
protected boolean getReadOnly(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.bean.FacesBean bean)
getDisabled
protected boolean getDisabled(org.apache.myfaces.trinidad.bean.FacesBean bean)
getRequired
protected boolean getRequired(org.apache.myfaces.trinidad.bean.FacesBean bean)
isImmediate
protected boolean isImmediate(org.apache.myfaces.trinidad.bean.FacesBean bean)
getValidators
protected java.util.Iterator<javax.faces.validator.Validator> getValidators(org.apache.myfaces.trinidad.bean.FacesBean bean)
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.