| bordercolor | The color of the borders. | ||||||||||||||||||
| data | The data array, with one or two dimensions. | ||||||||||||||||||
| dx | The current horizontal shift (pixels). | ||||||||||||||||||
| flags |
The flags. They have the following meaning:
|
||||||||||||||||||
| font | The font for the cell text. null for the default font. | ||||||||||||||||||
| headers | The headers. May be null if no headers are desired. If set, there must be one header per column. | ||||||||||||||||||
| listeners | The cell click listeners. | ||||||||||||||||||
| renderers | The array renderers, per column. There must be as many renderes as the maximum number of columns. | ||||||||||||||||||
| rowHeight | The height of all rows. | ||||||||||||||||||
| selColumn | The selected column. | ||||||||||||||||||
| selRow | The selected row. | ||||||||||||||||||
| start | The first row currently shown. | ||||||||||||||||||
| widths | The width of each column. |
| addListener(l) | Add a cell click listener. |
| addRow(row) | Append a row to the data array. |
| computeSizes(shrink=...) | Adapt the dimensions from the data. |
| desiredSize() | Get or compute the desired size. |
| doClick() | Perform a cell (double) click, i.e. notify the listeners. |
| draw() | [Inherited comment] Draw this widget. |
| focusable() | A Table is focusable if it allows selection. |
| getColumnCount() | Get the number of columns this table has. |
| getRowCount() | Get the number of rows this table has. |
| getSelectedRow() | Get the currently selected row of data. |
| handled(event) | [Inherited comment] Handle an ui.cmd() event. |
| insertRow(row, at) | Insert a row into the data array. |
| pointToPos(dx, dy) | Convert screen coordinates to row and column. |
| removeListener(l) | Remove a listener. |
| removeRow(at) | Remove a row from the data. |
| setColumnCount(count) | Set the number of columns this table has. |
| setData(data) | Set the data array. |
| showPos(row=-1, col=-1) | Make sure a given cell is visible. |
Each array element is drawn by a Renderer. Replacing the default renderer by a subclass allows to draw custom table cells.