net.sourceforge.toscanaj.dbviewer
Class InfoDatabaseViewer
java.lang.Object
net.sourceforge.toscanaj.dbviewer.PagingDatabaseViewer
net.sourceforge.toscanaj.dbviewer.InfoDatabaseViewer
- All Implemented Interfaces:
- DatabaseViewer
- public class InfoDatabaseViewer
- extends PagingDatabaseViewer
Shows additional information coming from the database or external files.
This database viewer queries the database for additional information in form
of either plain text or HTML. This extra information can be either stored
directly in the database or it can be accessed using URLs found in the database.
A definition for this viewer looks like this:
This example will query the information of the column "extraInfo" for the
given object and render it as HTML. If multiple objects are given paging
controls will be used.
Another definition can look like this:
Here the information is an external text file, which will be loaded into the
viewer. The viewer takes either a "contentColumn" parameter, which means the
information is in the database itself, or a "urlColumn" parameter, in which case
the information is loaded from an external source. This can be relative to the
CSX file the view is defined in.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InfoDatabaseViewer
public InfoDatabaseViewer()
createPanel
protected PagingDatabaseViewer.PageViewPanel createPanel()
throws DatabaseViewerException
- Specified by:
createPanel
in class PagingDatabaseViewer
- Throws:
DatabaseViewerException
The ToscanaJ project