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

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.ChooseDateRenderer
All Implemented Interfaces:
java.lang.Cloneable, org.apache.myfaces.trinidad.render.TypedRenderer

public class ChooseDateRenderer
extends XhtmlRenderer

Renders the calendar.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/renderkit/core/xhtml/ChooseDateRenderer.java#0 $) $Date: 15-nov-2005.19:27:02 $
Author:
The Oracle ADF Faces Team

Field Summary
static java.lang.String LOC_PARAM
           
static java.lang.String MAX_VALUE_PARAM
           
static java.lang.String MIN_VALUE_PARAM
           
static java.lang.String MONTH_PARAM
           
static java.lang.String SCROLLED_VALUE_PARAM
           
static java.lang.String YEAR_PARAM
           
 
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
  ChooseDateRenderer()
           
protected ChooseDateRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
           
 
Method Summary
protected  void encodeAll(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 getDestination(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
 boolean getRendersChildren()
           
protected  boolean isInline(org.apache.myfaces.trinidad.bean.FacesBean bean)
          Tests whether the calendar is running in "inline" mode.
protected static boolean isInlineSupported(org.apache.myfaces.trinidad.context.RenderingContext arc)
           
protected  void renderNextPrev(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 isPrev, boolean isEnabled, java.lang.String halign, java.lang.Object altText, java.lang.String destination, java.lang.String onClick)
          Render the next and previous buttons of the calendar dialog.
protected  void renderSelectDayAttributes(javax.faces.context.FacesContext context, java.lang.String[] keysAndValues, java.lang.String id, long currTime, boolean isInline, boolean isDesktop, java.lang.String destString)
           
protected  boolean shouldRenderId(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Returns true if the component should render an ID.
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
cloneWithType, enableScriptDeferring, getAbsoluteImageUri, getBaseImageUri, getDefaultStyleClass, getInlineStyle, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getShortDesc, getStyleClass, renderAllAttributes, renderAllAttributes, renderDecorativeIcon, renderDecorativeIcon, renderEventHandlers, 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, renderId, renderStyleClass, renderStyleClasses, setRenderingProperty, toChar, toInt, toLong, toString, toUri
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, decode, getConvertedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIN_VALUE_PARAM

public static final java.lang.String MIN_VALUE_PARAM
See Also:
Constant Field Values

MAX_VALUE_PARAM

public static final java.lang.String MAX_VALUE_PARAM
See Also:
Constant Field Values

LOC_PARAM

public static final java.lang.String LOC_PARAM
See Also:
Constant Field Values

SCROLLED_VALUE_PARAM

public static final java.lang.String SCROLLED_VALUE_PARAM
See Also:
Constant Field Values

MONTH_PARAM

public static final java.lang.String MONTH_PARAM
See Also:
Constant Field Values

YEAR_PARAM

public static final java.lang.String YEAR_PARAM
See Also:
Constant Field Values
Constructor Detail

ChooseDateRenderer

public ChooseDateRenderer()

ChooseDateRenderer

protected ChooseDateRenderer(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 XhtmlRenderer

getRendersChildren

public boolean getRendersChildren()
Overrides:
getRendersChildren in class javax.faces.render.Renderer

shouldRenderId

protected boolean shouldRenderId(javax.faces.context.FacesContext context,
                                 javax.faces.component.UIComponent component)
Description copied from class: XhtmlRenderer
Returns true if the component should render an ID. Components that deliver events should always return "true".

Overrides:
shouldRenderId in class XhtmlRenderer

encodeAll

protected final void encodeAll(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:
encodeAll in class org.apache.myfaces.trinidad.render.CoreRenderer
Throws:
java.io.IOException

renderSelectDayAttributes

protected void renderSelectDayAttributes(javax.faces.context.FacesContext context,
                                         java.lang.String[] keysAndValues,
                                         java.lang.String id,
                                         long currTime,
                                         boolean isInline,
                                         boolean isDesktop,
                                         java.lang.String destString)
                                  throws java.io.IOException
Throws:
java.io.IOException

renderNextPrev

protected void renderNextPrev(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 isPrev,
                              boolean isEnabled,
                              java.lang.String halign,
                              java.lang.Object altText,
                              java.lang.String destination,
                              java.lang.String onClick)
                       throws java.io.IOException
Render the next and previous buttons of the calendar dialog.

Throws:
java.io.IOException

getDestination

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

isInline

protected boolean isInline(org.apache.myfaces.trinidad.bean.FacesBean bean)
Tests whether the calendar is running in "inline" mode.


isInlineSupported

protected static boolean isInlineSupported(org.apache.myfaces.trinidad.context.RenderingContext arc)


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