The IWP_Table interface contains public methods that specify the appearance
of a table and provide access to the cells
it contains. The public methods are organized into the following
categories:
Return | Function Call | Description |
void | setTableWidth(int width) | sets the table width in pixels |
int | getTableWidth() | returns the table width |
void | setBorderWidth(int width) | sets the border width in pixels |
int | getBorderWidth() | returns the border width |
Return | Function Call | Description |
IWP_Enumerator | enumerateTableCells() | returns an IWP_Enumerator object for the table cells |
IWP_TableCell | findTableCell(String name) | finds the named table cell |
IWP_TableCell | findTableCellByPosition(int row, int col) | finds the table cell at the specified row/column coordinates |
Return | Function Call | Description |
void | setCellSpacing(int) | sets the amount of space between cells |
int | getCellSpacing() | returns the amount of space between cells |
void | setCellPadding(int) | sets the internal margin of the cells |
int | getCellPadding() | returns the internal margin of the cells |
Return | Function Call | Description |
void | setAlignment(String alignment) | sets alignment to specified alignment - left, right or center |
String | getAlignment() | returns the alignment |
Return | Function Call | Description |
boolean | insertRow(int beforeRow) | inserts a row before the specified row |
boolean | deleteRow(int row) | deletes the specified row |
boolean | insertColumn(int beforeColumn) | inserts a column to the left of the specified column |
boolean | deleteColumn(int column) | deletes the specified column |
int | getRowCount() | returns the actual number of rows in the table |
int | getColumnCount() | returns the actual number of columns in the table |
Return | Function Call | Description |
void | setBackgroundColor(Color c) | sets the table's background color |
Color | getBackgroundColor() | returns the table's background color |
void | setBorderColor(Color c) | sets the table's border color |
Color | getBorderColor() | returns the table's border color |
void | setBackgroundImage(String alt) | sets the table's background image |
String | getBackgroundImage() | returns the table's background image |
void | setBackgroundImageTiled(boolean tiled) | sets the table's background image tiled option on/off |
boolean | isBackgroundImageTiled() | returns true if the table's background image is tiled |
Return | Function Call | Description |
String | getName() | returns the table's name |
void | setName(String name) | sets the table's name |