public class ScenarioGridModel
extends org.uberfire.ext.wires.core.grids.client.model.impl.BaseGridData
| Constructor and Description |
|---|
ScenarioGridModel() |
ScenarioGridModel(boolean isMerged) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendNewColumn(org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column)
This method append a new column to the grid and to the underlying model
|
void |
appendNewRow(org.uberfire.ext.wires.core.grids.client.model.GridRow row)
This method append a new row to the grid and to the underlying model
|
void |
bindContent(Simulation simulation)
Method to bind the data serialized inside backend
ScenarioSimulationModel |
void |
clear() |
protected void |
commonAddColumn(int index,
org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column)
This method add or insert a new column to the grid and to the underlying model, depending on the index value.
|
protected void |
commonAddColumn(int index,
org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column,
FactIdentifier factIdentifier,
ExpressionIdentifier ei)
This method add or insert a new column to the grid and to the underlying model, depending on the index value.
|
protected void |
commonAddRow(int rowIndex) |
void |
deleteNewColumn(int columnIndex)
This method delete the column at the given index from both the grid and the underlying model
|
org.uberfire.ext.wires.core.grids.client.model.GridData.Range |
deleteNewRow(int rowIndex)
This method delete the row at the given index from both the grid and the underlying model
|
void |
duplicateNewRow(int rowIndex,
org.uberfire.ext.wires.core.grids.client.model.GridRow row)
This method duplicate the row at the given index from both the grid and the underlying model
and insert just below the original one
|
int |
getFirstIndexLeftOfGroup(String groupName)
Return the first index to the left of the given group, i.e.
|
int |
getFirstIndexRightOfGroup(String groupName)
Return the first index to the right of the given group, i.e.
|
long |
getGroupSize(String groupName)
Returns how many columns are already in place for the given group
|
Optional<Simulation> |
getSimulation() |
void |
insertColumn(int index,
org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column)
This method insert a new column to the grid without modify underlying model
|
void |
insertNewColumn(int index,
org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column)
This method insert a new column to the grid and to the underlying model
|
void |
insertNewRow(int rowIndex,
org.uberfire.ext.wires.core.grids.client.model.GridRow row)
This method insert a new row to the grid and to the underlying model
|
void |
insertRow(int rowIndex,
org.uberfire.ext.wires.core.grids.client.model.GridRow row,
Scenario scenario)
This method insert a row to the grid and populate it with values taken from given
Scenario |
int |
nextColumnCount() |
void |
selectColumn(int columnIndex)
Select all the cells of the given column
|
void |
selectRow(int rowIndex)
Select all the cells of the given row
|
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)
This method set a cell value to the grid without modify underlying model
|
void |
setEventBus(com.google.gwt.event.shared.EventBus eventBus) |
org.uberfire.ext.wires.core.grids.client.model.GridData.Range |
setNewCell(int rowIndex,
int columnIndex,
Supplier<org.uberfire.ext.wires.core.grids.client.model.GridCell<?>> cellSupplier)
This method set a cell value to the grid and to the underlying model
|
void |
updateColumnType(int columnIndex,
org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column,
String fullPackage,
String value,
String lastLevelClassName)
This method update the type mapped inside a give column and updates the underlying model
|
appendColumn, appendRow, clearSelections, collapseCell, deleteCell, deleteColumn, deleteRow, doSetCell, expandCell, getCell, getColumnCount, getColumns, getHeaderRowCount, getRow, getRowCount, getRows, getSelectedCells, getSelectedCellsOrigin, insertRow, isColumnDraggingEnabled, isMerged, isRowDraggingEnabled, moveColumnsTo, moveColumnTo, moveRowsTo, moveRowTo, selectCell, selectCells, setCellValue, setColumnDraggingEnabled, setHeaderRowCount, setMerged, setRowDraggingEnabled, updateColumnpublic ScenarioGridModel()
public ScenarioGridModel(boolean isMerged)
public void bindContent(Simulation simulation)
ScenarioSimulationModelsimulation - public void setEventBus(com.google.gwt.event.shared.EventBus eventBus)
public int nextColumnCount()
public void appendNewColumn(org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column)
public void appendNewRow(org.uberfire.ext.wires.core.grids.client.model.GridRow row)
row - public void insertRow(int rowIndex,
org.uberfire.ext.wires.core.grids.client.model.GridRow row,
Scenario scenario)
Scenariorow - public void insertNewRow(int rowIndex,
org.uberfire.ext.wires.core.grids.client.model.GridRow row)
row - public org.uberfire.ext.wires.core.grids.client.model.GridData.Range deleteNewRow(int rowIndex)
rowIndex - public void duplicateNewRow(int rowIndex,
org.uberfire.ext.wires.core.grids.client.model.GridRow row)
rowIndex - public void insertColumn(int index,
org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column)
insertColumn in interface org.uberfire.ext.wires.core.grids.client.model.GridDatainsertColumn in class org.uberfire.ext.wires.core.grids.client.model.impl.BaseGridDataindex - column - public void insertNewColumn(int index,
org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column)
index - column - public void deleteNewColumn(int columnIndex)
columnIndex - public void updateColumnType(int columnIndex,
org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column,
String fullPackage,
String value,
String lastLevelClassName)
columnIndex - value - 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)
setCell in interface org.uberfire.ext.wires.core.grids.client.model.GridDatasetCell in class org.uberfire.ext.wires.core.grids.client.model.impl.BaseGridDatarowIndex - columnIndex - cellSupplier - public org.uberfire.ext.wires.core.grids.client.model.GridData.Range setNewCell(int rowIndex,
int columnIndex,
Supplier<org.uberfire.ext.wires.core.grids.client.model.GridCell<?>> cellSupplier)
rowIndex - columnIndex - cellSupplier - public int getFirstIndexLeftOfGroup(String groupName)
groupName - public int getFirstIndexRightOfGroup(String groupName)
groupName - public long getGroupSize(String groupName)
groupName - public void clear()
public void selectColumn(int columnIndex)
columnIndex - public void selectRow(int rowIndex)
rowIndex - public Optional<Simulation> getSimulation()
protected void commonAddColumn(int index,
org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column)
FactIdentifier (for String class) and ExpressionIdentifierindex - column - protected void commonAddColumn(int index,
org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column,
FactIdentifier factIdentifier,
ExpressionIdentifier ei)
index - column - factIdentifier - ei - protected void commonAddRow(int rowIndex)
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.