From ba10293273a05ec25829409fe3629ed9c0f49c9b Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Thu, 23 May 2013 16:42:05 -0700 Subject: [PATCH] Added Table reference for removeColumn(), removeRow(), getRow(), and clearRows() --- core/src/processing/data/Table.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/core/src/processing/data/Table.java b/core/src/processing/data/Table.java index 2a7e314cb..bc0d97fe5 100644 --- a/core/src/processing/data/Table.java +++ b/core/src/processing/data/Table.java @@ -1816,6 +1816,7 @@ public class Table { /** * @webref table:method * @brief Removes a row from the table + * @param row ID value of the row to remove */ public void removeRow(int row) { for (int col = 0; col < columns.length; col++) { @@ -2014,6 +2015,7 @@ public class Table { /** * @webref table:method * @brief Gets a row from the table + * @param row ID value of the row to get */ public TableRow getRow(int row) { return new RowPointer(this, row); @@ -2026,7 +2028,7 @@ public class Table { * If you want to iterate in a multi-threaded manner, don't use the iterator. * * @webref table:method - * @brief To come... + * @brief Gets multiple rows from the table */ public Iterable rows() { return new Iterable() { @@ -2916,14 +2918,18 @@ public class Table { /** * @webref table:method - * @brief To come... + * @brief Finds a row that matches given criteria + * @param value the value to match + * @param column ID number of the column to search */ public TableRow findRow(String value, int column) { int row = findRowIndex(value, column); return (row == -1) ? null : new RowPointer(this, row); } - + /** + * @param columnName title the column to search + */ public TableRow findRow(String value, String columnName) { return findRow(value, getColumnIndex(columnName)); }