edu.wpi.cs.dsrg.xmldb.xat.component.gui.utils
Class TableMaker

java.lang.Object
  |
  +--edu.wpi.cs.dsrg.xmldb.xat.component.gui.utils.TableMaker

public class TableMaker
extends java.lang.Object

The TableMaker handles making customized tables for specific query objects. It makes the table and places the table in a scrollable pane. Table properties, such as column width and auto-resize mode, are set here. Scroll pane properties, such as the unit of incrememnt, are set here as well.

Author:
Maylene Waltz

Constructor Summary
TableMaker(GUI gui)
          Constructor associates the given gui with this table maker.
 
Method Summary
 javax.swing.JTable getTable()
          Returns this TableMaker's table.
 javax.swing.JScrollPane makeTable(java.lang.Object queryObject)
          Makes the table for the given queryObject and sets table properties such as: column width and auto-resize mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableMaker

public TableMaker(GUI gui)
Constructor associates the given gui with this table maker.

Method Detail

getTable

public javax.swing.JTable getTable()
Returns this TableMaker's table.


makeTable

public javax.swing.JScrollPane makeTable(java.lang.Object queryObject)
Makes the table for the given queryObject and sets table properties such as:

The table is placed inside a customized JScrollPane.

Parameters:
queryObject - the query object that this table is for. For statistics tables this parameter is needed for gathering statistics.
Returns:
the JScrollPane that contains the table.