Home » openjdk-7 » net.sourceforge » jbird » [javadoc | source]
net.sourceforge.jbird
public class: TickQueryTableModel [javadoc | source]
java.lang.Object
   javax.swing.table.AbstractTableModel
      net.sourceforge.jbird.table.ResultSetTableModel
         net.sourceforge.jbird.TickQueryTableModel

All Implemented Interfaces:
    Nullify, TableModel, Serializable

A TableModel class that provides data from a TickQuery. This class extends ResultSetTableModel. It transforms note numbers to class NoteNumber. It also contains and hides from the TableModel interface columns that udentify ticks (trip number, observer number, and species number). These can be obtained by using the getTick method.

This class has strong expections on the ResultSet that is passed to the constructors. The last three fields must be trip number, observer number, and species number, respectively.

Field Summary
protected  int public_ncol     
protected  int trip_col     
protected  int observer_col     
protected  int species_col     
Fields inherited from net.sourceforge.jbird.table.ResultSetTableModel:
columnclasses,  data,  columnnames,  nrows,  ncol,  passfilter,  columnfilters,  date_filter
Fields inherited from javax.swing.table.AbstractTableModel:
listenerList
Constructor:
 public TickQueryTableModel(ResultSet rs) throws SQLException 
    The last three columns must be trip number, observer number and species number, respectively. Columns that contain note numbers must have names that end with "NoteNo".

    Note that this constructor does not close the ResultSet.

 public TickQueryTableModel(ResultSet rs,
    DateFormat dformat) throws SQLException 
    The last three columns must be trip number, observer number and species number, respectively. Columns that contain note numbers must have names that end with "NoteNo".

    Note that this constructor does not close the ResultSet.

Method from net.sourceforge.jbird.TickQueryTableModel Summary:
getColumnCount,   getTick,   loadColumnClass,   modifyCommon,   setColumnFilter
Methods from net.sourceforge.jbird.table.ResultSetTableModel:
common,   getColumnClass,   getColumnCount,   getColumnName,   getRowCount,   getValueAt,   isCellEditable,   loadColumnClass,   loadColumnClasses,   loadColumnFilters,   loadColumnNames,   loadData,   nullify,   setColumnFilter,   setColumnNames
Methods from javax.swing.table.AbstractTableModel:
addTableModelListener,   findColumn,   fireTableCellUpdated,   fireTableChanged,   fireTableDataChanged,   fireTableRowsDeleted,   fireTableRowsInserted,   fireTableRowsUpdated,   fireTableStructureChanged,   getColumnClass,   getColumnName,   getListeners,   getTableModelListeners,   isCellEditable,   removeTableModelListener,   setValueAt
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from net.sourceforge.jbird.TickQueryTableModel Detail:
 public int getColumnCount() 
    Overrides TableModel. Hides the columns that contain trip number, observer number, and species number.
 public final Tick getTick(int row) 
    Ticks returned by this method contain only trip, observer, and species. Counts, and note numbers are not included even if they exist.
 protected final  void loadColumnClass(int idx,
    ResultSetMetaData md) throws SQLException 
    Overrides ResultSetTableModel. Used to set up note numbers.
 protected final  void modifyCommon() 
    Tasks common to all constructors.
 protected final  void setColumnFilter(int idx) 
    Overrides ResultSetTableModel. Used to set up note numbers.