|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
com.atomikos.swing.AbstractPropertiesTableModel
public abstract class AbstractPropertiesTableModel
An abstract implementation of a properties table model. Subclasses need to override the getValueAt method.
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
AbstractPropertiesTableModel(Vector data,
String[] columnNames)
Creates a new instance for a given data set and a number of column names. |
|
| Method Summary | |
|---|---|
int |
getColumnCount()
|
String |
getColumnName(int col)
|
protected Vector |
getData()
|
int |
getRowCount()
|
TableModel |
getTableModel()
Gets the Swing table model for this one. |
abstract Object |
getValueAt(int row,
int column)
|
boolean |
isCellEditable(int row,
int col)
|
void |
refresh()
Indicates that one or more rows have changed, and the table view needs an update. |
void |
rowDeleted(int row)
Indicates that a row was deleted. |
void |
rowInserted()
Indicates that a new row has been inserted. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractPropertiesTableModel(Vector data,
String[] columnNames)
data - The data; each element in the vector is a row.columnNames - The column names to use.
The size determines the number of columns.| Method Detail |
|---|
protected Vector getData()
public TableModel getTableModel()
PropertiesTableModel
getTableModel in interface PropertiesTableModelPropertiesTableModelpublic int getRowCount()
getRowCount in interface TableModelpublic int getColumnCount()
getColumnCount in interface TableModel
public abstract Object getValueAt(int row,
int column)
getValueAt in interface TableModelpublic String getColumnName(int col)
getColumnName in interface TableModelgetColumnName in class AbstractTableModel
public boolean isCellEditable(int row,
int col)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic void rowDeleted(int row)
PropertiesTableModel
rowDeleted in interface PropertiesTableModelrow - The row's index.PropertiesTableModelpublic void refresh()
PropertiesTableModel
refresh in interface PropertiesTableModelPropertiesTableModelpublic void rowInserted()
PropertiesTableModel
rowInserted in interface PropertiesTableModelPropertiesTableModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||