use of org.drools.workbench.models.guided.dtable.shared.model.DTCellValue52 in project drools-wb by kiegroup.
the class GuidedDecisionTableAgendaGroupBuilder method addCellValue.
@Override
public void addCellValue(final int row, final int column, final String value) {
final DTCellValue52 dcv = new DTCellValue52(value);
this.values.add(dcv);
}
use of org.drools.workbench.models.guided.dtable.shared.model.DTCellValue52 in project drools-wb by kiegroup.
the class GuidedDecisionTableAutoFocusBuilder method populateDecisionTable.
@Override
public void populateDecisionTable(final GuidedDecisionTable52 dtable, final int maxRowCount) {
final AttributeCol52 column = new AttributeCol52();
column.setAttribute(GuidedDecisionTable52.AUTO_FOCUS_ATTR);
dtable.getAttributeCols().add(column);
if (this.values.size() < maxRowCount) {
for (int iRow = this.values.size(); iRow < maxRowCount; iRow++) {
this.values.add(new DTCellValue52(RuleSheetParserUtil.isStringMeaningTrue("")));
}
}
addColumnData(dtable, column);
}
use of org.drools.workbench.models.guided.dtable.shared.model.DTCellValue52 in project drools-wb by kiegroup.
the class GuidedDecisionTableDateEffectiveBuilder method addCellValue.
@Override
public void addCellValue(final int row, final int column, final String value) {
final DTCellValue52 dcv = new DTCellValue52("");
try {
dcv.setStringValue(value);
} catch (IllegalArgumentException iae) {
final String message = "Date-Effective is not a date literal, in cell " + RuleSheetParserUtil.rc2name(row, column);
this.conversionResult.addMessage(message, ConversionMessageType.WARNING);
}
this.values.add(dcv);
}
use of org.drools.workbench.models.guided.dtable.shared.model.DTCellValue52 in project drools-wb by kiegroup.
the class GuidedDecisionTableDateEffectiveBuilder method populateDecisionTable.
@Override
public void populateDecisionTable(final GuidedDecisionTable52 dtable, final int maxRowCount) {
final AttributeCol52 column = new AttributeCol52();
column.setAttribute(GuidedDecisionTable52.DATE_EFFECTIVE_ATTR);
dtable.getAttributeCols().add(column);
if (this.values.size() < maxRowCount) {
for (int iRow = this.values.size(); iRow < maxRowCount; iRow++) {
this.values.add(new DTCellValue52(""));
}
}
addColumnData(dtable, column);
}
use of org.drools.workbench.models.guided.dtable.shared.model.DTCellValue52 in project drools-wb by kiegroup.
the class GuidedDecisionTableDateExpiresBuilder method addCellValue.
@Override
public void addCellValue(final int row, final int column, final String value) {
final DTCellValue52 dcv = new DTCellValue52("");
try {
dcv.setStringValue(value);
} catch (IllegalArgumentException iae) {
final String message = "Date-Expires is not a date literal, in cell " + RuleSheetParserUtil.rc2name(row, column);
this.conversionResult.addMessage(message, ConversionMessageType.WARNING);
}
this.values.add(dcv);
}
Aggregations