org.apache.myfaces.trinidadinternal.renderkit.core.xhtml
Class SimpleInputTextRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.trinidad.render.CoreRenderer
          extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
              extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.ValueRenderer
                  extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.EditableValueRenderer
                      extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormElementRenderer
                          extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormInputRenderer
                              extended by 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


Field Summary
 
Fields inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
TRANSPARENT_GIF
 
Fields inherited from class org.apache.myfaces.trinidad.render.CoreRenderer
CHAR_UNDEFINED, NO_CHILD_INDEX
 
Constructor Summary
SimpleInputTextRenderer()
           
SimpleInputTextRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
           
 
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.FormInputRenderer
getContentStyleClass, getShowRequired, getSimple, renderDisabledAttribute, renderId, renderRootDomElementStyles, shouldRenderName
 
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.ValueRenderer
getConverter, getDefaultConverter, getValue, getValueBinding
 
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
 

Constructor Detail

SimpleInputTextRenderer

public SimpleInputTextRenderer()

SimpleInputTextRenderer

public SimpleInputTextRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
Method Detail

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.