| java.lang.Object javax.swing.table.AbstractTableModel com.jeta.swingbuilder.gui.components.JETATableModel
All known Subclasses: com.jeta.swingbuilder.gui.components.tabpane.TabsModel, com.jeta.swingbuilder.gui.components.list.ItemsModel,
JETATableModel | public class JETATableModel extends AbstractTableModel (Code) | | This class is the table model for the common tables.
author: Jeff Tassin |
JETATableModel | public JETATableModel()(Code) | | ctor.
Parameters: connection - the underlying database connection Parameters: tableId - the id of the table we are displaying the indices for |
addRow | public void addRow(Object obj)(Code) | | Adds the given trigger object to the table
|
contains | public boolean contains(Object obj)(Code) | | true if the model contains the given object |
getColumnClass | public Class getColumnClass(int column)(Code) | | the type of column at a given index |
getColumnCount | public int getColumnCount()(Code) | | the number of columns in this model |
getColumnName | public String getColumnName(int column)(Code) | | the name of a column at a given index |
getData | public Collection getData()(Code) | | the collection of objects in this model |
getRow | public Object getRow(int row)(Code) | | the object at the given row in the model |
getRowCount | public int getRowCount()(Code) | | the number of rows objects in this model |
getValueAt | public Object getValueAt(int row, int col)(Code) | | the Object at the given row column. Note: you generally overridethis method |
indexOf | public int indexOf(Object obj)(Code) | | the index of the given object if it is contained in this model.-1 is returned if this model does not contain the object. |
insertRow | public void insertRow(Object obj, int row)(Code) | | Inserts the object at the given row in the model.
|
remove | public boolean remove(Object obj)(Code) | | Removes the object at the given row
|
removeAll | public void removeAll()(Code) | | Remove all data items from this model
|
removeRow | public Object removeRow(int row)(Code) | | Removes the object at the given row
|
setColumnNames | public void setColumnNames(String[] names)(Code) | | Sets the names for the columns in this model
|
setColumnTypes | public void setColumnTypes(Class[] types)(Code) | | Sets the types for the columns in this model
|
|
|