Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.cybertivity.powerjournal
Class MultiEntryView.DataModel  view MultiEntryView.DataModel download MultiEntryView.DataModel.java

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended bycom.cybertivity.powerjournal.MultiEntryView.DataModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Enclosing class:
MultiEntryView

class MultiEntryView.DataModel
extends javax.swing.table.AbstractTableModel


Field Summary
static int columnClassTypeIndex
           
static int columnIsResizeableIndex
           
static int columnNameIndex
           
static int columnPreferredWidthIndex
           
private  java.lang.Object[][] columns
           
private  java.util.ArrayList entriesToTabulate
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
MultiEntryView.DataModel(java.util.ArrayList arg)
           
 
Method Summary
 java.lang.Class getColumnClass(int c)
          Returns the Class for all Object instances in the specified column.
 int getColumnCount()
          Returns the number of columns in the model.
 java.lang.String getColumnName(int c)
          Returns the name of the specified column.
 boolean getIsColumnResizable(int col)
           
 int getPreferredColumnWidth(int col)
           
 int getRowCount()
          Returns the number of rows in the model.
 java.lang.Object getValueAt(int row, int col)
          Returns the value (Object) at a particular cell in the table.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entriesToTabulate

private java.util.ArrayList entriesToTabulate

columnNameIndex

public static final int columnNameIndex
See Also:
Constant Field Values

columnPreferredWidthIndex

public static final int columnPreferredWidthIndex
See Also:
Constant Field Values

columnIsResizeableIndex

public static final int columnIsResizeableIndex
See Also:
Constant Field Values

columnClassTypeIndex

public static final int columnClassTypeIndex
See Also:
Constant Field Values

columns

private final java.lang.Object[][] columns
Constructor Detail

MultiEntryView.DataModel

public MultiEntryView.DataModel(java.util.ArrayList arg)
Method Detail

getColumnClass

public java.lang.Class getColumnClass(int c)
Description copied from class: javax.swing.table.AbstractTableModel
Returns the Class for all Object instances in the specified column.


getRowCount

public int getRowCount()
Description copied from interface: javax.swing.table.TableModel
Returns the number of rows in the model.


getColumnName

public java.lang.String getColumnName(int c)
Description copied from class: javax.swing.table.AbstractTableModel
Returns the name of the specified column. This method generates default names in a sequence (starting with column 0): A, B, C, ..., Z, AA, AB, AC, ..., AZ, BA, BB, BC, and so on. Subclasses may override this method to allow column names to be specified on some other basis.


getColumnCount

public int getColumnCount()
Description copied from interface: javax.swing.table.TableModel
Returns the number of columns in the model.


getPreferredColumnWidth

public int getPreferredColumnWidth(int col)

getIsColumnResizable

public boolean getIsColumnResizable(int col)

getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)
Description copied from interface: javax.swing.table.TableModel
Returns the value (Object) at a particular cell in the table.