Class IndexedMetaTableModel
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.cache.IndexedTableModel
-
- org.pentaho.reporting.engine.classic.core.cache.IndexedMetaTableModel
-
- All Implemented Interfaces:
TableModel
,MetaTableModel
,CloseableTableModel
public class IndexedMetaTableModel extends IndexedTableModel implements MetaTableModel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.pentaho.reporting.engine.classic.core.cache.IndexedTableModel
IndexedTableModel.ColumnIndexDataAttributes
-
-
Constructor Summary
Constructors Constructor Description IndexedMetaTableModel(MetaTableModel backend)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataAttributes
getCellDataAttributes(int row, int column)
Returns the meta-attribute as Java-Object.DataAttributes
getColumnAttributes(int column)
Returns the column-level attributes for the given column.DataAttributes
getTableAttributes()
Returns table-wide attributes.boolean
isCellDataAttributesSupported()
Checks, whether cell-data attributes are supported by this tablemodel implementation.-
Methods inherited from class org.pentaho.reporting.engine.classic.core.cache.IndexedTableModel
addTableModelListener, close, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, indexToColumn, isCellEditable, removeTableModelListener, setValueAt, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
-
-
-
-
Constructor Detail
-
IndexedMetaTableModel
public IndexedMetaTableModel(MetaTableModel backend)
-
-
Method Detail
-
getCellDataAttributes
public DataAttributes getCellDataAttributes(int row, int column)
Description copied from class:IndexedTableModel
Returns the meta-attribute as Java-Object. The object type that is expected by the caller is defined in the TableMetaData property set. It is the responsibility of the implementor to map the native meta-data model into a model suitable for reporting. Be aware that cell-level attributes do not make it into the designtime dataschema, as this dataschema only looks at the structural metadata available and does not contain any data references.- Specified by:
getCellDataAttributes
in interfaceMetaTableModel
- Overrides:
getCellDataAttributes
in classIndexedTableModel
- Parameters:
row
- the row of the cell for which the meta-data is queried.column
- the index of the column for which the meta-data is queried.- Returns:
- the meta-data object.
-
isCellDataAttributesSupported
public boolean isCellDataAttributesSupported()
Description copied from class:IndexedTableModel
Checks, whether cell-data attributes are supported by this tablemodel implementation.- Specified by:
isCellDataAttributesSupported
in interfaceMetaTableModel
- Overrides:
isCellDataAttributesSupported
in classIndexedTableModel
- Returns:
- true, if the model supports cell-level attributes, false otherwise.
-
getColumnAttributes
public DataAttributes getColumnAttributes(int column)
Description copied from class:IndexedTableModel
Returns the column-level attributes for the given column.- Specified by:
getColumnAttributes
in interfaceMetaTableModel
- Overrides:
getColumnAttributes
in classIndexedTableModel
- Parameters:
column
- the column.- Returns:
- data-attributes, never null.
-
getTableAttributes
public DataAttributes getTableAttributes()
Description copied from class:IndexedTableModel
Returns table-wide attributes. This usually contain hints about the data-source used to query the data as well as hints on the sort-order of the data.- Specified by:
getTableAttributes
in interfaceMetaTableModel
- Overrides:
getTableAttributes
in classIndexedTableModel
- Returns:
- the table-attributes, never null.
-
-