public interface GXITableRowCollection
Table's rows' data.
Represents the table's rows' data. The collection is composed of GXITableRow objects. Can be used to directly access a row or a cell, and to filter rows.
Modifier and Type | Method and Description |
---|---|
void |
addFilter(GXIRowsFilter filter)
Adds a new filter to the table.
|
void |
addRow(GXITableRow row)
Adds a new row as the last row in the table.
|
GXITableRowCollection |
filterRows()
Filters the table's rows according to the filters added to the table.
|
GXIRowsFilter[] |
getFilters() |
GXITableCell |
getItem(int rowIndex,
int columnIndex) |
GXITableCell |
getItem(int rowIndex,
String columnName) |
String |
getItemContent(int rowIndex,
int columnIndex) |
String |
getItemContent(int rowIndex,
String columnName) |
GXITableRow |
getRow(int rowIndex) |
GXITableRow |
getRowByKey(String primaryKey)
Finds a row according to the specified primary key.
|
GXITableRow |
getRowByKey(String[] primaryKey)
Finds a row with the specified primary key values.
|
int |
getRowCount() |
GXITableRow[] |
getRows() |
void |
removeFilter(GXIRowsFilter filter)
Removes the specified filter.
|
void |
removeRow(GXITableRow row)
removes the specified row.
|
void |
removeRow(int rowIndex)
Removes the row at the specified index.
|
void |
setItemContent(int rowIndex,
int columnIndex,
String content)
Sets the contents of the cell at the specified row / column coordinates.
|
void |
setItemContent(int rowIndex,
String columnName,
String content)
Sets the contents of the cell at the specified row / column coordinates.
|
void |
sort(GXAbstractSorter sorter,
GXIComparator comparator)
Sorts the row's data using the specified sorter and comparator.
|
GXITableRow[] getRows()
int getRowCount()
GXITableRow getRow(int rowIndex)
rowIndex
- the row's index. Should range between 0 to rowCount - 1.getRowCount()
void addRow(GXITableRow row)
row
- the row to add.void removeRow(int rowIndex)
rowIndex
- row index to be removed. Should range between 0 to rowCount - 1.void removeRow(GXITableRow row)
row
- the row to remove.void addFilter(GXIRowsFilter filter)
filter
- the filter to be added.GXIRowsFilter
,
filterRows()
GXIRowsFilter[] getFilters()
void removeFilter(GXIRowsFilter filter)
filter
- the filter to remove.GXITableRowCollection filterRows()
GXIRowsFilter.filter(com.sabratec.applinx.baseobject.table.GXITableRowCollection)
,
addFilter(com.sabratec.applinx.baseobject.table.GXIRowsFilter)
GXITableCell getItem(int rowIndex, int columnIndex)
rowIndex
- should range between 0 - rowsCount - 1.columnIndex
- should range between 0 - columnsCount - 1.GXITableCell getItem(int rowIndex, String columnName)
rowIndex
- should range between 0 - rowsCount - 1.columnName
- the name of the column.String getItemContent(int rowIndex, int columnIndex)
rowIndex
- should range between 0 - rowsCount - 1.columnIndex
- should range between 0 - columnsCount - 1.String getItemContent(int rowIndex, String columnName)
rowIndex
- should range between 0 - rowsCount - 1.columnName
- the name of the column.void setItemContent(int rowIndex, int columnIndex, String content)
rowIndex
- should range between 0 - rowsCount - 1.columnIndex
- should range between 0 - columnsCount - 1.content
- the cell's new content.GXITableCell.setContent(String content)
void setItemContent(int rowIndex, String columnName, String content)
rowIndex
- should range between 0 - rowsCount - 1.columnName
- the name of the column.content
- the cell's new content.GXITableCell.setContent(String content)
GXITableRow getRowByKey(String[] primaryKey)
primaryKey
- the values of the primary key's columns.Example: If the primary key was defined to be the columns "first name" and "last name", the primaryKey parameter should hold the String array "John", "Doe".
GXITable.getPrimaryKey()
GXITableRow getRowByKey(String primaryKey)
primaryKey
- the requested primary key.GXITable.getPrimaryKey()
void sort(GXAbstractSorter sorter, GXIComparator comparator)
sorter
- the sorter.comparator
- the comparator used for sorting.GXITable.sort(int[] columnIndices, boolean[] isAscending)
,
GXITable.sort(int columnIndex, boolean isAscending)
,
GXITable.sort(String columnName, boolean isAscending)
,
GXITable.sort(String[] columnNames, boolean[] isAscending)
Copyright 2021 Software AG. All rights reserved. Use is subject to license terms.