org.sakaiproject.tool.assessment.jsf.renderer
Class NavigationMapRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.sakaiproject.tool.assessment.jsf.renderer.NavigationMapRenderer

public class NavigationMapRenderer
extends javax.faces.render.Renderer

Description:

Render a stylesheet link for the value of our component's path attribute, prefixed by the context path of this web application.

Based on example code by Sun Microsystems.

Copyright: Copyright (c) 2004

Organization: Sakai Project

Version:
$Id: NavigationMapRenderer.java 59684 2009-04-03 23:33:27Z arwhyte@umich.edu $
Author:
Ed Smiley

Constructor Summary
NavigationMapRenderer()
           
 
Method Summary
 void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Render a relative HTML <link> element for a text/css stylesheet at the specified context-relative path.
 boolean supportsComponentType(javax.faces.component.UIComponent component)
           
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, getConvertedValue, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavigationMapRenderer

public NavigationMapRenderer()
Method Detail

supportsComponentType

public boolean supportsComponentType(javax.faces.component.UIComponent component)

decode

public void decode(javax.faces.context.FacesContext context,
                   javax.faces.component.UIComponent component)
Overrides:
decode in class javax.faces.render.Renderer

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext context,
                        javax.faces.component.UIComponent component)
                 throws IOException
Overrides:
encodeBegin in class javax.faces.render.Renderer
Throws:
IOException

encodeChildren

public void encodeChildren(javax.faces.context.FacesContext context,
                           javax.faces.component.UIComponent component)
                    throws IOException
Overrides:
encodeChildren in class javax.faces.render.Renderer
Throws:
IOException

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context,
                      javax.faces.component.UIComponent component)
               throws IOException

Render a relative HTML <link> element for a text/css stylesheet at the specified context-relative path.

Overrides:
encodeEnd in class javax.faces.render.Renderer
Parameters:
context - FacesContext for the request we are processing
component - UIComponent to be rendered
Throws:
IOException - if an input/output error occurs while rendering
NullPointerException - if context or component is null


Copyright © 2005-2012 Sakai Project. All Rights Reserved.