public class AlphaIndexRenderer extends 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(FacesContext context,
UIComponent component) |
void |
encodeBegin(FacesContext context,
UIComponent component) |
void |
encodeChildren(FacesContext context,
UIComponent component) |
void |
encodeEnd(FacesContext context,
UIComponent component)
Render an alphabetical index.
|
boolean |
supportsComponentType(UIComponent component) |
convertClientId, getConvertedValue, getRendersChildrenpublic boolean supportsComponentType(UIComponent component)
public void decode(FacesContext context, UIComponent component)
public void encodeBegin(FacesContext context, UIComponent component) throws IOException
encodeBegin in class RendererIOExceptionpublic void encodeChildren(FacesContext context, UIComponent component) throws IOException
encodeChildren in class RendererIOExceptionpublic void encodeEnd(FacesContext context, 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 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 © 2003–2017 University of Michigan. All rights reserved.