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

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
                                  extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleInputFileRenderer
All Implemented Interfaces:
java.lang.Cloneable, org.apache.myfaces.trinidad.render.TypedRenderer

public class SimpleInputFileRenderer
extends SimpleInputTextRenderer


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
SimpleInputFileRenderer()
           
SimpleInputFileRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
           
 
Method Summary
protected  java.lang.String getContentStyleClass(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getConvertedString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           cannot show a 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  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  java.lang.Number getMaximumLength(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  boolean getReadOnly(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getRootStyleClass(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  boolean isAutoSubmit(org.apache.myfaces.trinidad.bean.FacesBean bean)
          Tells whether or not the autoSubmit attribute is set on the bean
 boolean isTextArea(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleInputTextRenderer
encodeAllAsElement, encodeAllAsNonElement, findTypeConstants, getColumns, getColumnsAdjustedForAgent, getDefaultRows, getNoAutoComplete, getOnchange, getOnfocus, getOnkeydown, getOnkeypress, getOnselect, getRows, getWrap, isSimpleInputText, renderAllAttributes, renderContent, renderEventHandlers, renderNonElementContent, renderReadOnlyAsElement
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormInputRenderer
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, isHiddenLabelRequired, renderAsElement, renderFormEventHandlers, renderShortDescAsHiddenLabel
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.EditableValueRenderer
addOnSubmitConverterValidators, decode, getDisabled, 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

SimpleInputFileRenderer

public SimpleInputFileRenderer()

SimpleInputFileRenderer

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

getSubmittedValue

public java.lang.Object getSubmittedValue(javax.faces.context.FacesContext context,
                                          javax.faces.component.UIComponent component)
Overrides:
getSubmittedValue in class SimpleInputTextRenderer

getConvertedValue

public java.lang.Object getConvertedValue(javax.faces.context.FacesContext context,
                                          javax.faces.component.UIComponent component,
                                          java.lang.Object submittedValue)
Description copied from class: EditableValueRenderer
Converts a string value into the component's value

Overrides:
getConvertedValue in class EditableValueRenderer
Parameters:
context - the FacesContext
component - the component

getConvertedString

protected java.lang.String getConvertedString(javax.faces.context.FacesContext context,
                                              javax.faces.component.UIComponent component,
                                              org.apache.myfaces.trinidad.bean.FacesBean bean)
cannot show a value.

Overrides:
getConvertedString in class EditableValueRenderer

getDefaultInputType

protected java.lang.String getDefaultInputType()
Overrides:
getDefaultInputType in class SimpleInputTextRenderer

isTextArea

public boolean isTextArea(org.apache.myfaces.trinidad.bean.FacesBean bean)
Overrides:
isTextArea in class SimpleInputTextRenderer

isAutoSubmit

protected boolean isAutoSubmit(org.apache.myfaces.trinidad.bean.FacesBean bean)
Description copied from class: FormElementRenderer
Tells whether or not the autoSubmit attribute is set on the bean

Overrides:
isAutoSubmit in class FormElementRenderer
Parameters:
bean - the bean

getSecret

protected boolean getSecret(org.apache.myfaces.trinidad.bean.FacesBean bean)
Overrides:
getSecret in class SimpleInputTextRenderer

getMaximumLength

protected java.lang.Number getMaximumLength(org.apache.myfaces.trinidad.bean.FacesBean bean)
Overrides:
getMaximumLength in class SimpleInputTextRenderer

getReadOnly

protected boolean getReadOnly(javax.faces.context.FacesContext context,
                              org.apache.myfaces.trinidad.bean.FacesBean bean)
Overrides:
getReadOnly in class EditableValueRenderer

getRootStyleClass

protected java.lang.String getRootStyleClass(org.apache.myfaces.trinidad.bean.FacesBean bean)
Overrides:
getRootStyleClass in class SimpleInputTextRenderer

getContentStyleClass

protected java.lang.String getContentStyleClass(org.apache.myfaces.trinidad.bean.FacesBean bean)
Overrides:
getContentStyleClass in class FormInputRenderer

getDefaultColumns

protected java.lang.Integer getDefaultColumns(org.apache.myfaces.trinidad.context.RenderingContext arc,
                                              org.apache.myfaces.trinidad.bean.FacesBean bean)
Description copied from class: SimpleInputTextRenderer
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?

Overrides:
getDefaultColumns in class SimpleInputTextRenderer


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.