public class TableFormatter extends Formatter
Modifier and Type | Field and Description |
---|---|
protected static String |
ICON_ORDER_DOWN |
protected static String |
ICON_ORDER_UNKNOWN |
protected static String |
ICON_ORDER_UP |
protected TableHandler |
tableHandler |
Constructor and Description |
---|
TableFormatter() |
Modifier and Type | Method and Description |
---|---|
protected String |
formatCellValue(Table table,
int row,
int column) |
protected String |
formatHtmlCellValue(Table table,
TableColumn tableColumn,
int row,
int column) |
protected String |
getSortIcon(TableColumn column,
int columnIndex) |
protected String |
getSortKeyText(String iconId) |
protected boolean |
isColumnSortable(TableColumn column) |
protected void |
renderTableHeader(TableHandler tableHandler) |
void |
service(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Perform the required logic for this Formatter.
|
protected void |
setColumnAttributes(TableColumn column,
int columnIndex) |
protected void |
setTableAttributes(TableHandler tableHandler) |
afterRendering, formatObject, getDefaultLang, getDriver, getEncoding, getLang, getLocale, getLocaleManager, getLocalizedValue, getPanel, getParameter, getProvider, getSection, getWorkspace, includePage, renderFragment, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeInterpreter, setTag, writeToOut
addPeriodicTask, addPeriodicTask, factoryLookup, getComponentAlias, getComponentDescription, getComponentName, getComponentScope, init, setComponentAlias, shutdown, start, stop
protected TableHandler tableHandler
protected static final String ICON_ORDER_UP
protected static final String ICON_ORDER_DOWN
protected static final String ICON_ORDER_UNKNOWN
public void service(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws FormatterException
Formatter
service
in class Formatter
httpServletRequest
- user requesthttpServletResponse
- response to the userFormatterException
- in case of an unexpected exception.protected void renderTableHeader(TableHandler tableHandler)
protected void setTableAttributes(TableHandler tableHandler)
protected void setColumnAttributes(TableColumn column, int columnIndex)
protected String formatHtmlCellValue(Table table, TableColumn tableColumn, int row, int column)
protected String getSortIcon(TableColumn column, int columnIndex)
protected boolean isColumnSortable(TableColumn column)
Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.