public class TableRenderer extends Object
Modifier and Type | Field and Description |
---|---|
static Element |
BEGIN |
protected Map<Integer,com.groiss.filter.Filter> |
colfilters |
static Element |
END |
protected Set<CellValue>[] |
filterarr |
protected List<com.groiss.filter.Filter> |
filters |
protected String[] |
filtertype |
static String |
HIDDEN_COLUMN
A column with this name is not shown in the table
|
static Element |
LEFT |
static Element |
RIGHT |
Constructor and Description |
---|
TableRenderer() |
TableRenderer(Table table) |
Modifier and Type | Method and Description |
---|---|
Component |
buildTable(HttpServletRequest req) |
Page |
buildTablePage(HttpServletRequest req) |
String |
createToolbarActions() |
HTMLPage |
deleteFilter(HttpServletRequest req) |
static String |
filterString(String s)
We use stripped values as keys for column filters: trim, no newlines, no nonbreak-space.
|
void |
init(Table tab) |
void |
initFilter1(MultipartRequest req)
make the parameter modification before the table is initialized
|
void |
initFiltersFromReq(HttpServletRequest req,
List<ColumnDescription> cols,
String tableid)
init the filter from filter in request and in session, the columns must already be known.
|
boolean |
matchFilter(int row,
TableModel tm1)
all filters must match, return true if all match
|
Page |
saveFilter(HttpServletRequest r)
save the column filter
|
HTMLPage |
saveFilterMask(HttpServletRequest req) |
List<Content> |
showPagelist(int start,
int len)
show the links for paging
|
Page |
showTabInFrames(HttpServletRequest req)
show a table with toolbar and close button
|
Page |
showTable(HttpServletRequest req)
main method, called from browser
|
public static final Element BEGIN
public static final Element LEFT
public static final Element RIGHT
public static final Element END
public static final String HIDDEN_COLUMN
protected String[] filtertype
protected List<com.groiss.filter.Filter> filters
public TableRenderer()
public TableRenderer(Table table)
public Component buildTable(HttpServletRequest req)
public Page buildTablePage(HttpServletRequest req)
public Page showTable(HttpServletRequest req) throws Exception
Exception
public void init(Table tab)
public String createToolbarActions()
public static String filterString(String s)
public void initFilter1(MultipartRequest req)
req
- public void initFiltersFromReq(HttpServletRequest req, List<ColumnDescription> cols, String tableid)
public boolean matchFilter(int row, TableModel tm1)
public HTMLPage saveFilterMask(HttpServletRequest req)
public Page saveFilter(HttpServletRequest r) throws Exception
Exception
public HTMLPage deleteFilter(HttpServletRequest req) throws Exception
Exception
public Page showTabInFrames(HttpServletRequest req)
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.