Class DatatypeAliasTableBuilder
- java.lang.Object
-
- org.openl.rules.table.xls.builder.TableBuilder
-
- org.openl.rules.table.xls.builder.DatatypeAliasTableBuilder
-
public class DatatypeAliasTableBuilder extends TableBuilder
The class is responsible for creating Datatype Alias 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 DatatypeAliasTableBuilder(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 aliasType)voidwriteHeader(String tableName, String aliasType, ICellStyle style)voidwriteHeader(String header, ICellStyle style)Writes table header.voidwriteValue(String value)voidwriteValue(String value, 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
-
DatatypeAliasTableBuilder
public DatatypeAliasTableBuilder(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, String aliasType, ICellStyle style)
-
writeHeader
public void writeHeader(String header, ICellStyle style)
Description copied from class:TableBuilderWrites table header.- Overrides:
writeHeaderin classTableBuilder- Parameters:
header- header text for the tablestyle- header style
-
writeValue
public void writeValue(String value, ICellStyle cellStyle)
-
writeValue
public void writeValue(String value)
-
-