@API(type=INTERNAL,
src=PUBLIC)
public class TableInfo
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_COLUMNS_COUNT
Default number of columns
|
static int |
DEFAULT_COLUMNS_COUNT_CHOICE_TABLE
Default number of columns for DITA choice table.
|
static int |
DEFAULT_COLUMNS_COUNT_PROPERTIES_TABLE
Default number of columns for Properties table
|
static int |
DEFAULT_ROWS_COUNT
Default number of rows
|
static int |
MAX_COLUMNS_COUNT
Maximum number of columns for CALS and simple tables.
|
static int |
MAX_COLUMNS_COUNT_PROPERTIES_TABLE
Maximum number of columns for CALS and simple tables.
|
static int |
MIN_COLUMNS_COUNT
Minimum number of columns for CALS and simple tables.
|
static int |
MIN_COLUMNS_COUNT_PROPERTIES_TABLE
Minimum number of columns for CALS and simple tables.
|
static int |
TABLE_MODEL_CALS
Constant for CALS table model.
|
static int |
TABLE_MODEL_CUSTOM
Constant for custom table model specific for a document type (proprietary table model).
|
static int |
TABLE_MODEL_DITA_CHOICE
The choice table model for DITA.
|
static int |
TABLE_MODEL_DITA_PROPERTIES
The properties table model for DITA.
|
static int |
TABLE_MODEL_DITA_SIMPLE
The simple table model for DITA.
|
static int |
TABLE_MODEL_HTML
Constant for HTML table model.
|
static int |
TABLE_MODEL_NONE
Constant for no table model.
|
Constructor and Description |
---|
TableInfo(java.util.Map<java.lang.String,java.lang.Object> fieldValues)
Constructs a table info from a map that contains the values of its
fields.
|
TableInfo(java.lang.String title,
int rowsNumber,
int columnsNumber,
boolean generateHeader,
boolean generateFooter,
java.lang.String frame,
int tableModel)
Constructor.
|
TableInfo(java.lang.String title,
int rowsNumber,
int columnsNumber,
boolean generateHeader,
boolean generateFooter,
java.lang.String frame,
int tableModel,
TableCustomizerConstants.ColumnWidthsType columnsWidthsType,
java.lang.String rowsep,
java.lang.String colsep,
java.lang.String align)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlign()
Obtain the value for the alignment attribute.
|
java.lang.String |
getColsep()
Obtain the value for the column separator attribute.
|
int |
getColumnsNumber()
Return the number of columns.
|
TableCustomizerConstants.ColumnWidthsType |
getColumnsWidthsType() |
java.lang.String |
getFrame() |
java.lang.String |
getRowsep()
Obtain the value for the row separator attribute.
|
int |
getRowsNumber()
Return the number of rows.
|
int |
getTableModel() |
java.lang.String |
getTitle()
Returns the title of the table.
|
boolean |
isGenerateFooter() |
boolean |
isGenerateHeader() |
java.lang.String |
toString() |
public static final int TABLE_MODEL_NONE
public static final int TABLE_MODEL_HTML
public static final int TABLE_MODEL_CALS
public static final int TABLE_MODEL_CUSTOM
public static final int TABLE_MODEL_DITA_SIMPLE
public static final int TABLE_MODEL_DITA_CHOICE
public static final int TABLE_MODEL_DITA_PROPERTIES
public static final int DEFAULT_ROWS_COUNT
public static final int DEFAULT_COLUMNS_COUNT_CHOICE_TABLE
public static final int DEFAULT_COLUMNS_COUNT
public static final int DEFAULT_COLUMNS_COUNT_PROPERTIES_TABLE
public static final int MIN_COLUMNS_COUNT
public static final int MIN_COLUMNS_COUNT_PROPERTIES_TABLE
public static final int MAX_COLUMNS_COUNT
public static final int MAX_COLUMNS_COUNT_PROPERTIES_TABLE
public TableInfo(java.lang.String title, int rowsNumber, int columnsNumber, boolean generateHeader, boolean generateFooter, java.lang.String frame, int tableModel)
title
- The table title.rowsNumber
- The number of rows.columnsNumber
- The number of columns.generateHeader
- If true
generate table header.generateFooter
- If true
generate table footer.frame
- Specifies how the table is to be framed.tableModel
- The table model type.
One of the constants:
TABLE_MODEL_CALS
, TABLE_MODEL_CUSTOM
,
TABLE_MODEL_DITA_SIMPLE
, TABLE_MODEL_HTML
,
TABLE_MODEL_DITA_CHOICE
, TABLE_MODEL_DITA_PROPERTIES
.public TableInfo(java.lang.String title, int rowsNumber, int columnsNumber, boolean generateHeader, boolean generateFooter, java.lang.String frame, int tableModel, TableCustomizerConstants.ColumnWidthsType columnsWidthsType, java.lang.String rowsep, java.lang.String colsep, java.lang.String align)
title
- The table title.rowsNumber
- The number of rows.columnsNumber
- The number of columns.generateHeader
- If true
generate table header.generateFooter
- If true
generate table footer.frame
- Specifies how the table is to be framed.tableModel
- The table model type.
One of the constants:
TABLE_MODEL_CALS
, TABLE_MODEL_CUSTOM
,
TABLE_MODEL_DITA_SIMPLE
, TABLE_MODEL_HTML
,
TABLE_MODEL_DITA_CHOICE
, TABLE_MODEL_DITA_PROPERTIES
.columnsWidthsType
- The columns widths type.rowsep
- Specifies the row separator value.colsep
- Specifies the column separator valuealign
- Specifies the alignment for the current table.public TableInfo(java.util.Map<java.lang.String,java.lang.Object> fieldValues)
fieldValues
- The map that contains the values for the operation
fields.public java.lang.String getTitle()
public int getRowsNumber()
public int getColumnsNumber()
public boolean isGenerateHeader()
true
then table header will be generated.public boolean isGenerateFooter()
true
then table footer will be generated.public java.lang.String getFrame()
public java.lang.String getRowsep()
public java.lang.String getColsep()
public java.lang.String getAlign()
public int getTableModel()
TABLE_MODEL_CALS
, TABLE_MODEL_CUSTOM
,
TABLE_MODEL_DITA_SIMPLE
, TABLE_MODEL_HTML
,
TABLE_MODEL_DITA_CHOICE
, TABLE_MODEL_DITA_PROPERTIES
.public TableCustomizerConstants.ColumnWidthsType getColumnsWidthsType()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.