org.apache.myfaces.trinidadinternal.renderkit.core.xhtml
Class SimpleInputTextRenderer
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
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleInputTextRenderer
- All Implemented Interfaces:
- java.lang.Cloneable, org.apache.myfaces.trinidad.render.TypedRenderer
- Direct Known Subclasses:
- SimpleInputFileRenderer, SimpleInputListOfValuesRenderer
public class SimpleInputTextRenderer
- extends FormInputRenderer
| Fields inherited from class org.apache.myfaces.trinidad.render.CoreRenderer |
CHAR_UNDEFINED, NO_CHILD_INDEX |
|
Method Summary |
protected void |
encodeAllAsElement(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
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 rc,
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 |
getAutoComplete(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.Number |
getColumns(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.Integer |
getDefaultColumns(org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
Returns the default number of text input columns
Note that this is often over-written by subclasses to provide
their own defaults. |
protected java.lang.String |
getDefaultInputType()
|
protected int |
getDefaultRows()
Returns the default number of text area rows |
protected java.lang.Number |
getMaximumLength(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getOnchange(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getOnfocus(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getOnkeydown(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getOnkeyup(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getOnpaste(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getOnselect(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getRootStyleClass(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.Number |
getRows(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected boolean |
getSecret(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.Object |
getSubmittedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String clientId)
|
protected java.lang.Object |
getWrap(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected boolean |
isSimpleInputText(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
boolean |
isTextArea(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected void |
renderAllAttributes(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean,
boolean renderStyleAttrs)
used in the form input components for the 'content' piece. |
protected void |
renderContent(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean,
boolean renderAsElement,
boolean isTextArea)
|
protected void |
renderEventHandlers(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
Renders event handlers for the node. |
protected void |
renderNonElementContent(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected boolean |
renderReadOnlyAsElement(org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
| Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormElementRenderer |
detectAutoSubmit, 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, decode, getConvertedString, getConvertedValue, getDisabled, getReadOnly, getRequired, getRequiredMessageKey, getSubmittedValue, getValidators, isImmediate, shouldRenderId, wasSubmitted |
| Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer |
canSkipRendering, canSkipRendering, cloneWithType, getAbsoluteImageUri, getBaseImageUri, getInlineStyle, getOnclick, getOndblclick, getOnkeypress, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getPartialTriggers, getShortDesc, getStyleClass, renderAllAttributes, renderDecorativeIcon, renderDecorativeIcon, renderFormattedText, renderHAlign, renderInlineStyle, renderInlineStyleAttribute, renderPossiblyFormattedText, renderScriptDeferAttribute, renderScriptTypeAttribute, renderShortDescAttribute, renderSpacer, renderStyleAttributes, renderStyleAttributes, renderSubmitButtonNonJSBrowser, renderTransparent, renderVerticalSpacer, resolveProperty, resolveProperty, skipDecode, supportsAccessKeys, supportsAdvancedForms, supportsAutoCompleteFormElements, supportsDisabledFormElements, supportsEditing, supportsIntrinsicEvents, supportsNarrowScreen, supportsNavigation, supportsOnClickOnImgInput, supportsReadonlyFormElements, supportsScripting, supportsSeparateWindow, supportsStyleAttributes, supportsTarget, supportsTextPresentation |
| Methods inherited from class org.apache.myfaces.trinidad.render.CoreRenderer |
afterEncode, beforeEncode, decode, decodeBehaviors, delegateRenderer, delegateRendererBegin, delegateRendererEnd, encodeAllChildren, encodeBegin, encodeBegin, encodeChild, encodeChildren, encodeComponentResources, encodeEnd, encodeEnd, getBehaviorParameters, getClientId, getFacesBean, getFacet, getNextRenderedChildIndex, getRenderedChildCount, getRenderedFacetsAndChildren, getRenderingProperty, hasRenderedChildren, isDesktop, isGecko, isGenericPDA, isIE, isInaccessibleMode, isIPhone, isKonqueror, isNokiaS60, isOpera, isPDA, isScreenReaderMode, isWebKit, partialEncodeVisit, renderEncodedActionURI, renderEncodedResourceURI, renderStyleClass, renderStyleClasses, setRenderingProperty, setupChildrenEncodingContext, setupEncodingContext, setupEncodingContext, tearDownChildrenEncodingContext, tearDownEncodingContext, tearDownEncodingContext, toActionUri, toChar, toInt, toLong, toResourceUri, toString, toUri, visitChildrenForEncoding |
| 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 |
SimpleInputTextRenderer
public SimpleInputTextRenderer()
SimpleInputTextRenderer
public SimpleInputTextRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
findTypeConstants
protected void findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
- Overrides:
findTypeConstants in class FormInputRenderer
getSubmittedValue
protected java.lang.Object getSubmittedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String clientId)
- Overrides:
getSubmittedValue in class FormElementRenderer
encodeAllAsElement
protected void encodeAllAsElement(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
throws java.io.IOException
- Overrides:
encodeAllAsElement in class FormElementRenderer
- Throws:
java.io.IOException
renderAllAttributes
protected void renderAllAttributes(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean,
boolean renderStyleAttrs)
throws java.io.IOException
- Description copied from class:
FormInputRenderer
- used in the form input components for the 'content' piece.
- Overrides:
renderAllAttributes in class FormInputRenderer
- Throws:
java.io.IOException
getRootStyleClass
protected java.lang.String getRootStyleClass(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
- Specified by:
getRootStyleClass in class FormInputRenderer
getDefaultRows
protected int getDefaultRows()
- Returns the default number of text area rows
getDefaultColumns
protected java.lang.Integer getDefaultColumns(org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
- Returns the default number of text input columns
Note that this is often over-written by subclasses to provide
their own defaults.
=-=AEW MOVE ONTO BEAN TYPE?
getDefaultInputType
protected java.lang.String getDefaultInputType()
renderEventHandlers
protected void renderEventHandlers(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
throws java.io.IOException
- Renders event handlers for the node.
- Overrides:
renderEventHandlers in class FormElementRenderer
- Throws:
java.io.IOException
encodeAllAsNonElement
protected void encodeAllAsNonElement(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
throws java.io.IOException
- Overrides:
encodeAllAsNonElement in class FormElementRenderer
- Throws:
java.io.IOException
renderNonElementContent
protected void renderNonElementContent(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
throws java.io.IOException
- Overrides:
renderNonElementContent in class FormElementRenderer
- Throws:
java.io.IOException
renderContent
protected void renderContent(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean,
boolean renderAsElement,
boolean isTextArea)
throws java.io.IOException
- Throws:
java.io.IOException
getOnkeyup
protected java.lang.String getOnkeyup(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
- Overrides:
getOnkeyup in class XhtmlRenderer
getOnkeydown
protected java.lang.String getOnkeydown(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
- Overrides:
getOnkeydown in class XhtmlRenderer
getOnfocus
protected java.lang.String getOnfocus(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
- Overrides:
getOnfocus in class FormElementRenderer
getOnchange
protected java.lang.String getOnchange(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
- Overrides:
getOnchange in class FormElementRenderer
getOnpaste
protected java.lang.String getOnpaste(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
getOnselect
protected java.lang.String getOnselect(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
getColumns
protected java.lang.Number getColumns(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
getRows
protected java.lang.Number getRows(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
getMaximumLength
protected java.lang.Number getMaximumLength(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
getWrap
protected java.lang.Object getWrap(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
getSecret
protected boolean getSecret(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
isTextArea
public boolean isTextArea(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
renderReadOnlyAsElement
protected boolean renderReadOnlyAsElement(org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
- Overrides:
renderReadOnlyAsElement in class FormElementRenderer
getAutoComplete
protected java.lang.String getAutoComplete(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
isSimpleInputText
protected boolean isSimpleInputText(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.