public class RichTableMenuRenderer extends TableMenuRenderer
CHANGE_COL_VISIBILITY, changeColumnVisibilityFunction, column, context, groupFunction, onAjaxCompleteFunction, prepareFunction, resourceBuilder, sortFunction, table| Constructor and Description |
|---|
RichTableMenuRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildGroupMenuItem(javax.faces.component.UIComponent parent)
Builds menu item for sorting.
|
protected void |
buildMenu()
Builds menu for current column.
|
protected java.lang.String |
buildMenuId()
Builds menu id base on column for which menu is built.
|
protected void |
buildMenuItem(javax.faces.component.UIComponent parent,
UIColumn col)
Builds menu items for changing column visibility.
|
protected void |
buildSortMenuItem(javax.faces.component.UIComponent parent,
boolean asc)
Builds menu item for sorting.
|
protected void |
createMenu()
Creates menu and ands it to table as child.
|
org.ajax4jsf.javascript.JSFunctionDefinition |
createShowMenuEventFunction()
Creates JavaScript code to be executed in order to show menu on some
event.
|
protected void |
ensureMenuBuilt() |
java.lang.String |
render()
Renders table menu.
|
renderMenu, setChangeColumnVisibilityFunction, setGroupFunction, setOnAjaxCompleteFunction, setPrepareFunction, setSortFunctionpublic java.lang.String render()
throws java.io.IOException
TableMenuRendererrender in class TableMenuRendererjava.io.IOExceptionprotected void ensureMenuBuilt()
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String buildMenuId()
protected void createMenu()
throws java.io.IOException
java.io.IOExceptionprotected void buildMenu()
throws java.io.IOException
java.io.IOExceptionprotected void buildSortMenuItem(javax.faces.component.UIComponent parent,
boolean asc)
throws java.io.IOException
parent - parent component for created itemasc - sort directionjava.io.IOExceptionprotected void buildGroupMenuItem(javax.faces.component.UIComponent parent)
throws java.io.IOException
parent - parent component for created itemjava.io.IOExceptionprotected void buildMenuItem(javax.faces.component.UIComponent parent,
UIColumn col)
throws java.io.IOException
parent - parent component for created itemcol - column component correspond to created itemjava.io.IOExceptionpublic org.ajax4jsf.javascript.JSFunctionDefinition createShowMenuEventFunction()
TableMenuRenderercreateShowMenuEventFunction in class TableMenuRendererCopyright © 2015. All Rights Reserved.