com.groiss.gui.table
Class TableRenderer

java.lang.Object
  extended by com.groiss.gui.table.TableRenderer

public class TableRenderer
extends java.lang.Object

Class which renders tables


Field Summary
static org.jdom.Element BEGIN
           
protected  java.util.Map<java.lang.Integer,com.groiss.gui.table.Filter> colfilters
           
static org.jdom.Element END
           
protected  java.util.List<com.groiss.gui.table.Filter> filters
           
static java.lang.String HIDDEN_COLUMN
          A column with this name is not shown in the table
static org.jdom.Element LEFT
           
static org.jdom.Element RIGHT
           
 
Constructor Summary
TableRenderer()
           
TableRenderer(Table table)
           
 
Method Summary
 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)
           
 Page saveFilter(javax.servlet.http.HttpServletRequest r)
          save the column filter
 HTMLPage saveFilterMask(javax.servlet.http.HttpServletRequest req)
           
 void showMenu(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 java.util.List 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
static java.lang.String translateDates(java.lang.String filter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEGIN

public static final org.jdom.Element BEGIN

LEFT

public static final org.jdom.Element LEFT

RIGHT

public static final org.jdom.Element RIGHT

END

public static final org.jdom.Element END

HIDDEN_COLUMN

public static final java.lang.String HIDDEN_COLUMN
A column with this name is not shown in the table

See Also:
Constant Field Values

filters

protected java.util.List<com.groiss.gui.table.Filter> filters

colfilters

protected java.util.Map<java.lang.Integer,com.groiss.gui.table.Filter> colfilters
Constructor Detail

TableRenderer

public TableRenderer()

TableRenderer

public TableRenderer(Table table)
Method Detail

buildTable

public Component buildTable(javax.servlet.http.HttpServletRequest req)

buildTablePage

public Page buildTablePage(javax.servlet.http.HttpServletRequest req)
                    throws java.lang.Exception
Throws:
java.lang.Exception

showTable

public Page showTable(javax.servlet.http.HttpServletRequest req)
               throws java.lang.Exception
main method, called from browser

Throws:
java.lang.Exception

createToolbarActions

public java.lang.String createToolbarActions()

showPagelist

public java.util.List showPagelist(int start,
                                   int len)
show the links for paging


translateDates

public static java.lang.String translateDates(java.lang.String filter)

saveFilterMask

public HTMLPage saveFilterMask(javax.servlet.http.HttpServletRequest req)
                        throws java.lang.Exception
Throws:
java.lang.Exception

saveFilter

public Page saveFilter(javax.servlet.http.HttpServletRequest r)
                throws java.lang.Exception
save the column filter

Throws:
java.lang.Exception

deleteFilter

public HTMLPage deleteFilter(javax.servlet.http.HttpServletRequest req)
                      throws java.lang.Exception
Throws:
java.lang.Exception

showMenu

public void showMenu(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse res)
              throws java.lang.Exception
Throws:
java.lang.Exception

showTabInFrames

public Page showTabInFrames(javax.servlet.http.HttpServletRequest req)
show a table with toolbar and close button



@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.