org.zkoss.pivot.impl.calc
Interface ContextualCalculator<C extends Context<C>>

All Superinterfaces:
Calculator
All Known Implementing Classes:
AbstractCalculator, StandardCalculator

public interface ContextualCalculator<C extends Context<C>>
extends Calculator

The interface for Calculator that uses Context to compute an aggregation summary.

Author:
simonpai

Method Summary
 ContextType<C> getContextType()
          Get the ContextType.
 java.lang.Number getResult(C context)
          Retrieve the aggregation result from the context.
 
Methods inherited from interface org.zkoss.pivot.Calculator
getLabel, getLabelKey
 

Method Detail

getResult

java.lang.Number getResult(C context)
Retrieve the aggregation result from the context.


getContextType

ContextType<C> getContextType()
Get the ContextType.



Copyright © 2013. All Rights Reserved.