Working with tables in Java™ classes
To access a table in a rich text item, use the RichTextNavigator methods in conjunction with the type RichTextItem.RTELEM_TYPE_TABLE and RichTextItem.RTELEM_TYPE_TABLECELL. To access the cells in a table, use the RichTextNavigator methods in conjunction with the type RichTextItem.RTELEM_TYPE_TABLECELL. To create a table, use the appendTable method in RichTextItem. After creating a table, you must navigate in the rich text item to access it.
Once you access a table, the NotesRichTextTable class lets you add rows, remove rows, remove the table, and use the following properties:
Property |
Data type |
Description |
---|---|---|
getAlternateColor |
ColorObject |
Alternate color style. Set this property with setAlternateColor. Use with Style. |
getColor |
ColorObject |
Primary color style. Set this property with setColor. Use with Style. |
getColumnCount |
int |
Number of columns in the table. |
isRightToLeft and setRightToLeft |
boolean |
True if the reading order of the table is right to left. |
getRowCount |
int |
Number of rows in the table. |
getRowLabels and setRowLabels |
String vector |
Labels, one per row, that appear in tabbed tables. |
getStyle and setStyle |
int |
Table color style. Use with Color and AlternateColor. |