public class AlphaIndexRenderer
extends javax.faces.render.Renderer
Description:
Render an alphabetical index. Makes any letter that exists in the initials parameter a link.
Copyright: Copyright (c) 2004
Organization: Sakai Project
| Constructor and Description |
|---|
AlphaIndexRenderer() |
| Modifier and Type | Method and Description |
|---|---|
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) |
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.Rendererpublic void encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
encodeBegin in class javax.faces.render.RendererIOExceptionpublic void encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
encodeChildren in class javax.faces.render.RendererIOExceptionpublic 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 renderedIOException - if an input/output error occurs while renderingNullPointerException - if context
or component is nullCopyright © 2005-2014 Sakai Project. All Rights Reserved.