Package com.groiss.gui.table
Class TableRenderer
java.lang.Object
com.groiss.gui.table.TableRenderer
Class which renders tables
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
We use stripped values as keys for column filters: trim, no newlines, no nonbreak-space.void
void
make the parameter modification before the table is initializedvoid
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 matchsave the column filtershowPagelist
(int start, int len) show the links for pagingshow a table with toolbar and close buttonmain method, called from browser
-
Field Details
-
BEGIN
-
LEFT
-
RIGHT
-
END
-
HIDDEN_COLUMN
A column with this name is not shown in the table- See Also:
-
filterarr
-
filtertype
-
filters
-
colfilters
-
-
Constructor Details
-
TableRenderer
public TableRenderer() -
TableRenderer
-
-
Method Details
-
buildTable
-
buildTablePage
-
showTable
main method, called from browser- Throws:
Exception
-
init
-
createToolbarActions
-
showPagelist
show the links for paging -
filterString
We use stripped values as keys for column filters: trim, no newlines, no nonbreak-space. -
initFilter1
make the parameter modification before the table is initialized- Parameters:
req
-
-
initFiltersFromReq
public 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. -
matchFilter
all filters must match, return true if all match -
saveFilterMask
- Parameters:
req
- is ignored
-
saveFilter
save the column filter- Throws:
Exception
-
deleteFilter
-
showTabInFrames
show a table with toolbar and close button
-