public class FilteredRowManager extends RowManager
RowManager.ColumnRowIterator, RowManager.RowIterator
Modifier and Type | Field and Description |
---|---|
protected IntColumn |
m_childToParent |
protected IntIntSortedMap |
m_parentToChild |
m_table
Constructor and Description |
---|
FilteredRowManager(Table table)
Create a new FilteredRowManager.
|
Modifier and Type | Method and Description |
---|---|
int |
addRow(int parentRow)
Add a new row backed by the given parent row.
|
void |
clear()
Clear the row manager status, marking all rows as available.
|
int |
getChildRow(int parentRow)
Given a row in the parent table, return the corresponding row managed
by this manager.
|
int |
getColumnRow(int row,
int col)
Given Table row and column indices, return the corresponding row in
the underlying data column.
|
int |
getParentRow(int childRow)
Given a row managed by this manager, return the corresponding row
in the parent table.
|
int |
getTableRow(int columnRow,
int col)
Given a column row index and a table column index, return the
table row corresponding to the column value.
|
void |
put(int childRow,
int parentRow)
Add a mapping between the given managed row and parent row.
|
boolean |
releaseRow(int row)
Release a row and mark it as free.
|
void |
remove(int childRow)
Remove a mapping between the given managed row and the corresponding
parent row.
|
addRow, columnRows, columnRows, columnRows, getMaximumRow, getMinimumRow, getRowCount, getTable, isValidRow, rows, rows
protected IntColumn m_childToParent
protected IntIntSortedMap m_parentToChild
public FilteredRowManager(Table table)
table
- the table to managepublic void clear()
RowManager
clear
in class RowManager
RowManager.clear()
public int addRow(int parentRow)
parentRow
- the backing parent rowpublic boolean releaseRow(int row)
RowManager
releaseRow
in class RowManager
row
- the row index of the released rowRowManager.releaseRow(int)
public int getColumnRow(int row, int col)
RowManager
getColumnRow
in class RowManager
row
- the table rowcol
- the table columnRowManager.getColumnRow(int, int)
public int getTableRow(int columnRow, int col)
RowManager
getTableRow
in class RowManager
columnRow
- the row of the underlying data columncol
- the table columnRowManager.getTableRow(int, int)
public int getParentRow(int childRow)
childRow
- a row managed by this managerpublic int getChildRow(int parentRow)
parentRow
- a row in the parent tablepublic void put(int childRow, int parentRow)
childRow
- a row managed by this managerparentRow
- a row in the parent tablepublic void remove(int childRow)
childRow
- a row managed by this managerCopyright ? 2013 Regents of the University of California