|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
org.opensourcephysics.tools.ArrayTableModel
A table model for an ArrayTable.
| Field Summary |
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Constructor Summary | |
ArrayTableModel(boolean[] array)
|
|
ArrayTableModel(boolean[][] array)
|
|
ArrayTableModel(double[] array)
|
|
ArrayTableModel(double[][] array)
|
|
ArrayTableModel(int[] array)
|
|
ArrayTableModel(int[][] array)
|
|
ArrayTableModel(java.lang.String[] array)
|
|
ArrayTableModel(java.lang.String[][] array)
|
|
| 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 |
setEditable(boolean 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 ArrayTableModel(int[] array)
public ArrayTableModel(int[][] array)
public ArrayTableModel(double[] array)
public ArrayTableModel(double[][] array)
public ArrayTableModel(java.lang.String[] array)
public ArrayTableModel(java.lang.String[][] array)
public ArrayTableModel(boolean[] array)
public ArrayTableModel(boolean[][] array)
| Method Detail |
public void setEditable(boolean editable)
public int getColumnCount()
public java.lang.String getColumnName(int column)
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)
row - the row indexcol - the column index
public void setValueAt(java.lang.Object value,
int row,
int col)
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 | |||||||||