Interface OutputColumnManager
public interface OutputColumnManager
Defines the manager for output columns of a custom step.
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidonValue(String outputColumnName, BiFunction<Long, OutputCellBuilder, OutputCell> evaluator) Generates the value and set theCustomValueStyleof a output cell.voidonValue(String outputColumnName, LongFunction<?> evaluator) Generates the value of a output cell.
-
Method Details
-
onValue
Generates the value of a output cell.outputColumnManager.onValue("Column Name", rowIndex -> { String generatedValue = "Row " + (rowIndex + 1); return generatedValue; });- Parameters:
outputColumnName- output column name as defined in theOutputLayoutBuilder.OutputColumnBuilderevaluator- the function to be executed to generate the cell value
-
onValue
Generates the value and set theCustomValueStyleof a output cell.outputColumnManager.onValue("Column Name", (rowIndex, outputCellBuilder) -> { String generatedValue = "Row " + (rowIndex + 1); return outputCellBuilder .withValue(generatedValue) .withStyle(CustomValueStyle.INFO) .build(); });- Parameters:
outputColumnName- output column name as defined in theOutputLayoutBuilder.OutputColumnBuilderevaluator- the function to be executed to generate the cell value and set the cell style
-