public class FieldSelectorTableModel extends AbstractTableModel
Modifier and Type | Field and Description |
---|---|
static ReportFieldNode[] |
EMPTY_NODES |
listenerList
Constructor and Description |
---|
FieldSelectorTableModel() |
Modifier and Type | Method and Description |
---|---|
Class |
getColumnClass(int column) |
int |
getColumnCount()
Returns the number of columns in the model.
|
String |
getColumnName(int column)
Returns a default name for the column using spreadsheet conventions: A, B, C, ...
|
String |
getFieldName(int selectedRow) |
int |
getRowCount()
Returns the number of rows in the model.
|
Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value for the cell at
columnIndex and rowIndex . |
void |
setDataSchema(ReportFieldNode[] columnNames) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public static final ReportFieldNode[] EMPTY_NODES
public void setDataSchema(ReportFieldNode[] columnNames)
public int getRowCount()
JTable
uses this method to determine how many rows it
should display. This method should be quick, as it is called frequently during rendering.getColumnCount()
public int getColumnCount()
JTable
uses this method to determine how many columns it
should create and display by default.getRowCount()
public String getColumnName(int column)
column
cannot be found, returns an empty string.getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
column
- the column being queriedcolumn
public Class getColumnClass(int column)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public Object getValueAt(int rowIndex, int columnIndex)
columnIndex
and rowIndex
.rowIndex
- the row whose value is to be queriedcolumnIndex
- the column whose value is to be queriedpublic String getFieldName(int selectedRow)
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.