com.sencha.gxt.widget.core.client.grid
Interface SummaryType<N,O extends java.lang.Number>

Type Parameters:
N - the value type
O - the return type
All Known Implementing Classes:
SummaryType.AvgSummaryType, SummaryType.CountSummaryType, SummaryType.MaxSummaryType, SummaryType.MinSummaryType, SummaryType.SumSummaryType

public interface SummaryType<N,O extends java.lang.Number>

Calculates the value of a summary column.


Nested Class Summary
static class SummaryType.AvgSummaryType<N>
           
static class SummaryType.CountSummaryType<V>
           
static class SummaryType.MaxSummaryType<N>
           
static class SummaryType.MinSummaryType<N>
           
static class SummaryType.SumSummaryType<N>
           
 
Method Summary
<M> O
calculate(java.util.List<? extends M> models, ValueProvider<? super M,N> vp)
          Returns the value for a summary calculation.
 

Method Detail

calculate

<M> O calculate(java.util.List<? extends M> models,
                ValueProvider<? super M,N> vp)
Returns the value for a summary calculation.

Parameters:
models - the list of models
vp - the value provider
Returns:
the summary value


Copyright © 2012. All Rights Reserved.