|
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.remote.RemoteOlapModel
public class RemoteOlapModel
RemoteOlapModel is a PivotDataModel that asynchronously retrieves the data values from an OlapDataModel. The data are retrieved from a separate thread than the EDT, which makes pivot table not freeze while data operations occur.
Field Summary | |
---|---|
protected OlapDataModel |
dataModel
the underlying olap data model |
protected RemotePendingValue |
pendingValue
the pending value to use for cells that have not been evaluated yet |
Fields inherited from class com.citra.pivot.AbstractPivotDataModel |
---|
dataListeners |
Constructor Summary | |
---|---|
RemoteOlapModel(OlapDataModel dataModel)
Constructs a RemoteOlapModel. |
Method Summary | |
---|---|
void |
addRemoteListener(RemoteOlapListener x)
Adds a listener that is notified when the remote model starts or stops retrieving data from the underlying olap data model. |
void |
dataChanged(ChangeEvent e)
Notification that the data of a pivot data model has changed. |
void |
edgesChanged(ChangeEvent e)
Notification that the edges (row and/or column header) of a pivot data model have changed. |
protected void |
fireRemoteActionStarted(TreePath[] rowPaths,
TreePath[] columnPaths)
Notifies listeners that have registered for a STARTED event type. |
protected void |
fireRemoteActionStopped(TreePath[] rowPaths,
TreePath[] columnPaths)
Notifies listeners that have registered for a STOPPED event type. |
Class |
getColumnClass(TreePath[] rowPaths,
TreePath[] columnPaths)
Determines the class of the model's cell at the specified row and column paths. |
OlapDataModel |
getOlapDataModel()
Retrieves the underlying olap data model. |
RemotePendingValue |
getPendingValue(TreePath[] rowPaths,
TreePath[] columnPaths)
Determines the pending value used for the data cell specified by the given row and column paths. |
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. |
void |
removeRemoteListener(RemoteOlapListener x)
Removes a listener that is notified when the remote model starts or stops retrieving data from the underlying olap data model. |
void |
setOlapDataModel(OlapDataModel dataModel)
Assigns the olap data model that the remote model will wrap. |
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 OlapDataModel dataModel
protected RemotePendingValue pendingValue
Constructor Detail |
---|
public RemoteOlapModel(OlapDataModel dataModel)
Method Detail |
---|
public void addRemoteListener(RemoteOlapListener x)
x
- the listener to be addedpublic void dataChanged(ChangeEvent e)
dataChanged
in interface PivotDataModelListener
e
- the event that triggers the notificationpublic void edgesChanged(ChangeEvent e)
edgesChanged
in interface PivotDataModelListener
e
- the event that triggers the notificationprotected void fireRemoteActionStarted(TreePath[] rowPaths, TreePath[] columnPaths)
rowPaths
- the paths to the row header that have been retrievedcolumnPaths
- the paths to the column header that have been retrievedprotected void fireRemoteActionStopped(TreePath[] rowPaths, TreePath[] columnPaths)
rowPaths
- the paths to the row header that have been retrievedcolumnPaths
- the paths to the column header that have been retrievedpublic Class getColumnClass(TreePath[] rowPaths, TreePath[] columnPaths)
getColumnClass
in interface PivotDataModel
rowPaths
- the cell's row header pathscolumnPaths
- the cell's column header paths
public RemotePendingValue getPendingValue(TreePath[] rowPaths, TreePath[] columnPaths)
rowPaths
- the paths to the row headercolumnPaths
- the paths to the column header
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 void removeRemoteListener(RemoteOlapListener x)
x
- the listener to be removedpublic OlapDataModel getOlapDataModel()
public void setOlapDataModel(OlapDataModel dataModel)
dataModel
- the underlying olap data model
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |