JIDE 3.5.15

com.jidesoft.pivot
Class AggregateTableModel.AggregateTablePivotDataModel

java.lang.Object
  extended by com.jidesoft.pivot.PivotDataModel
      extended by com.jidesoft.pivot.AggregateTableModel.AggregateTablePivotDataModel
All Implemented Interfaces:
IPivotDataModel, PivotConstants, PivotValueProvider
Enclosing class:
AggregateTableModel

protected class AggregateTableModel.AggregateTablePivotDataModel
extends PivotDataModel

The PivotDataModel for AggregateTable to use.

Since:
3.3.0

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jidesoft.pivot.PivotDataModel
PivotDataModel.RowMerger
 
Field Summary
 
Fields inherited from class com.jidesoft.pivot.PivotDataModel
_dataSource, listenerList, PROPERTY_HIDE_REDUNDANT_SUBTOTAL, PROPERTY_HIDE_SINGLE_DATA_FIELD, PROPERTY_SHOW_GRAND_TOTAL_FOR_COLUMN, PROPERTY_SHOW_GRAND_TOTAL_FOR_ROW, PROPERTY_SHOW_SUBTOTAL_AS_CHILD
 
Fields inherited from interface com.jidesoft.pivot.PivotConstants
AREA_COLUMN, AREA_DATA, AREA_FILTER, AREA_NAMES, AREA_NOT_ASSIGNED, AREA_ROW, COMPARE_TO_NEXT, COMPARE_TO_PREVIOUS, HEADER_SELECTION_DATA_TABLE_ONLY, HEADER_SELECTION_HEADER_TABLE_ONLY, RANGE_IN_TOTAL, RUNNING_SUMMARY_DIFFERENCE, RUNNING_SUMMARY_PERCENTAGE_FROM, RUNNING_SUMMARY_PERCENTAGE_OF, RUNNING_SUMMARY_PERCENTAGE_TOTAL, RUNNING_SUMMARY_TOTAL, STATISTICS_CALCULATION_DEFAULT, STATISTICS_CALCULATION_RUNNING, STATISTICS_CALCULATION_RUNNING_IN_COLUMN, STATISTICS_CALCULATION_RUNNING_LEAF, SUBTOTAL_AUTOMATIC, SUBTOTAL_CUSTOM, SUBTOTAL_NONE, SUMMARY_COUNT, SUMMARY_CUSTOM, SUMMARY_MAX, SUMMARY_MEAN, SUMMARY_MIN, SUMMARY_NAMES, SUMMARY_NONE, SUMMARY_RESERVED_MAX, SUMMARY_STDDEV, SUMMARY_SUM, SUMMARY_VAR
 
Constructor Summary
AggregateTableModel.AggregateTablePivotDataModel(TableModel tableModel)
           
 
Method Summary
 void calculate()
          Calculates the pivot data.
 void initialize()
          Initializes the PivotDataModel.
 boolean isHideExpandIconOnSingleRow()
          Get the flag indicating if the expand/collapse icon will be hidden if there is only one row as its child.
 void setOriginalTableModel(TableModel tableModel)
          Sets the original table model.
protected  boolean tableRowsDeleted(int firstRow, int lastRow)
           
protected  boolean tableRowsInserted(int firstRow, int lastRow)
           
 
Methods inherited from class com.jidesoft.pivot.PivotDataModel
addHiddenColumn, addHiddenColumn, addHiddenValues, addPivotValueProviderListener, addPrefixRowIndex, addPropertyChangeListener, addRowIndex, calculateStatistics, calculateStatistics, clearHiddenColumns, clearHiddenValues, collectValuesForCell, collectValuesForCell, createColumnHeaderTableModel, createDataTableModel, createDefaultPivotDataSource, createPivotDataCube, createPivotField, createRowHeaderTableModel, firePivotValueProviderChanged, firePivotValueProviderChanged, firePropertyChange, forceCalculate, getCellStyleProvider, getColumnAt, getColumnFieldIndices, getColumnFields, getColumnHeaderColumnIndexAt, getColumnHeaderEditingProvider, getColumnHeaderTableModel, getColumnKeys, getCompoundKeyAt, getCornerTableModel, getDataAt, getDataAt, getDataEditingProvider, getDataFieldIndices, getDataFields, getDataSource, getDataTableModel, getField, getField, getFieldIndices, getFields, getFilterFieldIndices, getFilterFields, getHiddenColumns, getHiddenValues, getPivotValueProviderListeners, getPossibleValues, getPossibleValues, getPossibleValues, getRowAt, getRowFieldIndices, getRowFields, getRowHeaderEditingProvider, getRowHeaderRowIndexAt, getRowHeaderTableModel, getRowKeys, getRowMerger, getStatisticsType, getSummaryCalculator, getSummaryCalculatorFactory, getTableModel, getUnassignedFieldIndices, getUnassignedFields, getValueAt, handleFieldPropertyEvent, hasHiddenColumns, hasHiddenValues, invalidateColumnHeaderTableModel, invalidateCornerTableModel, invalidateDataTableModel, invalidateRowHeaderTableModel, isAdjusting, isAggregateMode, isAllowEmptyColumnHeader, isAllowEmptyRowHeader, isAlwaysColumnDataFields, isAlwaysRowDataFields, isAutoSortKeys, isAutoUpdate, isCalculated, isCalculating, isColumnDataFields, isColumnVisible, isComputeAffectedCellOnUpdate, isDisplayGrandTotalFirst, isDisplayGrandTotalFirstForColumn, isDisplayGrandTotalFirstForRow, isExpandByDefault, isHideRedundantSubtotal, isHideSingleDataField, isHideSummaryValues, isHighPerformanceMode, isKeepRowChildrenOnSummaryFilter, isLayoutDataFieldsFirst, isRowDataFields, isShowGrandTotalForColumn, isShowGrandTotalForRow, isShowSubtotalAsChild, isSingleValueMode, isSummaryLayer, isSummaryMode, isUseComparable, isValueImmutable, isValuesVisible, manageCompoundKeys, removeColumnKey, removeHiddenColumn, removeHiddenValues, removePivotValueProviderListener, removePropertyChangeListener, removeRowKey, resetDataFields, setAdjusting, setAllowEmptyColumnHeader, setAllowEmptyRowHeader, setAlwaysColumnDataFields, setAlwaysRowDataFields, setAutoSortKeys, setAutoUpdate, setCellStyleProvider, setColumnHeaderEditingProvider, setComputeAffectedCellOnUpdate, setDataEditingProvider, setDataSource, setDisplayGrandTotalFirst, setDisplayGrandTotalFirstForColumn, setDisplayGrandTotalFirstForRow, setExpandByDefault, setHideExpandIconOnSingleRow, setHideRedundantSubtotal, setHideSingleDataField, setHideSummaryValues, setHighPerformanceMode, setKeepRowChildrenOnSummaryFilter, setLayoutDataFieldsFirst, setPivotFields, setRowHeaderEditingProvider, setRowMerger, setShowGrandTotalForColumn, setShowGrandTotalForRow, setShowSubtotalAsChild, setSingleValueMode, setSummaryCalculator, setSummaryCalculatorFactory, setSummaryLayer, setSummaryMode, setUseComparable, setValueImmutable, shouldCalculateSummary, sortCompoundKeys, tableCellsUpdated, tableRowsUpdated, updateFields, updateFilters, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregateTableModel.AggregateTablePivotDataModel

public AggregateTableModel.AggregateTablePivotDataModel(TableModel tableModel)
Method Detail

tableRowsInserted

protected boolean tableRowsInserted(int firstRow,
                                    int lastRow)
Overrides:
tableRowsInserted in class PivotDataModel

tableRowsDeleted

protected boolean tableRowsDeleted(int firstRow,
                                   int lastRow)
Overrides:
tableRowsDeleted in class PivotDataModel

initialize

public void initialize()
Description copied from class: PivotDataModel
Initializes the PivotDataModel. Whenever your original table model structured changed (column added, removed or changed), you need to call this method then PivotDataModel.calculate(). If only the data is changed, just PivotDataModel.calculate() is enough.

Specified by:
initialize in interface IPivotDataModel
Overrides:
initialize in class PivotDataModel

calculate

public void calculate()
Description copied from class: PivotDataModel
Calculates the pivot data. Whenever you are done updating PivotField settings or the data in the original table model is changed, you should call this method to use the new settings or new data. If you call this method after the PivotDataModel has been set on PivotTablePane, you also need to call PivotTablePane.fieldsUpdated() method in order for the change to take effect.

Specified by:
calculate in interface IPivotDataModel
Overrides:
calculate in class PivotDataModel

setOriginalTableModel

public void setOriginalTableModel(TableModel tableModel)
Description copied from class: PivotDataModel
Sets the original table model.

Overrides:
setOriginalTableModel in class PivotDataModel
Parameters:
tableModel - the new original table model.

isHideExpandIconOnSingleRow

public boolean isHideExpandIconOnSingleRow()
Description copied from class: PivotDataModel
Get the flag indicating if the expand/collapse icon will be hidden if there is only one row as its child.

Overrides:
isHideExpandIconOnSingleRow in class PivotDataModel
Returns:
true if the icon would be hidden. Otherwise false.
See Also:
PivotDataModel.setHideExpandIconOnSingleRow(boolean)

JIDE 3.5.15