Interface OutputColumnManager
public interface OutputColumnManager
Defines the manager for output columns of a custom step.
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onValue
(String outputColumnName, BiFunction<Long, OutputCellBuilder, OutputCell> evaluator) Generates the value and set theCustomValueStyle
of a output cell.void
onValue
(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.OutputColumnBuilder
evaluator
- the function to be executed to generate the cell value
-
onValue
Generates the value and set theCustomValueStyle
of 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.OutputColumnBuilder
evaluator
- the function to be executed to generate the cell value and set the cell style
-