|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel org.opensourcephysics.controls.XMLTableModel
public class XMLTableModel
A table model for an XMLTable.
Field Summary |
---|
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
XMLTableModel(XMLControl control)
Constructor. |
Method Summary | |
---|---|
int |
getColumnCount()
Gets the number of columns. |
java.lang.String |
getColumnName(int column)
Gets the name of the specified column. |
int |
getRowCount()
Gets the number of rows. |
java.lang.Object |
getValueAt(int row,
int column)
Gets the value at the given cell. |
boolean |
isCellEditable(int row,
int col)
Determines whether the given cell is editable. |
void |
setValueAt(java.lang.Object value,
int row,
int col)
Sets the value at the given cell. |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLTableModel(XMLControl control)
control
- an xml controlMethod Detail |
---|
public int getColumnCount()
public java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
column
- the column index
public int getRowCount()
public java.lang.Object getValueAt(int row, int column)
row
- the row indexcolumn
- the column index
public boolean isCellEditable(int row, int col)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
row
- the row indexcol
- the column index
public void setValueAt(java.lang.Object value, int row, int col)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
value
- the valuerow
- the row indexcol
- the column index
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |