public class CSVTableModel extends AbstractTableModel
TableModel
used by the CSVTableModelProducer
class. It has a feature which generates the
column name if it is not know.this.getColumnName()
,
Serialized FormlistenerList
Constructor and Description |
---|
CSVTableModel() |
Modifier and Type | Method and Description |
---|---|
int |
getColumnCount()
Counts columns of this
TableModel . |
String |
getColumnName(int column)
Return the column name at a specified position.
|
String[] |
getColumnNames() |
Object[][] |
getData() |
int |
getMaxColumnCount() |
int |
getRowCount()
Counts rows of this
TableModel . |
Object |
getValueAt(int rowIndex,
int columnIndex)
Gets the Object at specified row and column positions.
|
void |
setColumnNames(String[] columnNames) |
void |
setData(Object[][] data) |
void |
setMaxColumnCount(int maxColumnCount)
Sets the maximum column count if it is bigger than the current one.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public Object[][] getData()
public void setData(Object[][] data)
public String[] getColumnNames()
public void setColumnNames(String[] columnNames)
public int getColumnCount()
TableModel
.public int getRowCount()
TableModel
.public Object getValueAt(int rowIndex, int columnIndex)
rowIndex
- row indexcolumnIndex
- column indexpublic void setMaxColumnCount(int maxColumnCount)
maxColumnCount
- public int getMaxColumnCount()
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
column
- column indexCopyright © 2017 Hitachi Vantara. All rights reserved.