|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
org.pentaho.reporting.engine.classic.core.modules.misc.tablemodel.CSVTableModel
public class CSVTableModel
TableModel used by the CSVTableModelProducer class. It has a feature which generates the
column name if it is not know.
this.getColumnName(),
Serialized Form| Constructor Summary | |
|---|---|
CSVTableModel()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CSVTableModel()
| Method Detail |
|---|
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 index
public void setMaxColumnCount(int maxColumnCount)
maxColumnCount - public int getMaxColumnCount()
public String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelcolumn - column index
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||