Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot
Class AbstractPivotDataModel

java.lang.Object
  extended by com.citra.pivot.AbstractPivotDataModel
All Implemented Interfaces:
PivotDataModel
Direct Known Subclasses:
DefaultPivotDataModel, OlapDataModel, RemoteOlapModel

public abstract class AbstractPivotDataModel
extends Object
implements PivotDataModel

AbstractPivotDataModel is an abstract subclass of PivotDataModel that has methods for adding, removing and notifying pivot data model listeners.


Field Summary
protected  EventListenerList dataListeners
          a list of PivotDataModelListeners
 
Constructor Summary
AbstractPivotDataModel()
          Constructs an AbstractPivotDataModel.
 
Method Summary
 void addDataModelListener(PivotDataModelListener x)
          Adds a listener that is notified when the data of the model has changed.
protected  void fireDataChanged()
          Notifies listeners that the data of the pivot model have changed.
protected  void fireEdgesChanged()
          Notifies listeners that the row and/or column headers of the model have changed.
 void removeDataModelListener(PivotDataModelListener x)
          Removes a listener that is notified when the data of the model has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.citra.pivot.PivotDataModel
getColumnClass, getPivotColumnAdapter, getPivotRowAdapter, getValueAt
 

Field Detail

dataListeners

protected EventListenerList dataListeners
a list of PivotDataModelListeners

Constructor Detail

AbstractPivotDataModel

public AbstractPivotDataModel()
Constructs an AbstractPivotDataModel.

Method Detail

addDataModelListener

public void addDataModelListener(PivotDataModelListener x)
Adds a listener that is notified when the data of the model has changed.

Specified by:
addDataModelListener in interface PivotDataModel
Parameters:
x - the listener to be added

fireDataChanged

protected void fireDataChanged()
Notifies listeners that the data of the pivot model have changed.


fireEdgesChanged

protected void fireEdgesChanged()
Notifies listeners that the row and/or column headers of the model have changed.


removeDataModelListener

public void removeDataModelListener(PivotDataModelListener x)
Removes a listener that is notified when the data of the model has changed.

Specified by:
removeDataModelListener in interface PivotDataModel
Parameters:
x - the listener to be removed

Copyright © 2011 Citra Technologies. All Rights Reserved.