All Packages Class Hierarchy This Package Previous Next Index
Class Pasiphae.PasiphaeZoomPanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.JPanel
|
+----Pasiphae.PasiphaeZoomPanel
- public class PasiphaeZoomPanel
- extends JPanel
columnCount- Number of columns for the table (ie: number of different fields of objects in the data array)
Two cases:
[1] If data has objects belonging to the same class, we count the number of fields of this class.
data- We store the data for the table in the dataArray field
dataHeader- Names of the columns (headers)
dataMethod- Get methods for the headers
dataModel-
dataTable- This class is a panel with a JTable inside.
rowCount- Number of rows for the table (ie: number of objects in data
PasiphaeZoomPanel(MIMEDoc[])
- Ctor: just pass a not null array of MIMEDoc to build a new PasiphaeZoomPanel
dataColumnName(int)
- Returns the name of the col-th column of the table
dataValueAt(int, int)
- Gives the data located at the row-th row and col-th col in the table
Catch the IllegalAccessException, IllegalArgumentException, InvocationTargetException,
but only print the stackTrace.
dataTable
protected JTable dataTable
- This class is a panel with a JTable inside. Here is the JTable and its model
dataModel
protected TableModel dataModel
data
protected MIMEDoc[] data
- We store the data for the table in the dataArray field
rowCount
protected int rowCount
- Number of rows for the table (ie: number of objects in data
columnCount
protected int columnCount
- Number of columns for the table (ie: number of different fields of objects in the data array)
Two cases:
[1] If data has objects belonging to the same class, we count the number of fields of this class.
[2] If data has objects of different classes, we count only the common fields of all classes.
(that is: either the fields# of the super class, (ie: TextDoc, AudioDoc, ImageDoc...)
or the fields# of the super-super class (ie: MIMEDoc)
dataHeader
protected String[] dataHeader
- Names of the columns (headers)
dataMethod
protected Method[] dataMethod
- Get methods for the headers
PasiphaeZoomPanel
public PasiphaeZoomPanel(MIMEDoc[] data)
- Ctor: just pass a not null array of MIMEDoc to build a new PasiphaeZoomPanel
dataValueAt
public final Object dataValueAt(int row,
int col)
- Gives the data located at the row-th row and col-th col in the table
Catch the IllegalAccessException, IllegalArgumentException, InvocationTargetException,
but only print the stackTrace.
Note that the method is completely independant of the MIMEDoc classes and subclasses !
dataColumnName
public final String dataColumnName(int col)
- Returns the name of the col-th column of the table
All Packages Class Hierarchy This Package Previous Next Index