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, setSortFunction
public java.lang.String render() throws java.io.IOException
TableMenuRenderer
render
in class TableMenuRenderer
java.io.IOException
protected void ensureMenuBuilt() throws java.io.IOException
java.io.IOException
protected java.lang.String buildMenuId()
protected void createMenu() throws java.io.IOException
java.io.IOException
protected void buildMenu() throws java.io.IOException
java.io.IOException
protected void buildSortMenuItem(javax.faces.component.UIComponent parent, boolean asc) throws java.io.IOException
parent
- parent component for created itemasc
- sort directionjava.io.IOException
protected void buildGroupMenuItem(javax.faces.component.UIComponent parent) throws java.io.IOException
parent
- parent component for created itemjava.io.IOException
protected 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.IOException
public org.ajax4jsf.javascript.JSFunctionDefinition createShowMenuEventFunction()
TableMenuRenderer
createShowMenuEventFunction
in class TableMenuRenderer
Copyright © 2014. All Rights Reserved.