org.hdpagination.web.jsf.renderkit
Class SortLinkRenderer
java.lang.Object
javax.faces.render.Renderer
org.hdpagination.web.jsf.renderkit.PaginateRenderer
org.hdpagination.web.jsf.renderkit.SortLinkRenderer
public class SortLinkRenderer
- extends PaginateRenderer
This Render is to render the column header with hyperlink (<a>) in a search results table.
This allows the user to sort the search results by this column.
By default, when the column header is clicked and the current search result
is not sorted by that column, then the result will be displayed in ascending order.
The search results will be toggled between ascending and descending order every time the column header is clicked.
- Since:
- 1.1
- Author:
- Liangfeng Ren
|
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)
|
| Methods inherited from class javax.faces.render.Renderer |
convertClientId, encodeChildren, encodeEnd, getConvertedValue, getRendersChildren |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortLinkRenderer
public SortLinkRenderer()
encodeBegin
public void encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws java.io.IOException
- Overrides:
encodeBegin in class javax.faces.render.Renderer
- Throws:
java.io.IOException
decode
public void decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
- Overrides:
decode in class PaginateRenderer
Copyright © 2008 HDPagination All Rights Reserved.