Class ScenarioGridModel
- java.lang.Object
-
- org.uberfire.ext.wires.core.grids.client.model.impl.BaseGridData
-
- org.drools.workbench.screens.scenariosimulation.client.models.AbstractScesimGridModel<org.drools.scenariosimulation.api.model.Simulation,org.drools.scenariosimulation.api.model.Scenario>
-
- org.drools.workbench.screens.scenariosimulation.client.models.ScenarioGridModel
-
- All Implemented Interfaces:
org.uberfire.ext.wires.core.grids.client.model.GridData
public class ScenarioGridModel extends AbstractScesimGridModel<org.drools.scenariosimulation.api.model.Simulation,org.drools.scenariosimulation.api.model.Scenario>
-
-
Field Summary
-
Fields inherited from class org.drools.workbench.screens.scenariosimulation.client.models.AbstractScesimGridModel
abstractScesimModel, collectionEditorSingletonDOMElementFactory, columnCounter, eventBus, HEADER_ROW_COUNT, scenarioCellTextAreaSingletonDOMElementFactory, scenarioExpressionCellTextAreaSingletonDOMElementFactory, scenarioHeaderTextBoxSingletonDOMElementFactory, selectedColumn, simpleJavaTypeInstancesName
-
-
Constructor Summary
Constructors Constructor Description ScenarioGridModel(boolean isMerged)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcommonAddRow(int rowIndex)GridWidgetgetGridWidget()org.uberfire.ext.wires.core.grids.client.model.GridData.RangegetInstanceLimits(int columnIndex)This methods returns theRangeof a single block of columns of the same instance/data object.voidinsertRowGridOnly(int rowIndex, org.uberfire.ext.wires.core.grids.client.model.GridRow row, org.drools.scenariosimulation.api.model.Scenario scenario)This method insert a row to the grid and populate it with values taken from givenScenario-
Methods inherited from class org.drools.workbench.screens.scenariosimulation.client.models.AbstractScesimGridModel
appendRow, bindContent, checkAlreadyAssignedProperty, checkSameInstanceHeader, checkSamePropertyHeader, checkSimulation, checkUniquePropertyHeaderTitle, checkValidAndUniqueInstanceHeaderTitle, checkValidAndUniquePropertyHeaderTitle, clear, clearSelections, commonAddColumn, commonAddColumn, commonAddRow, deleteCell, deleteColumn, deleteInstance, deleteRow, destroyAllTextAreaDOMElementFactoryResources, duplicateColumnValues, duplicateRow, forceRefreshWidth, getAbstractScesimModel, getCollectionEditorSingletonDOMElementFactory, getDOMElementFactory, getFirstIndexLeftOfGroup, getFirstIndexRightOfGroup, getGroupSize, getInstanceLimits, getInstanceScenarioGridColumns, getInstanceScenarioGridColumns, getInstancesCount, getScenarioCellTextAreaSingletonDOMElementFactory, getScenarioExpressionCellTextAreaSingletonDOMElementFactory, getScenarioHeaderTextBoxSingletonDOMElementFactory, getSelectedColumn, getValidPlaceholders, insertColumn, insertColumnGridOnly, insertRow, insertRowGridOnly, isAlreadyAssignedProperty, isColumnEmpty, isNewInstanceName, isNewPropertyName, isSameInstanceType, isSameInstanceType, isSameSelectedColumnProperty, isSameSelectedColumnProperty, isSameSelectedColumnType, isSameSelectedColumnType, isSelectedColumnEmpty, isSimpleType, loadFactMappingsWidth, nextColumnCount, refreshErrors, refreshErrorsRow, replaceColumn, resetError, resetErrors, resetErrors, selectColumn, selectRow, setCell, setCellGridOnly, setCellValue, setCollectionEditorSingletonDOMElementFactory, setEventBus, setScenarioCellTextAreaSingletonDOMElementFactory, setScenarioExpressionCellTextAreaSingletonDOMElementFactory, setScenarioHeaderTextBoxSingletonDOMElementFactory, setSimpleJavaTypeInstancesName, synchronizeFactMappingsWidths, synchronizeFactMappingWidth, updateColumnInstance, updateColumnProperty, updateFactMapping, updateHeader, updateIndexColumn, validateInstanceHeaderUpdate, validatePropertyHeaderUpdate
-
Methods inherited from class org.uberfire.ext.wires.core.grids.client.model.impl.BaseGridData
appendColumn, collapseCell, deleteColumn, doSetCell, expandCell, getCell, getColumnCount, getColumns, getHeaderRowCount, getRow, getRowCount, getRows, getSelectedCells, getSelectedCellsOrigin, getSelectedHeaderCells, getVisibleHeight, getVisibleWidth, getWidth, internalRefreshWidth, isColumnDraggingEnabled, isMerged, isRowDraggingEnabled, moveColumnsTo, moveColumnTo, moveRowsTo, moveRowTo, refreshWidth, refreshWidth, selectCell, selectCells, selectHeaderCell, setColumnDraggingEnabled, setHeaderRowCount, setMerged, setRowDraggingEnabled, setVisibleSizeAndRefresh, updateColumn
-
-
-
-
Method Detail
-
getGridWidget
public GridWidget getGridWidget()
- Specified by:
getGridWidgetin classAbstractScesimGridModel<org.drools.scenariosimulation.api.model.Simulation,org.drools.scenariosimulation.api.model.Scenario>
-
getInstanceLimits
public org.uberfire.ext.wires.core.grids.client.model.GridData.Range getInstanceLimits(int columnIndex)
Description copied from class:AbstractScesimGridModelThis methods returns theRangeof a single block of columns of the same instance/data object. Asingleblock is made of all the columns immediately to the left and right of the selected one with the same "label". If there is another column with the same "label" but separated by a different column, it is not part of the group.- Specified by:
getInstanceLimitsin classAbstractScesimGridModel<org.drools.scenariosimulation.api.model.Simulation,org.drools.scenariosimulation.api.model.Scenario>- Returns:
-
insertRowGridOnly
public void insertRowGridOnly(int rowIndex, org.uberfire.ext.wires.core.grids.client.model.GridRow row, org.drools.scenariosimulation.api.model.Scenario scenario)This method insert a row to the grid and populate it with values taken from givenScenario- Specified by:
insertRowGridOnlyin classAbstractScesimGridModel<org.drools.scenariosimulation.api.model.Simulation,org.drools.scenariosimulation.api.model.Scenario>- Parameters:
row-
-
commonAddRow
protected void commonAddRow(int rowIndex)
- Specified by:
commonAddRowin classAbstractScesimGridModel<org.drools.scenariosimulation.api.model.Simulation,org.drools.scenariosimulation.api.model.Scenario>
-
-