|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citra.pivot.AbstractPivotDataModel
com.citra.pivot.olap.OlapDataModel
public class OlapDataModel
OlapDataModel is the default olap data model to use for connecting to olap datasources. The model's row and column headers are returned by the olap provider in use.
Field Summary | |
---|---|
protected OlapColumnAdapter |
olapColumnAdapter
the model's column header |
protected OlapProvider |
olapProvider
the assoicated olap provider |
protected OlapRowAdapter |
olapRowAdapter
the model's row header |
Fields inherited from class com.citra.pivot.AbstractPivotDataModel |
---|
dataListeners |
Constructor Summary | |
---|---|
OlapDataModel(OlapProvider provider)
Constructs an OlapDataModel. |
Method Summary | |
---|---|
Class |
getColumnClass(TreePath[] rowPaths,
TreePath[] columnPaths)
Determines the class of the model's cell at the specified row and column paths. |
OlapProvider |
getOlapProvider()
Retrieves the olap provider on which the data model depends. |
PivotColumnAdapter |
getPivotColumnAdapter()
Retrieves the model's pivot column header. |
PivotRowAdapter |
getPivotRowAdapter()
Retrieves the model's pivot row header. |
Object |
getValueAt(TreePath[] rowPaths,
TreePath[] columnPaths)
Retrieves the value of the data at the specfied row and column paths. |
boolean |
isValueCached(TreePath[] rowPaths,
TreePath[] columnPaths)
Determines whether a value has been retrieved from the underlying datasource. |
void |
pivotEdgesChanged(ChangeEvent e)
Notification that the edges (row and/or column header) of an olap provider have changed. |
void |
pivotFiltersChanged(ChangeEvent e)
Notification that the filter area of an olap provider has changed. |
void |
setEdges(OlapRowAdapter rowAdapter,
OlapColumnAdapter columnAdapter)
Assigns the row and column headers to use as the edges of the pivot table. |
void |
setOlapProvider(OlapProvider provider)
Assigns a new olap provider. |
void |
setPivotColumnAdapter(OlapColumnAdapter adapter)
Assigns the column header to use. |
void |
setPivotRowAdapter(OlapRowAdapter adapter)
Assigns the row header to use. |
Methods inherited from class com.citra.pivot.AbstractPivotDataModel |
---|
addDataModelListener, fireDataChanged, fireEdgesChanged, removeDataModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected OlapRowAdapter olapRowAdapter
protected OlapColumnAdapter olapColumnAdapter
protected OlapProvider olapProvider
Constructor Detail |
---|
public OlapDataModel(OlapProvider provider)
Method Detail |
---|
public Class getColumnClass(TreePath[] rowPaths, TreePath[] columnPaths)
getColumnClass
in interface PivotDataModel
rowPaths
- the cell's row header pathscolumnPaths
- the cell's column header paths
public OlapProvider getOlapProvider()
public PivotColumnAdapter getPivotColumnAdapter()
getPivotColumnAdapter
in interface PivotDataModel
public PivotRowAdapter getPivotRowAdapter()
getPivotRowAdapter
in interface PivotDataModel
public Object getValueAt(TreePath[] rowPaths, TreePath[] columnPaths)
getValueAt
in interface PivotDataModel
rowPaths
- the cell's row header pathscolumnPaths
- the cell's column header paths
public boolean isValueCached(TreePath[] rowPaths, TreePath[] columnPaths)
rowPaths
- the paths of the row headercolumnPaths
- the paths of the column header
public void pivotEdgesChanged(ChangeEvent e)
pivotEdgesChanged
in interface OlapProviderListener
e
- the event that triggers the notificationpublic void pivotFiltersChanged(ChangeEvent e)
pivotFiltersChanged
in interface OlapProviderListener
e
- the event that triggers the notificationpublic void setEdges(OlapRowAdapter rowAdapter, OlapColumnAdapter columnAdapter)
rowAdapter
- the row header to assigncolumnAdapter
- the column header to assignpublic void setOlapProvider(OlapProvider provider)
provider
- the provider to assignpublic void setPivotColumnAdapter(OlapColumnAdapter adapter)
adapter
- the column header to assignpublic void setPivotRowAdapter(OlapRowAdapter adapter)
adapter
- the row header to assign
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |