|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.render.Renderer
org.sakaiproject.tool.assessment.jsf.renderer.AlphaIndexRenderer
public class AlphaIndexRenderer
Description:
Render an alphabetical index. Makes any letter that exists in the initials parameter a link.
Copyright: Copyright (c) 2004
Organization: Sakai Project
| Constructor Summary | |
|---|---|
AlphaIndexRenderer()
|
|
| 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 an alphabetical index. |
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 |
|---|
public AlphaIndexRenderer()
| Method Detail |
|---|
public boolean supportsComponentType(javax.faces.component.UIComponent component)
public void decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
decode in class javax.faces.render.Renderer
public void encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
encodeBegin in class javax.faces.render.RendererIOException
public void encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
encodeChildren in class javax.faces.render.RendererIOException
public void encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
Render an alphabetical index. Makes any letter that exists in the initials parameter a link. Any other is simply displayed.
Example:
| <a href='#A'><b>A</b></a> | <b>B</b>...
encodeEnd in class javax.faces.render.Renderercontext - FacesContext for the request we are processingcomponent - UIComponent to be rendered
IOException - if an input/output error occurs while rendering
NullPointerException - if context
or component is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||