Name | Arguments | Description |
addRow add
| anArray
|
Adds elements in anArray as a row. The anArray
can also be a Java array.
|
clear
| |
Clears all the data in this table-data.
|
filter
| filterFunction
|
Returns a new table data with certain rows filtered out by the required
filterFunction.
|
filterByColumn
| column filterFunction
|
Returns a new table data with certain rows filtered out on column column
by the required filterFunction.
|
filterByColumnNotNull
| column
|
Returns a new table data with certain rows filtered out on null columns.
|
filterByColumnNotNull
| index
|
Returns a new table-data that have rows with null column at index removed.
|
filterNotNull
| |
Returns a new table data with null rows filtered out.
|
filterNotNullRows
| |
Returns a new table-data that have null rows removed.
|
getAt
| row column
|
Returns the value at (row, column), or null if
it is out of range.
|
getColumn
| index
|
Returns a Java array java.lang.Object[] for column index.
|
getColumnCount
| |
Returns the number of columns.
|
getColumnIndex
| name
|
Returns the index for the column name, or -1 if not found.
|
getColumnMaxWidths()
| |
Returns an array of each column's maximum string length.
|
getData
| |
Returns the table data in a 2-dimensional array.
|
getRow
| row
|
Returns a row data at row.
|
getTitle
| index
|
Returns the title of column index, which is 0-based.
|
getTitles
| |
Returns a string array of the column titles.
|
lastIndex
| |
Returns the index of the last row, which is size - 1.
|
setAt
| row column value
|
Sets the value to (row, column), where column
can be an index or a column name.
|
setRow
| row rowData
|
Sets the array rowData at row.
|
setTitleAt
| index name
|
Sets the title for column index, which is 0-based.
|
setTitleCaseSensitive
| set
|
Sets the flag indicating the title is case-sensitive or not.
|
setTitles
| titles
|
Sets the titles for the columns.
|
size
| |
Returns the size (number of rows) of this table-data.
|
sort
| comparatorFunction
|
Sort the rows with the required comparatorFunction.
Returns self.
|
sortByColumn
| column comparatorFunction
|
Sort by column. If no column specified, default
to 0. The comparatorFunction is optional.
|
sortByColumnAsDate
| ascending
|
Sort by column as dates. If no column specified,
default to 0. If asending is not specified, by default it is ascending.
|
sortByColumnAsNumber
| ascending
|
Sort by column as numbers. If no column specified,
default to 0. If asending is not specified, by default it is ascending.
|
sortByColumnAsString
| column ascending
|
Sort by column as strings. If no column specified,
default to 0. If asending is not specified, by default it is ascending.
|