Class DataTableBuilder
- java.lang.Object
-
- org.openl.rules.table.xls.builder.TableBuilder
-
- org.openl.rules.table.xls.builder.DataTableBuilder
-
public class DataTableBuilder extends TableBuilder
The class is responsible for creating Data tables.- Author:
- NSamatov
-
-
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 DataTableBuilder(XlsSheetGridModel gridModel)Creates new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwriteFieldNames(List<? extends DataTableField> fields)Write a field's description for a given data table (field technical and business names and their foreign keys).voidwriteFieldValues(Map<String,String> fieldValues, ICellStyle cellStyle)Write a field valuesvoidwriteHeader(String typeName, String variableName)Write a header of a data tablevoidwriteHeader(String typeName, String variableName, ICellStyle style)Write a header of a data table-
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, writeHeader, writeProperties
-
-
-
-
Field Detail
-
MIN_WIDTH
public static final int MIN_WIDTH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DataTableBuilder
public DataTableBuilder(XlsSheetGridModel gridModel)
Creates new instance.- Parameters:
gridModel- represents interface for operations with excel sheets
-
-
Method Detail
-
writeHeader
public void writeHeader(String typeName, String variableName, ICellStyle style)
Write a header of a data table- Parameters:
typeName- type namevariableName- technical variable namestyle- cell style (can be null)
-
writeHeader
public void writeHeader(String typeName, String variableName)
Write a header of a data table- Parameters:
typeName- type namevariableName- technical variable name
-
writeFieldNames
public void writeFieldNames(List<? extends DataTableField> fields)
Write a field's description for a given data table (field technical and business names and their foreign keys).- Parameters:
fields- a fields list
-
writeFieldValues
public void writeFieldValues(Map<String,String> fieldValues, ICellStyle cellStyle)
Write a field values- Parameters:
fieldValues- a map containing values where a key is fully qualified field namestyle- cell style (can be null)
-
-