FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Added Table reference for removeColumn(), removeRow(), getRow(), and … · phlsa/processing@6e4044c · GitHub

Repository navigation

Commit 6e4044c

Browse files
Scott Murray
committed
Added Table reference for removeColumn(), removeRow(), getRow(), and clearRows()
1 parent 593a3a8 commit 6e4044c

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

‎core/src/processing/data/Table.java‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1816,6 +1816,7 @@ public void insertRow(int insert, Object[] columnData) {
18161816
/**
18171817
* @webref table:method
18181818
* @brief Removes a row from the table
1819+
* @param row ID value of the row to remove
18191820
*/
18201821
public void removeRow(int row) {
18211822
for (int col = 0; col < columns.length; col++) {
@@ -2014,6 +2015,7 @@ protected void setRowCol(int row, int col, Object piece) {
20142015
/**
20152016
* @webref table:method
20162017
* @brief Gets a row from the table
2018+
* @param row ID value of the row to get
20172019
*/
20182020
public TableRow getRow(int row) {
20192021
return new RowPointer(this, row);
@@ -2026,7 +2028,7 @@ public TableRow getRow(int row) {
20262028
* If you want to iterate in a multi-threaded manner, don't use the iterator.
20272029
*
20282030
* @webref table:method
2029-
* @brief To come...
2031+
* @brief Gets multiple rows from the table
20302032
*/
20312033
public Iterable<TableRow> rows() {
20322034
return new Iterable<TableRow>() {
@@ -2916,14 +2918,18 @@ public int[] findRowIndices(String value, String columnName) {
29162918

29172919
/**
29182920
* @webref table:method
2919-
* @brief To come...
2921+
* @brief Finds a row that matches given criteria
2922+
* @param value the value to match
2923+
* @param column ID number of the column to search
29202924
*/
29212925
public TableRow findRow(String value, int column) {
29222926
int row = findRowIndex(value, column);
29232927
return (row == -1) ? null : new RowPointer(this, row);
29242928
}
29252929

2926-
2930+
/**
2931+
* @param columnName title the column to search
2932+
*/
29272933
public TableRow findRow(String value, String columnName) {
29282934
return findRow(value, getColumnIndex(columnName));
29292935
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL