|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.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 PropertiesTableModel
PropertiesTableModel
public int getRowCount()
getRowCount
in interface TableModel
public int getColumnCount()
getColumnCount
in interface TableModel
public abstract Object getValueAt(int row, int column)
getValueAt
in interface TableModel
public String getColumnName(int col)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public boolean isCellEditable(int row, int col)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public void rowDeleted(int row)
PropertiesTableModel
rowDeleted
in interface PropertiesTableModel
row
- The row's index.PropertiesTableModel
public void refresh()
PropertiesTableModel
refresh
in interface PropertiesTableModel
PropertiesTableModel
public void rowInserted()
PropertiesTableModel
rowInserted
in interface PropertiesTableModel
PropertiesTableModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |