public abstract class ContextDerivedData extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ContextDerivedData.DerivedCalculator
A way of actually doing the calculations.
|
static class |
ContextDerivedData.DerivedColumn
A column of data derived from the existing data.
|
static class |
ContextDerivedData.DerivedOperation
A way of calculating the column values.
|
| Constructor and Description |
|---|
ContextDerivedData() |
| Modifier and Type | Method and Description |
|---|---|
abstract Column |
columnFor(ContextDerivedData.DerivedColumn derivedColumn,
IResult result,
ContextProvider provider)
Get a column ready to use, based on the derived column
|
abstract ContextDerivedData.DerivedColumn[] |
getDerivedColumns()
Get all the derived columns for the current context (page)
Do not modify the returned array.
|
abstract String |
labelFor(ContextDerivedData.DerivedColumn derivedColumn,
ContextProvider provider)
Get the label for the extra column
|
ContextDerivedData.DerivedColumn |
lookup(ContextDerivedData.DerivedOperation operation)
Find the appropriate column for the requested operation
|
public abstract ContextDerivedData.DerivedColumn[] getDerivedColumns()
public abstract String labelFor(ContextDerivedData.DerivedColumn derivedColumn, ContextProvider provider)
derivedColumn - the extra columnprovider - how the column was generatedpublic abstract Column columnFor(ContextDerivedData.DerivedColumn derivedColumn, IResult result, ContextProvider provider)
derivedColumn - the extra columnresult - the original result to be enhancedprovider - the provider of all the datapublic final ContextDerivedData.DerivedColumn lookup(ContextDerivedData.DerivedOperation operation)
operation - the operation to generate the column values