public class ArrayTableModel
extends javax.swing.table.AbstractTableModel
| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListenerpublic 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)
public void setEditable(boolean editable)
public int getColumnCount()
public java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcolumn - the column indexpublic int getRowCount()
public java.lang.Object getValueAt(int row,
int column)
row - the row indexcolumn - the column indexpublic boolean isCellEditable(int row,
int col)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelrow - the row indexcol - the column indexpublic void setValueAt(java.lang.Object value,
int row,
int col)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelvalue - the valuerow - the row indexcol - the column index