public class TableRenderer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Element |
BEGIN |
protected java.util.Map<java.lang.Integer,com.groiss.filter.Filter> |
colfilters |
static Element |
END |
protected java.util.Set<CellValue>[] |
filterarr |
protected java.util.List<com.groiss.filter.Filter> |
filters |
protected java.lang.String[] |
filtertype |
static java.lang.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(javax.servlet.http.HttpServletRequest req) |
Page |
buildTablePage(javax.servlet.http.HttpServletRequest req) |
java.lang.String |
createToolbarActions() |
HTMLPage |
deleteFilter(javax.servlet.http.HttpServletRequest req) |
static java.lang.String |
filterString(java.lang.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(javax.servlet.http.HttpServletRequest req,
java.util.List<ColumnDescription> cols,
java.lang.String tableid)
init the filter from filter in request and in session, the columns must already be known.
|
boolean |
matchFilter(int row,
javax.swing.table.TableModel tm1)
all filters must match, return true if all match
|
Page |
saveFilter(javax.servlet.http.HttpServletRequest r)
save the column filter
|
HTMLPage |
saveFilterMask(javax.servlet.http.HttpServletRequest req) |
java.util.List<Content> |
showPagelist(int start,
int len)
show the links for paging
|
Page |
showTabInFrames(javax.servlet.http.HttpServletRequest req)
show a table with toolbar and close button
|
Page |
showTable(javax.servlet.http.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 java.lang.String HIDDEN_COLUMN
protected java.util.Set<CellValue>[] filterarr
protected java.lang.String[] filtertype
protected java.util.List<com.groiss.filter.Filter> filters
protected java.util.Map<java.lang.Integer,com.groiss.filter.Filter> colfilters
public TableRenderer()
public TableRenderer(Table table)
public Component buildTable(javax.servlet.http.HttpServletRequest req)
public Page buildTablePage(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page showTable(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public void init(Table tab)
public java.lang.String createToolbarActions()
public java.util.List<Content> showPagelist(int start, int len)
public static java.lang.String filterString(java.lang.String s)
public void initFilter1(MultipartRequest req)
req
- java.lang.Exception
public void initFiltersFromReq(javax.servlet.http.HttpServletRequest req, java.util.List<ColumnDescription> cols, java.lang.String tableid)
public boolean matchFilter(int row, javax.swing.table.TableModel tm1)
public HTMLPage saveFilterMask(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page saveFilter(javax.servlet.http.HttpServletRequest r) throws java.lang.Exception
java.lang.Exception
public HTMLPage deleteFilter(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page showTabInFrames(javax.servlet.http.HttpServletRequest req)
@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.