org.apache.myfaces.trinidadinternal.renderkit.core
Class CoreRenderKit

java.lang.Object
  extended by javax.faces.render.RenderKit
      extended by org.apache.myfaces.trinidadinternal.renderkit.RenderKitBase
          extended by org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit
All Implemented Interfaces:
org.apache.myfaces.trinidad.render.DialogRenderKitService, org.apache.myfaces.trinidad.render.ExtendedRenderKitService

public class CoreRenderKit
extends RenderKitBase
implements org.apache.myfaces.trinidad.render.DialogRenderKitService, org.apache.myfaces.trinidad.render.ExtendedRenderKitService

RenderKit based on UIX.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/renderkit/core/CoreRenderKit.java#0 $) $Date: 10-nov-2005.19:01:18 $
Author:
The Oracle ADF Faces Team

Field Summary
static java.lang.String BASE_RENDER_KIT_ID
          RenderKit ID for an internal and not-fully-functional kit that contains a base set of renderers.
static java.lang.String OUTPUT_MODE_DEFAULT
          The default output mode; if no output mode is set, or the requested output mode is not available, this output mode will be used.
static java.lang.String OUTPUT_MODE_EMAIL
          An e-mail output mode; when supported, this output mode should result in a version of page content optimized for use in e-mail.
static java.lang.String OUTPUT_MODE_PORTLET
          A portlet output mode; when supported, this output mode should result in a version of page content optimized for use in portlets.
static java.lang.String OUTPUT_MODE_PRINTABLE
          A printable output mode; when supported, this output mode should result in a version of a page designed for printouts.
static java.lang.String RETURN_PARAM
           
 
Constructor Summary
CoreRenderKit()
           
 
Method Summary
 void addScript(javax.faces.context.FacesContext context, java.lang.String script)
          Adds a script for execution during rendering.
static java.lang.String chooseRenderKit(javax.faces.context.FacesContext context)
          Choose a RenderKit for the current request.
 javax.faces.context.ResponseStream createResponseStream(java.io.OutputStream output)
           
 javax.faces.context.ResponseWriter createResponseWriter(java.io.Writer writer, java.lang.String contentTypeList, java.lang.String characterEncoding)
           
 void encodeBegin(javax.faces.context.FacesContext context)
          Called when the encoding of a page begins.
 void encodeEnd(javax.faces.context.FacesContext context)
          Called when the encoding of a page ends, if there were no exceptions.
 void encodeFinally(javax.faces.context.FacesContext context)
          Called when the encoding of a page completes, whether or not there were exceptions.
 void encodeScripts(javax.faces.context.FacesContext context)
           
static java.lang.String getId()
           
 javax.faces.render.ResponseStateManager getResponseStateManager()
           
 boolean isReturning(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source)
           
 boolean isStateless(javax.faces.context.FacesContext context)
           
 boolean launchDialog(javax.faces.context.FacesContext context, javax.faces.component.UIViewRoot targetRoot, javax.faces.component.UIComponent source, java.util.Map<java.lang.String,java.lang.Object> processParameters, boolean useWindow, java.util.Map<java.lang.String,java.lang.Object> windowProperties)
           
 boolean returnFromDialog(javax.faces.context.FacesContext context, java.lang.Object returnValue)
           
static void saveDialogPostbackValues(java.lang.String returnId)
          Save the form name of the source page for use in subsequent postback.
 boolean shortCircuitRenderView(javax.faces.context.FacesContext context)
           
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.RenderKitBase
addRenderer, addRenderer, attachAggregatedRenderKit, findRenderer, getRenderer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OUTPUT_MODE_DEFAULT

public static java.lang.String OUTPUT_MODE_DEFAULT
The default output mode; if no output mode is set, or the requested output mode is not available, this output mode will be used.


OUTPUT_MODE_PORTLET

public static java.lang.String OUTPUT_MODE_PORTLET
A portlet output mode; when supported, this output mode should result in a version of page content optimized for use in portlets.


OUTPUT_MODE_PRINTABLE

public static java.lang.String OUTPUT_MODE_PRINTABLE
A printable output mode; when supported, this output mode should result in a version of a page designed for printouts.


OUTPUT_MODE_EMAIL

public static java.lang.String OUTPUT_MODE_EMAIL
An e-mail output mode; when supported, this output mode should result in a version of page content optimized for use in e-mail.


RETURN_PARAM

public static java.lang.String RETURN_PARAM

BASE_RENDER_KIT_ID

public static java.lang.String BASE_RENDER_KIT_ID
RenderKit ID for an internal and not-fully-functional kit that contains a base set of renderers.

Constructor Detail

CoreRenderKit

public CoreRenderKit()
Method Detail

getId

public static java.lang.String getId()

chooseRenderKit

public static java.lang.String chooseRenderKit(javax.faces.context.FacesContext context)
Choose a RenderKit for the current request.


saveDialogPostbackValues

public static void saveDialogPostbackValues(java.lang.String returnId)
Save the form name of the source page for use in subsequent postback. We save it at pageFlow scope, which means that it won't be seen by the original page - as long as this only gets called from the popup dialog, and not the originating page!


launchDialog

public boolean launchDialog(javax.faces.context.FacesContext context,
                            javax.faces.component.UIViewRoot targetRoot,
                            javax.faces.component.UIComponent source,
                            java.util.Map<java.lang.String,java.lang.Object> processParameters,
                            boolean useWindow,
                            java.util.Map<java.lang.String,java.lang.Object> windowProperties)
Specified by:
launchDialog in interface org.apache.myfaces.trinidad.render.DialogRenderKitService

returnFromDialog

public boolean returnFromDialog(javax.faces.context.FacesContext context,
                                java.lang.Object returnValue)
Specified by:
returnFromDialog in interface org.apache.myfaces.trinidad.render.DialogRenderKitService

isReturning

public boolean isReturning(javax.faces.context.FacesContext context,
                           javax.faces.component.UIComponent source)
Specified by:
isReturning in interface org.apache.myfaces.trinidad.render.DialogRenderKitService

shortCircuitRenderView

public boolean shortCircuitRenderView(javax.faces.context.FacesContext context)
                               throws java.io.IOException
Specified by:
shortCircuitRenderView in interface org.apache.myfaces.trinidad.render.ExtendedRenderKitService
Throws:
java.io.IOException

isStateless

public boolean isStateless(javax.faces.context.FacesContext context)
Specified by:
isStateless in interface org.apache.myfaces.trinidad.render.ExtendedRenderKitService

addScript

public void addScript(javax.faces.context.FacesContext context,
                      java.lang.String script)
Adds a script for execution during rendering.

Specified by:
addScript in interface org.apache.myfaces.trinidad.render.ExtendedRenderKitService

encodeScripts

public void encodeScripts(javax.faces.context.FacesContext context)
                   throws java.io.IOException
Specified by:
encodeScripts in interface org.apache.myfaces.trinidad.render.ExtendedRenderKitService
Throws:
java.io.IOException

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext context)
Called when the encoding of a page begins.

Specified by:
encodeBegin in interface org.apache.myfaces.trinidad.render.ExtendedRenderKitService

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context)
Called when the encoding of a page ends, if there were no exceptions.

Specified by:
encodeEnd in interface org.apache.myfaces.trinidad.render.ExtendedRenderKitService

encodeFinally

public void encodeFinally(javax.faces.context.FacesContext context)
Called when the encoding of a page completes, whether or not there were exceptions.

Specified by:
encodeFinally in interface org.apache.myfaces.trinidad.render.ExtendedRenderKitService

getResponseStateManager

public javax.faces.render.ResponseStateManager getResponseStateManager()
Specified by:
getResponseStateManager in class javax.faces.render.RenderKit

createResponseStream

public javax.faces.context.ResponseStream createResponseStream(java.io.OutputStream output)
Specified by:
createResponseStream in class javax.faces.render.RenderKit

createResponseWriter

public javax.faces.context.ResponseWriter createResponseWriter(java.io.Writer writer,
                                                               java.lang.String contentTypeList,
                                                               java.lang.String characterEncoding)
Specified by:
createResponseWriter in class javax.faces.render.RenderKit


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