public class DecisionTableBuilder extends TableBuilder
| Modifier and Type | Field and Description |
|---|---|
static int |
LOGIC_ELEMENT_HEIGHT
Number of rows that usually are used for table logic element.
|
HEADER_HEIGHT, PROPERTIES_MIN_WIDTH, TABLE_PROPERTIES| Constructor and Description |
|---|
DecisionTableBuilder(XlsSheetGridModel gridModel)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
beginTable(int width,
int height)
Begins writing a table.
|
void |
endTable()
Finishes writing a table.
|
void |
writeElement(String title,
String logic,
String[] parameterNames,
String[] parameterSignatures)
Writes an element, which is an action, a condition or return block.
|
void |
writeHeader(String signature)
Writes decision table header.
|
beginTable, getCurrentRow, getDefaultCellStyle, getDefaultDateCellStyle, getGridModel, getHeight, getTableRegion, getWidth, incCurrentRow, incCurrentRow, save, writeCell, writeCell, writeCell, writeGridTable, writeHeader, writePropertiespublic static final int LOGIC_ELEMENT_HEIGHT
public DecisionTableBuilder(XlsSheetGridModel gridModel)
gridModel - represents interface for operations with excel sheetspublic void beginTable(int width,
int height)
throws CreateTableException
TableBuilderbeginTable in class TableBuilderwidth - table width in cellsheight - table height in cellsCreateTableException - if unable to create tablepublic void endTable()
throws CreateTableException
TableBuilderendTable in class TableBuilderCreateTableException - if an exception occurred when savingpublic void writeElement(String title, String logic, String[] parameterNames, String[] parameterSignatures)
| C2 | |
| located == "in" && statelist.indexOf( di.driver.state) >= 0 | |
| String located | String statelist |
| Located | State |
title is C2, logic is located == "in" &&
statelist.indexOf( di.driver.state) >= 0, parameterNames are Located and State
and finally parameterSignatures are String located and String statelist.
parameterNames and parameterSignatures must be equal and positive.title - element titlelogic - element logicparameterNames - array of element parameter namesparameterSignatures - array of element parameter signaturespublic void writeHeader(String signature)
void hello1(int hour)Rulessignature - method signature for the table.Copyright © 2004–2019 OpenL Tablets. All rights reserved.