public class IntersectionEvaluator
extends java.lang.Object
IntersectionEvaluator is used in the Grid Browser for many
purposes, such as evaluating the intersection's between the row and column
axis.
The most common use case for overriding this class is to be able to select
additional data on the intersections and make them available at a later time
when the grid browser is being rendered. For this purpose, the methods you
have to override are
prepareIntersectionDataEvaluation(EvaluationInput) and
getIntersectionData(EvaluatedData).
| Constructor and Description |
|---|
IntersectionEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getAxisSelects(GridBrowserModel model,
boolean forRowAxis,
boolean forBusinessObjects) |
com.technia.tvc.gridbrowser.model.CellStateEvaluator |
getCellStateEvaluator() |
IntersectionData |
getIntersectionData(EvaluatedData data)
This method returns null by default.
|
java.lang.String[] |
getIntersectionSelectables(GridBrowserModel model) |
boolean |
isIntersection(GridBrowserModel model,
com.technia.tvc.gridbrowser.def.beans.IntersectionInfo ii,
boolean fromRowToColumn,
java.lang.String id,
java.lang.String otherId,
TableData row,
TableData column,
int index) |
void |
prepareIntersectionDataEvaluation(EvaluationInput input)
Subclasses may override this method to add select statements that will be
selected on the intersection's
|
public java.lang.String[] getIntersectionSelectables(GridBrowserModel model)
public java.lang.String[] getAxisSelects(GridBrowserModel model, boolean forRowAxis, boolean forBusinessObjects)
public boolean isIntersection(GridBrowserModel model, com.technia.tvc.gridbrowser.def.beans.IntersectionInfo ii, boolean fromRowToColumn, java.lang.String id, java.lang.String otherId, TableData row, TableData column, int index)
model - The grid browser modelii - fromRowToColumn - True if the check is done from the row to the
columnid - The idotherId - The other idrow - The table data for the rowcolumn - The table data for the columnindex - The index withinpublic void prepareIntersectionDataEvaluation(EvaluationInput input)
input - public IntersectionData getIntersectionData(EvaluatedData data)
Subclasses may override this method together with the
prepareIntersectionDataEvaluation(EvaluationInput) to specify
select statements to be applied on the intersections.
data - The evaluated dataIntersectionDatapublic com.technia.tvc.gridbrowser.model.CellStateEvaluator getCellStateEvaluator()
Copyright ? Technia AB. All Rights Reserved.