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

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

public class SimpleInputColorRenderer
extends SimpleInputListOfValuesRenderer


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
SimpleInputColorRenderer()
           
SimpleInputColorRenderer(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 findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
           
protected  java.lang.String getButtonIconName()
           
protected  java.lang.String getChooseId(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getContentStyleClass(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
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  javax.faces.convert.Converter getDefaultConverter(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.bean.FacesBean bean)
          Return a default converter.
protected  java.lang.String getLaunchOnclick(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
          Must be called before starting an element!!!
protected  java.lang.Number getMaximumLength(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getOnblur(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getOnfocus(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getRootStyleClass(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getSearchDesc(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  boolean isCompact(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  void queueActionEvent(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
protected  void queueReturnEvent(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.event.ReturnEvent event)
          Give subclasses a chance to override the ReturnEvent.
protected  void renderAfterTextField(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 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 renderIcon(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 renderTextField(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleInputListOfValuesRenderer
decode, encodeAllAsNonElement, getAction, getButtonOnclick, getIcon, getOnclick, getSecret, isSimpleInputText, isTextArea, shouldRenderInputOnclick
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleInputTextRenderer
getColumns, getColumnsAdjustedForAgent, getDefaultInputType, getDefaultRows, getNoAutoComplete, getOnchange, getOnkeydown, getOnkeypress, getOnselect, getRows, getSubmittedValue, getWrap, renderAllAttributes, 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, getRendersChildren, isAutoSubmit, isHiddenLabelRequired, renderAsElement, renderFormEventHandlers, renderShortDescAsHiddenLabel
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.EditableValueRenderer
addOnSubmitConverterValidators, getConvertedString, getConvertedValue, getDisabled, getReadOnly, getRequired, getRequiredMessageKey, getSubmittedValue, getValidators, isImmediate, shouldRenderId, wasSubmitted
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.ValueRenderer
getConverter, getValue, getValueBinding
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
cloneWithType, enableScriptDeferring, getAbsoluteImageUri, getBaseImageUri, getInlineStyle, 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

SimpleInputColorRenderer

public SimpleInputColorRenderer()

SimpleInputColorRenderer

public SimpleInputColorRenderer(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 SimpleInputListOfValuesRenderer

queueActionEvent

protected void queueActionEvent(javax.faces.context.FacesContext context,
                                javax.faces.component.UIComponent component)
Overrides:
queueActionEvent in class SimpleInputListOfValuesRenderer

queueReturnEvent

protected void queueReturnEvent(javax.faces.context.FacesContext context,
                                javax.faces.component.UIComponent component,
                                org.apache.myfaces.trinidad.event.ReturnEvent event)
Give subclasses a chance to override the ReturnEvent.

Overrides:
queueReturnEvent in class SimpleInputListOfValuesRenderer

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 SimpleInputListOfValuesRenderer
Throws:
java.io.IOException

renderTextField

protected void renderTextField(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:
renderTextField in class SimpleInputListOfValuesRenderer
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
Overrides:
renderContent in class SimpleInputTextRenderer
Throws:
java.io.IOException

renderAfterTextField

protected void renderAfterTextField(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:
renderAfterTextField in class SimpleInputListOfValuesRenderer
Throws:
java.io.IOException

renderIcon

protected void renderIcon(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:
renderIcon in class SimpleInputListOfValuesRenderer
Throws:
java.io.IOException

getDefaultConverter

protected javax.faces.convert.Converter getDefaultConverter(javax.faces.context.FacesContext context,
                                                            org.apache.myfaces.trinidad.bean.FacesBean bean)
Return a default converter.

Overrides:
getDefaultConverter in class ValueRenderer

getLaunchOnclick

protected java.lang.String getLaunchOnclick(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
Description copied from class: SimpleInputListOfValuesRenderer
Must be called before starting an element!!!

Overrides:
getLaunchOnclick in class SimpleInputListOfValuesRenderer
Throws:
java.io.IOException

getOnfocus

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

getOnblur

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

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

getMaximumLength

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

getButtonIconName

protected java.lang.String getButtonIconName()
Overrides:
getButtonIconName in class SimpleInputListOfValuesRenderer

getChooseId

protected java.lang.String getChooseId(org.apache.myfaces.trinidad.bean.FacesBean bean)

isCompact

protected boolean isCompact(org.apache.myfaces.trinidad.bean.FacesBean bean)

getRootStyleClass

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

getContentStyleClass

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

getSearchDesc

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


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