public interface GridData
| Modifier and Type | Interface and Description |
|---|---|
static class |
GridData.Range
A range of rows.
|
static class |
GridData.SelectedCell
A selected cell within the data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendColumn(GridColumn<?> column)
Appends a column to the end of the grid.
|
void |
appendRow(GridRow row)
Appends a row to the end of the grid.
|
void |
clearSelections()
Clears all cell selections.
|
void |
collapseCell(int rowIndex,
int columnIndex)
Collapses a cell and corresponding rows.
|
GridData.Range |
deleteCell(int rowIndex,
int columnIndex)
Deletes a cell at the specified physical coordinate.
|
void |
deleteColumn(GridColumn<?> column)
Deletes a column from the grid.
|
GridData.Range |
deleteRow(int rowIndex)
Deletes a row from the grid at the specified index.
|
void |
expandCell(int rowIndex,
int columnIndex)
Expands a cell and corresponding rows.
|
GridCell<?> |
getCell(int rowIndex,
int columnIndex)
Returns a cell at the specified physical coordinate.
|
int |
getColumnCount()
Returns the total number of columns in the grid, including hidden columns.
|
List<GridColumn<?>> |
getColumns()
Returns the columns associated with the grid.
|
int |
getHeaderRowCount()
Returns the number of rows in the grid's header.
|
GridRow |
getRow(int rowIndex)
Returns the row at the specified index.
|
int |
getRowCount()
Returns the total number of rows in the grid, including collapsed rows.
|
List<GridRow> |
getRows()
Returns the rows associated with the grid.
|
List<GridData.SelectedCell> |
getSelectedCells()
Returns all selected cells.
|
GridData.SelectedCell |
getSelectedCellsOrigin()
Returns the origin of a selected range.
|
List<GridData.SelectedCell> |
getSelectedHeaderCells()
Returns all selected header cells.
|
int |
getVisibleHeight()
Get visible height
|
int |
getVisibleWidth()
Get visible width
|
void |
insertColumn(int index,
GridColumn<?> column)
Inserts a column to the grid at the specified index.
|
void |
insertRow(int rowIndex,
GridRow row)
Inserts a row to the grid at the specified index.
|
boolean |
isColumnDraggingEnabled()
Returns whether columns can be repositioned by dragging and dropping.
|
boolean |
isMerged()
Returns whether the data in a merged state.
|
boolean |
isRowDraggingEnabled()
Returns whether rows can be repositioned by dragging and dropping.
|
void |
moveColumnsTo(int index,
List<GridColumn<?>> columns)
Moves columns to a new index within the grid
|
void |
moveColumnTo(int index,
GridColumn<?> column)
Moves a column to a new index within the grid
|
void |
moveRowsTo(int index,
List<GridRow> rows)
Moves rowss to a new index within the grid
|
void |
moveRowTo(int index,
GridRow row)
Moves a row to a new index within the grid
|
boolean |
refreshWidth()
Updates the width of columns with
GridColumn.ColumnWidthMode.AUTO |
boolean |
refreshWidth(double currentWidth)
Updates the width of columns with
GridColumn.ColumnWidthMode.AUTO |
GridData.Range |
selectCell(int rowIndex,
int columnIndex)
Selects a cell at the specified physical coordinate.
|
GridData.Range |
selectCells(int rowIndex,
int columnIndex,
int width,
int height)
Selects a cell at the specified physical coordinate.
|
GridData.Range |
selectHeaderCell(int headerRowIndex,
int headerColumnIndex)
Selects a header cell at the specified physical coordinate.
|
GridData.Range |
setCell(int rowIndex,
int columnIndex,
Supplier<GridCell<?>> cellSupplier)
Sets a cell at the specified physical coordinate.
|
GridData.Range |
setCellValue(int rowIndex,
int columnIndex,
GridCellValue<?> value)
Sets a cell value at the specified physical coordinate.
|
void |
setColumnDraggingEnabled(boolean enabled)
Sets whether columns can be repositioned by dragging and dropping.
|
void |
setHeaderRowCount(int headerRowCount)
Sets the number of rows in the grid's header.
|
void |
setMerged(boolean isMerged)
Sets whether the data is in merged state.
|
void |
setRowDraggingEnabled(boolean enabled)
Set whether rows can be repositioned by dragging and dropping.
|
boolean |
setVisibleSizeAndRefresh(int width,
int height)
Update visible size information and refresh columns width.
|
void |
updateColumn(int index,
GridColumn<?> column)
Updates a column in the grid at the specified index.
|
List<GridColumn<?>> getColumns()
int getColumnCount()
void appendColumn(GridColumn<?> column)
column - void insertColumn(int index,
GridColumn<?> column)
index - column - void updateColumn(int index,
GridColumn<?> column)
index - column - void deleteColumn(GridColumn<?> column)
column - void moveColumnTo(int index,
GridColumn<?> column)
index - column - void moveColumnsTo(int index,
List<GridColumn<?>> columns)
index - columns - GridRow getRow(int rowIndex)
rowIndex - void appendRow(GridRow row)
row - void insertRow(int rowIndex,
GridRow row)
rowIndex - row - GridData.Range deleteRow(int rowIndex)
rowIndex - void moveRowTo(int index,
GridRow row)
index - row - void moveRowsTo(int index,
List<GridRow> rows)
index - rows - int getRowCount()
int getHeaderRowCount()
void setHeaderRowCount(int headerRowCount)
headerRowCount - Cannot be less than 1.GridCell<?> getCell(int rowIndex, int columnIndex)
rowIndex - columnIndex - GridData.Range setCell(int rowIndex, int columnIndex, Supplier<GridCell<?>> cellSupplier)
rowIndex - columnIndex - cellSupplier - A supplier of new cell instancesGridData.Range setCellValue(int rowIndex, int columnIndex, GridCellValue<?> value)
rowIndex - columnIndex - value - GridData.Range deleteCell(int rowIndex, int columnIndex)
rowIndex - columnIndex - GridData.Range selectCell(int rowIndex, int columnIndex)
rowIndex - columnIndex - GridData.Range selectCells(int rowIndex, int columnIndex, int width, int height)
rowIndex - columnIndex - width - height - GridData.SelectedCell getSelectedCellsOrigin()
List<GridData.SelectedCell> getSelectedCells()
GridData.Range selectHeaderCell(int headerRowIndex, int headerColumnIndex)
headerRowIndex - headerColumnIndex - List<GridData.SelectedCell> getSelectedHeaderCells()
void clearSelections()
boolean isMerged()
void setMerged(boolean isMerged)
isMerged - boolean isRowDraggingEnabled()
void setRowDraggingEnabled(boolean enabled)
enabled - true if drag and drop is enabled.boolean isColumnDraggingEnabled()
void setColumnDraggingEnabled(boolean enabled)
enabled - true if drag and drop is enabled.void collapseCell(int rowIndex,
int columnIndex)
rowIndex - columnIndex - void expandCell(int rowIndex,
int columnIndex)
rowIndex - columnIndex - boolean refreshWidth()
GridColumn.ColumnWidthMode.AUTOboolean refreshWidth(double currentWidth)
GridColumn.ColumnWidthMode.AUTOcurrentWidth - is the grid width before this resize iterationboolean setVisibleSizeAndRefresh(int width,
int height)
refreshWidth()width - height - int getVisibleWidth()
int getVisibleHeight()
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.