Search in sources :

Example 1 with SourceBuilder

use of org.drools.decisiontable.parser.SourceBuilder in project drools-wb by kiegroup.

the class GuidedDecisionTableGeneratorListener method doLabelCell.

private void doLabelCell(final int row, final int column, final String value) {
    final ActionType actionType = getActionForColumn(row, column);
    SourceBuilder sb = actionType.getSourceBuilder();
    if (sb instanceof HasColumnHeadings) {
        ((HasColumnHeadings) sb).setColumnHeader(column, value);
    }
}
Also used : ActionType(org.drools.decisiontable.parser.ActionType) SourceBuilder(org.drools.decisiontable.parser.SourceBuilder) GuidedDecisionTableSourceBuilder(org.drools.workbench.screens.dtablexls.backend.server.conversion.builders.GuidedDecisionTableSourceBuilder) HasColumnHeadings(org.drools.workbench.screens.dtablexls.backend.server.conversion.builders.HasColumnHeadings)

Aggregations

ActionType (org.drools.decisiontable.parser.ActionType)1 SourceBuilder (org.drools.decisiontable.parser.SourceBuilder)1 GuidedDecisionTableSourceBuilder (org.drools.workbench.screens.dtablexls.backend.server.conversion.builders.GuidedDecisionTableSourceBuilder)1 HasColumnHeadings (org.drools.workbench.screens.dtablexls.backend.server.conversion.builders.HasColumnHeadings)1