|
||||||||||
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.referencedoc.ObjectReferenceTableModel
public class ObjectReferenceTableModel
A table model for the objects referenced by the class factories.
Constructor Summary | |
---|---|
ObjectReferenceTableModel(ClassFactoryCollector cf)
Creates a new table model for a set of class factories. |
Method Summary | |
---|---|
Class |
getColumnClass(int columnIndex)
Returns String.class regardless of columnIndex . |
int |
getColumnCount()
Returns the number of columns in the model. |
String |
getColumnName(int column)
Returns the column name. |
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 . |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectReferenceTableModel(ClassFactoryCollector cf)
cf
- the class factories.Method Detail |
---|
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)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
column
- the column being queried
column
public Class getColumnClass(int columnIndex)
String.class
regardless of columnIndex
.
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
columnIndex
- the column being queried
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 queried
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |