Class DatatypeTableBuilder
- java.lang.Object
-
- org.openl.rules.table.xls.builder.TableBuilder
-
- org.openl.rules.table.xls.builder.DatatypeTableBuilder
-
public class DatatypeTableBuilder extends TableBuilder
The class is responsible for creating Datatype tables.- Author:
- Andrei Astrouski
-
-
Field Summary
Fields Modifier and Type Field Description static intMIN_WIDTH-
Fields inherited from class org.openl.rules.table.xls.builder.TableBuilder
HEADER_HEIGHT, PROPERTIES_MIN_WIDTH, TABLE_PROPERTIES
-
-
Constructor Summary
Constructors Constructor Description DatatypeTableBuilder(XlsSheetGridModel gridModel)Creates new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginTable(int height)voidwriteHeader(String tableName, String parentType)voidwriteHeader(String tableName, String parentType, ICellStyle style)voidwriteHeader(String tableName, ICellStyle style)Writes table header.voidwriteParameter(String paramType, String paramName)voidwriteParameter(String paramType, String paramName, ICellStyle cellStyle)-
Methods inherited from class org.openl.rules.table.xls.builder.TableBuilder
beginTable, beginTable, endTable, getCurrentRow, getDefaultCellStyle, getDefaultDateCellStyle, getGridModel, getHeight, getTableRegion, getWidth, incCurrentRow, incCurrentRow, save, writeCell, writeCell, writeCell, writeGridTable, writeProperties
-
-
-
-
Field Detail
-
MIN_WIDTH
public static final int MIN_WIDTH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DatatypeTableBuilder
public DatatypeTableBuilder(XlsSheetGridModel gridModel)
Creates new instance.- Parameters:
gridModel- represents interface for operations with excel sheets
-
-
Method Detail
-
beginTable
public void beginTable(int height) throws CreateTableException- Throws:
CreateTableException
-
writeHeader
public void writeHeader(String tableName, ICellStyle style)
Description copied from class:TableBuilderWrites table header.- Overrides:
writeHeaderin classTableBuilder- Parameters:
tableName- header text for the tablestyle- header style
-
writeHeader
public void writeHeader(String tableName, String parentType, ICellStyle style)
-
writeParameter
public void writeParameter(String paramType, String paramName, ICellStyle cellStyle)
-
-