Class DelegatingGridData
- java.lang.Object
-
- org.kie.workbench.common.dmn.client.widgets.grid.model.DelegatingGridData
-
- All Implemented Interfaces:
org.uberfire.ext.wires.core.grids.client.model.GridData
- Direct Known Subclasses:
ContextGridData,DecisionTableGridData,FunctionSupplementaryGridData,InvocationGridData,ListGridData,RelationGridData
public class DelegatingGridData extends Object implements org.uberfire.ext.wires.core.grids.client.model.GridData
A convenience class to support intercepting GridData mutations and defer to Commands.
-
-
Field Summary
Fields Modifier and Type Field Description protected DMNGridDatadelegate
-
Constructor Summary
Constructors Constructor Description DelegatingGridData(DMNGridData delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendColumn(org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column)voidappendRow(org.uberfire.ext.wires.core.grids.client.model.GridRow row)voidclearSelections()voidcollapseCell(int rowIndex, int columnIndex)org.uberfire.ext.wires.core.grids.client.model.GridData.RangedeleteCell(int rowIndex, int columnIndex)voiddeleteColumn(org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column)org.uberfire.ext.wires.core.grids.client.model.GridData.RangedeleteRow(int rowIndex)voidexpandCell(int rowIndex, int columnIndex)org.uberfire.ext.wires.core.grids.client.model.GridCell<?>getCell(int rowIndex, int columnIndex)intgetColumnCount()List<org.uberfire.ext.wires.core.grids.client.model.GridColumn<?>>getColumns()intgetHeaderRowCount()org.uberfire.ext.wires.core.grids.client.model.GridRowgetRow(int rowIndex)intgetRowCount()List<org.uberfire.ext.wires.core.grids.client.model.GridRow>getRows()List<org.uberfire.ext.wires.core.grids.client.model.GridData.SelectedCell>getSelectedCells()org.uberfire.ext.wires.core.grids.client.model.GridData.SelectedCellgetSelectedCellsOrigin()List<org.uberfire.ext.wires.core.grids.client.model.GridData.SelectedCell>getSelectedHeaderCells()intgetVisibleHeight()intgetVisibleWidth()voidinsertColumn(int index, org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column)voidinsertRow(int rowIndex, org.uberfire.ext.wires.core.grids.client.model.GridRow row)booleanisColumnDraggingEnabled()booleanisMerged()booleanisRowDraggingEnabled()voidmoveColumnsTo(int index, List<org.uberfire.ext.wires.core.grids.client.model.GridColumn<?>> columns)voidmoveColumnTo(int index, org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column)voidmoveRowsTo(int index, List<org.uberfire.ext.wires.core.grids.client.model.GridRow> rows)voidmoveRowTo(int index, org.uberfire.ext.wires.core.grids.client.model.GridRow row)booleanrefreshWidth()booleanrefreshWidth(double currentWidth)org.uberfire.ext.wires.core.grids.client.model.GridData.RangeselectCell(int rowIndex, int columnIndex)org.uberfire.ext.wires.core.grids.client.model.GridData.RangeselectCells(int rowIndex, int columnIndex, int width, int height)org.uberfire.ext.wires.core.grids.client.model.GridData.RangeselectHeaderCell(int headerRowIndex, int headerColumnIndex)org.uberfire.ext.wires.core.grids.client.model.GridData.RangesetCell(int rowIndex, int columnIndex, Supplier<org.uberfire.ext.wires.core.grids.client.model.GridCell<?>> cellSupplier)org.uberfire.ext.wires.core.grids.client.model.GridData.RangesetCellValue(int rowIndex, int columnIndex, org.uberfire.ext.wires.core.grids.client.model.GridCellValue<?> value)voidsetColumnDraggingEnabled(boolean enabled)voidsetHeaderRowCount(int headerRowCount)voidsetMerged(boolean isMerged)voidsetRowDraggingEnabled(boolean enabled)booleansetVisibleSizeAndRefresh(int width, int height)voidupdateColumn(int index, org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column)
-
-
-
Field Detail
-
delegate
protected final DMNGridData delegate
-
-
Constructor Detail
-
DelegatingGridData
public DelegatingGridData(DMNGridData delegate)
-
-
Method Detail
-
moveRowTo
public void moveRowTo(int index, org.uberfire.ext.wires.core.grids.client.model.GridRow row)- Specified by:
moveRowToin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
moveRowsTo
public void moveRowsTo(int index, List<org.uberfire.ext.wires.core.grids.client.model.GridRow> rows)- Specified by:
moveRowsToin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
moveColumnTo
public void moveColumnTo(int index, org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column)- Specified by:
moveColumnToin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
moveColumnsTo
public void moveColumnsTo(int index, List<org.uberfire.ext.wires.core.grids.client.model.GridColumn<?>> columns)- Specified by:
moveColumnsToin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
selectCell
public org.uberfire.ext.wires.core.grids.client.model.GridData.Range selectCell(int rowIndex, int columnIndex)- Specified by:
selectCellin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
selectCells
public org.uberfire.ext.wires.core.grids.client.model.GridData.Range selectCells(int rowIndex, int columnIndex, int width, int height)- Specified by:
selectCellsin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
selectHeaderCell
public org.uberfire.ext.wires.core.grids.client.model.GridData.Range selectHeaderCell(int headerRowIndex, int headerColumnIndex)- Specified by:
selectHeaderCellin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
getSelectedHeaderCells
public List<org.uberfire.ext.wires.core.grids.client.model.GridData.SelectedCell> getSelectedHeaderCells()
- Specified by:
getSelectedHeaderCellsin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
setCell
public org.uberfire.ext.wires.core.grids.client.model.GridData.Range setCell(int rowIndex, int columnIndex, Supplier<org.uberfire.ext.wires.core.grids.client.model.GridCell<?>> cellSupplier)- Specified by:
setCellin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
setCellValue
public org.uberfire.ext.wires.core.grids.client.model.GridData.Range setCellValue(int rowIndex, int columnIndex, org.uberfire.ext.wires.core.grids.client.model.GridCellValue<?> value)- Specified by:
setCellValuein interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
deleteCell
public org.uberfire.ext.wires.core.grids.client.model.GridData.Range deleteCell(int rowIndex, int columnIndex)- Specified by:
deleteCellin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
getColumns
public List<org.uberfire.ext.wires.core.grids.client.model.GridColumn<?>> getColumns()
- Specified by:
getColumnsin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCountin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
appendColumn
public void appendColumn(org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column)
- Specified by:
appendColumnin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
insertColumn
public void insertColumn(int index, org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column)- Specified by:
insertColumnin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
deleteColumn
public void deleteColumn(org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column)
- Specified by:
deleteColumnin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
getRows
public List<org.uberfire.ext.wires.core.grids.client.model.GridRow> getRows()
- Specified by:
getRowsin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
expandCell
public void expandCell(int rowIndex, int columnIndex)- Specified by:
expandCellin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
collapseCell
public void collapseCell(int rowIndex, int columnIndex)- Specified by:
collapseCellin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
setColumnDraggingEnabled
public void setColumnDraggingEnabled(boolean enabled)
- Specified by:
setColumnDraggingEnabledin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
isColumnDraggingEnabled
public boolean isColumnDraggingEnabled()
- Specified by:
isColumnDraggingEnabledin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
setRowDraggingEnabled
public void setRowDraggingEnabled(boolean enabled)
- Specified by:
setRowDraggingEnabledin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
isRowDraggingEnabled
public boolean isRowDraggingEnabled()
- Specified by:
isRowDraggingEnabledin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
setMerged
public void setMerged(boolean isMerged)
- Specified by:
setMergedin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
isMerged
public boolean isMerged()
- Specified by:
isMergedin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
updateColumn
public void updateColumn(int index, org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column)- Specified by:
updateColumnin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
clearSelections
public void clearSelections()
- Specified by:
clearSelectionsin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
getSelectedCells
public List<org.uberfire.ext.wires.core.grids.client.model.GridData.SelectedCell> getSelectedCells()
- Specified by:
getSelectedCellsin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
getSelectedCellsOrigin
public org.uberfire.ext.wires.core.grids.client.model.GridData.SelectedCell getSelectedCellsOrigin()
- Specified by:
getSelectedCellsOriginin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
getCell
public org.uberfire.ext.wires.core.grids.client.model.GridCell<?> getCell(int rowIndex, int columnIndex)- Specified by:
getCellin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
setHeaderRowCount
public void setHeaderRowCount(int headerRowCount)
- Specified by:
setHeaderRowCountin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
getHeaderRowCount
public int getHeaderRowCount()
- Specified by:
getHeaderRowCountin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
getRowCount
public int getRowCount()
- Specified by:
getRowCountin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
deleteRow
public org.uberfire.ext.wires.core.grids.client.model.GridData.Range deleteRow(int rowIndex)
- Specified by:
deleteRowin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
insertRow
public void insertRow(int rowIndex, org.uberfire.ext.wires.core.grids.client.model.GridRow row)- Specified by:
insertRowin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
appendRow
public void appendRow(org.uberfire.ext.wires.core.grids.client.model.GridRow row)
- Specified by:
appendRowin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
getRow
public org.uberfire.ext.wires.core.grids.client.model.GridRow getRow(int rowIndex)
- Specified by:
getRowin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
refreshWidth
public boolean refreshWidth()
- Specified by:
refreshWidthin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
refreshWidth
public boolean refreshWidth(double currentWidth)
- Specified by:
refreshWidthin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
setVisibleSizeAndRefresh
public boolean setVisibleSizeAndRefresh(int width, int height)- Specified by:
setVisibleSizeAndRefreshin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
getVisibleWidth
public int getVisibleWidth()
- Specified by:
getVisibleWidthin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
getVisibleHeight
public int getVisibleHeight()
- Specified by:
getVisibleHeightin interfaceorg.uberfire.ext.wires.core.grids.client.model.GridData
-
-