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 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.Number |
getColumns(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.Integer |
getColumnsAdjustedForAgent(org.apache.myfaces.trinidad.context.RenderingContext arc,
org.apache.myfaces.trinidad.bean.FacesBean bean,
java.lang.Integer columns)
A method to adjust the columns for the given agent. |
protected java.lang.Integer |
getDefaultColumns(org.apache.myfaces.trinidad.context.RenderingContext arc,
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(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected boolean |
getNoAutoComplete(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)
|
protected java.lang.String |
getOnkeydown(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getOnkeypress(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getOnselect(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getRootStyleClass(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.Number |
getRows(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected boolean |
getSecret(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
java.lang.Object |
getSubmittedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
protected java.lang.Object |
getWrap(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected boolean |
isSimpleInputText(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
boolean |
isTextArea(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 |
renderContent(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean,
boolean renderAsElement,
boolean isTextArea)
|
protected void |
renderEventHandlers(javax.faces.context.FacesContext context,
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 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)
|
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormElementRenderer |
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 |
cloneWithType, enableScriptDeferring, getAbsoluteImageUri, getBaseImageUri, getInlineStyle, getOnclick, getOndblclick, 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 |
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
public java.lang.Object getSubmittedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
- Overrides:
getSubmittedValue
in class EditableValueRenderer
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
- Overrides:
encodeAllAsElement
in class FormElementRenderer
- 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
- 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(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 arc,
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,
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 arc,
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 arc,
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 arc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean,
boolean renderAsElement,
boolean isTextArea)
throws java.io.IOException
- Throws:
java.io.IOException
getColumnsAdjustedForAgent
protected java.lang.Integer getColumnsAdjustedForAgent(org.apache.myfaces.trinidad.context.RenderingContext arc,
org.apache.myfaces.trinidad.bean.FacesBean bean,
java.lang.Integer columns)
- A method to adjust the columns for the given agent. This may be used
internally and by subclasses to get around quirks in certain agents if
the subclass does not want to do any agent-specific detection on its own.
In general this method should NOT be used to adjust user-specified
columns. Rather, it is primarily used to adjust the default values that
a renderer may specify. Its use is NOT mandatory by subclasses, but serves
as a convenience.
- Returns:
getOnkeypress
protected java.lang.String getOnkeypress(org.apache.myfaces.trinidad.bean.FacesBean bean)
- Overrides:
getOnkeypress
in class XhtmlRenderer
getOnkeydown
protected java.lang.String getOnkeydown(org.apache.myfaces.trinidad.bean.FacesBean bean)
- Overrides:
getOnkeydown
in class XhtmlRenderer
getOnfocus
protected java.lang.String getOnfocus(org.apache.myfaces.trinidad.bean.FacesBean bean)
- Overrides:
getOnfocus
in class FormElementRenderer
getOnchange
protected java.lang.String getOnchange(org.apache.myfaces.trinidad.bean.FacesBean bean)
- Overrides:
getOnchange
in class FormElementRenderer
getOnselect
protected java.lang.String getOnselect(org.apache.myfaces.trinidad.bean.FacesBean bean)
getColumns
protected java.lang.Number getColumns(org.apache.myfaces.trinidad.bean.FacesBean bean)
getRows
protected java.lang.Number getRows(org.apache.myfaces.trinidad.bean.FacesBean bean)
getMaximumLength
protected java.lang.Number getMaximumLength(org.apache.myfaces.trinidad.bean.FacesBean bean)
getWrap
protected java.lang.Object getWrap(org.apache.myfaces.trinidad.bean.FacesBean bean)
getSecret
protected boolean getSecret(org.apache.myfaces.trinidad.bean.FacesBean bean)
isTextArea
public boolean isTextArea(org.apache.myfaces.trinidad.bean.FacesBean bean)
renderReadOnlyAsElement
protected boolean renderReadOnlyAsElement(org.apache.myfaces.trinidad.context.RenderingContext arc,
org.apache.myfaces.trinidad.bean.FacesBean bean)
- Overrides:
renderReadOnlyAsElement
in class FormElementRenderer
getNoAutoComplete
protected boolean getNoAutoComplete(org.apache.myfaces.trinidad.bean.FacesBean bean)
isSimpleInputText
protected boolean isSimpleInputText(org.apache.myfaces.trinidad.bean.FacesBean bean)
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.