public class PowerTableModel extends DefaultTableModel
columnIdentifiers, dataVector
listenerList
Constructor and Description |
---|
PowerTableModel() |
PowerTableModel(String[] headers,
Class<?>[] classes) |
Modifier and Type | Method and Description |
---|---|
void |
addNewColumn(String colName,
Class<?> colClass) |
void |
addNewRow() |
void |
addRow(Object[] data) |
void |
clearData() |
Class<?> |
getColumnClass(int column) |
int |
getColumnCount()
Required by table model interface.
|
List<?> |
getColumnData(String colName) |
String |
getColumnName(int column)
Required by table model interface.
|
Data |
getData() |
int |
getRowCount()
Required by table model interface.
|
Object[] |
getRowData(int row) |
Object |
getValueAt(int row,
int column)
Required by table model interface.
|
boolean |
isCellEditable(int row,
int column) |
void |
moveRow(int start,
int end,
int to) |
void |
removeColumn(int col) |
void |
removeRow(int row) |
void |
setColumnData(int col,
List<?> data) |
void |
setRowValues(int row,
Object[] values) |
void |
setValueAt(Object value,
int row,
int column)
Sets the ValueAt attribute of the Arguments object.
|
addColumn, addColumn, addColumn, addRow, convertToVector, convertToVector, getDataVector, insertRow, insertRow, newDataAvailable, newRowsAdded, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public void setRowValues(int row, Object[] values)
public Data getData()
public void removeRow(int row)
removeRow
in class DefaultTableModel
public void removeColumn(int col)
public void setColumnData(int col, List<?> data)
public void clearData()
public void addRow(Object[] data)
addRow
in class DefaultTableModel
public void moveRow(int start, int end, int to)
moveRow
in class DefaultTableModel
public void addNewRow()
public Object[] getRowData(int row)
public int getRowCount()
getRowCount
in interface TableModel
getRowCount
in class DefaultTableModel
public int getColumnCount()
getColumnCount
in interface TableModel
getColumnCount
in class DefaultTableModel
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class DefaultTableModel
public boolean isCellEditable(int row, int column)
isCellEditable
in interface TableModel
isCellEditable
in class DefaultTableModel
public Class<?> getColumnClass(int column)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public Object getValueAt(int row, int column)
getValueAt
in interface TableModel
getValueAt
in class DefaultTableModel
public void setValueAt(Object value, int row, int column)
setValueAt
in interface TableModel
setValueAt
in class DefaultTableModel
value
- the new ValueAt valueCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.