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

Variable Index

 o 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.
 o data
We store the data for the table in the dataArray field
 o dataHeader
Names of the columns (headers)
 o dataMethod
Get methods for the headers
 o dataModel
 o dataTable
This class is a panel with a JTable inside.
 o rowCount
Number of rows for the table (ie: number of objects in data

Constructor Index

 o PasiphaeZoomPanel(MIMEDoc[])
Ctor: just pass a not null array of MIMEDoc to build a new PasiphaeZoomPanel

Method Index

 o dataColumnName(int)
Returns the name of the col-th column of the table
 o 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.

Variables

 o dataTable
protected JTable dataTable
This class is a panel with a JTable inside. Here is the JTable and its model

 o dataModel
protected TableModel dataModel
 o data
protected MIMEDoc[] data
We store the data for the table in the dataArray field

 o rowCount
protected int rowCount
Number of rows for the table (ie: number of objects in data

 o 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)

 o dataHeader
protected String[] dataHeader
Names of the columns (headers)

 o dataMethod
protected Method[] dataMethod
Get methods for the headers

Constructors

 o PasiphaeZoomPanel
public PasiphaeZoomPanel(MIMEDoc[] data)
Ctor: just pass a not null array of MIMEDoc to build a new PasiphaeZoomPanel

Methods

 o 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 !

 o 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