public class ScenarioGrid
extends org.uberfire.ext.wires.core.grids.client.widget.grid.impl.BaseGridWidget
com.ait.lienzo.client.core.shape.Group.GroupFactorycom.ait.lienzo.client.core.shape.GroupOf.GroupOfFactory<T extends com.ait.lienzo.client.core.shape.IPrimitive<?>,C extends com.ait.lienzo.client.core.shape.GroupOf<T,C>>allColumns, body, bodyColumns, bodySelections, bodyTransformer, boundary, floatingBody, floatingBodySelections, floatingColumns, floatingColumnsTransformer, floatingHeader, floatingHeaderSelections, header, headerSelections, model, renderer, rendererHelper, renderingInformation, renderQueue| Constructor and Description |
|---|
ScenarioGrid(ScenarioGridModel model,
ScenarioGridLayer scenarioGridLayer,
ScenarioGridRenderer renderer,
ScenarioContextMenuRegistry scenarioContextMenuRegistry) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
adjustSelection(org.uberfire.ext.wires.core.grids.client.widget.grid.selections.SelectionExtension direction,
boolean isShiftKeyDown) |
protected void |
appendRow(int rowIndex,
Scenario scenario) |
protected void |
appendRows(Simulation simulation) |
void |
clearSelections()
Unselect all cells/columns from model
GridData.clearSelections() |
com.google.gwt.event.shared.EventBus |
getEventBus() |
protected ScenarioSimulationBuilders.HeaderBuilder |
getHeaderBuilderLocal(String instanceTitle,
String propertyTitle,
String columnId,
String columnGroup,
FactMappingType factMappingType) |
ScenarioGridModel |
getModel() |
protected List<org.uberfire.ext.wires.core.grids.client.widget.grid.NodeMouseEventHandler> |
getNodeMouseClickEventHandlers(org.uberfire.ext.wires.core.grids.client.widget.layer.GridSelectionManager selectionManager) |
protected List<org.uberfire.ext.wires.core.grids.client.widget.grid.NodeMouseEventHandler> |
getNodeMouseDoubleClickEventHandlers(org.uberfire.ext.wires.core.grids.client.widget.layer.GridSelectionManager selectionManager,
org.uberfire.ext.wires.core.grids.client.widget.layer.pinning.GridPinnedModeManager pinnedModeManager) |
protected String |
getPlaceholder(boolean isPropertyAssigned)
Returns
ScenarioSimulationEditorConstants.INSTANCE.insertValue() if isPropertyAssigned == true, ScenarioSimulationEditorConstants.INSTANCE.defineValidType() otherwise |
protected ScenarioGridColumn |
getScenarioGridColumnLocal(ScenarioSimulationBuilders.HeaderBuilder headerBuilder,
String placeHolder) |
protected ScenarioGridColumn |
getScenarioGridColumnLocal(String instanceTitle,
String propertyTitle,
String columnId,
String columnGroup,
FactMappingType factMappingType,
String placeHolder) |
protected boolean |
isInstanceAssigned(FactIdentifier factIdentifier)
Returns
true when
factIdentifier == FactIdentifier.DESCRIPTION
or
factIdentifier ! |
protected boolean |
isPropertyAssigned(boolean instanceAssigned,
FactMapping factMapping)
Returns
true when
instanceAssigned == true
and
! |
void |
setContent(Simulation simulation) |
protected void |
setDOMElementFactory(ScenarioGridColumn scenarioGridColumn,
String className)
Set the correct DOMElement factory to the given
ScenarioGridColumn |
void |
setEventBus(com.google.gwt.event.shared.EventBus eventBus) |
protected void |
setHeaderColumn(int columnIndex,
FactMapping factMapping,
boolean editableHeaders) |
protected void |
setHeaderColumns(Simulation simulation) |
void |
setSelectedColumnAndHeader(int headerRowIndex,
int columnIndex)
Set the selectedColumn status of the model and select the header cell actually clicked
|
void |
signalRightPanelAboutSelectedHeaderCells() |
addCommandsToRenderQueue, addCommandToRenderQueue, deselect, drawBody, drawHeader, drawWithoutTransforms, executeRenderQueueCommands, getBaseGridRendererHelper, getBody, getCellSelectionManager, getGridMouseClickHandler, getGridMouseDoubleClickHandler, getHeader, getHeight, getRenderer, getRendererHelper, getWidth, isSelected, onGroupingToggle, onNodeMouseClick, renderGridBodyWidget, renderGridBoundary, renderGridHeaderWidget, renderSelectedRanges, select, selectCell, selectCell, selectHeaderCell, selectHeaderCell, setRenderer, setVisible, showContextMenuForCell, startEditingCell, startEditingCellasGroup, getDefaultStorageEngineadd, add, asContainer, asGroupOf, asPrimitive, attachToLayerColorMap, batch, destroy, destroy, detachFromLayerColorMap, draw, find, getAlpha, getBoundingBoxAttributes, getControlHandleFactory, getControlHandles, getControlHandles, getDragBounds, getDragConstraint, getDragConstraints, getDragMode, getEventPropagationMode, getFactory, getFillAlpha, getGroupType, getLocation, getOffset, getRotation, getRotationDegrees, getScale, getShear, getStrokeAlpha, getTransformingAttributes, getX, getY, isDraggable, isDragging, isEditable, moveDown, moveToBottom, moveToTop, moveUp, refresh, remove, removeAll, removeFromParent, setAlpha, setControlHandleFactory, setDragBounds, setDragConstraint, setDragConstraints, setDraggable, setDragging, setDragMode, setEditable, setEventPropagationMode, setFillAlpha, setGroupType, setLocation, setOffset, setOffset, setOffset, setRotation, setRotationDegrees, setScale, setScale, setScale, setShear, setShear, setStrokeAlpha, setX, setY, toJSONObjectasContainerNode, copy, find, findByID, getBoundingBox, getChildNodes, getChildNodes, getPathClipper, getStorageBounds, getStorageEngine, length, moveDown, moveToBottom, moveToTop, moveUp, setPathClipper, setStorageBounds, setStorageEngineaddAttributesChangedHandler, addEnsureHandler, addNodeDragEndHandler, addNodeDragMoveHandler, addNodeDragStartHandler, addNodeGestureChangeHandler, addNodeGestureEndHandler, addNodeGestureStartHandler, addNodeMouseClickHandler, addNodeMouseDoubleClickHandler, addNodeMouseDownHandler, addNodeMouseEnterHandler, addNodeMouseExitHandler, addNodeMouseMoveHandler, addNodeMouseOutHandler, addNodeMouseOverHandler, addNodeMouseUpHandler, addNodeMouseWheelHandler, addNodeTouchCancelHandler, addNodeTouchEndHandler, addNodeTouchMoveHandler, addNodeTouchStartHandler, addParentsLocations, animate, animate, asAttributes, asAttributes, asGuide, asLayer, asList, asMultiPointShape, asNode, asScene, asShape, asViewport, cancelAttributesChangedBatcher, cast, copyUnchecked, doAnimating, drawWithTransforms, equals, fireEvent, getAbsoluteLocation, getAbsoluteTransform, getAttributes, getAttributeSheet, getBoundingPoints, getBoundingPoints, getComputedBoundingPoints, getComputedLocation, getID, getLayer, getMetaData, getName, getNodeType, getOverLayer, getParent, getPossibleNodeTransform, getRequiredAttributes, getScene, getScratchPad, getUserData, getViewport, hashCode, hasMetaData, isAnimating, isEventHandled, isEventHandledGlobally, isListening, isVisible, onWire, setAttributesChangedBatcher, setID, setListening, setName, setNodeType, setParent, setUserData, toJSONString, toString, unAnimating, uuidclone, finalize, getClass, notify, notifyAll, wait, wait, waitonDragHandleattachToLayerColorMap, detachFromLayerColorMap, getAlpha, getControlHandleFactory, getDragBounds, getDragConstraint, getDragConstraints, getDragMode, getEventPropagationMode, getFillAlpha, getLocation, getOffset, getRotation, getRotationDegrees, getScale, getShear, getStrokeAlpha, getX, getY, isDraggable, isDragging, isEditable, setAlpha, setControlHandleFactory, setDragBounds, setDragConstraint, setDragConstraints, setDraggable, setDragging, setDragMode, setEditable, setEventPropagationMode, setFillAlpha, setLocation, setOffset, setOffset, setOffset, setRotation, setRotationDegrees, setScale, setScale, setScale, setShear, setShear, setStrokeAlpha, setX, setYaddAttributesChangedHandler, addNodeDragEndHandler, addNodeDragMoveHandler, addNodeDragStartHandler, addNodeGestureChangeHandler, addNodeGestureEndHandler, addNodeGestureStartHandler, addNodeMouseClickHandler, addNodeMouseDoubleClickHandler, addNodeMouseDownHandler, addNodeMouseEnterHandler, addNodeMouseExitHandler, addNodeMouseMoveHandler, addNodeMouseOutHandler, addNodeMouseOverHandler, addNodeMouseUpHandler, addNodeMouseWheelHandler, addNodeTouchCancelHandler, addNodeTouchEndHandler, addNodeTouchMoveHandler, addNodeTouchStartHandler, animate, animate, asContainer, asContainerNode, asGroup, asGroupOf, asGuide, asLayer, asMultiPointShape, asNode, asPrimitive, asScene, asShape, asViewport, batch, cancelAttributesChangedBatcher, copy, draw, drawWithTransforms, fireEvent, getAbsoluteLocation, getAbsoluteTransform, getAttributes, getAttributeSheet, getBoundingBox, getBoundingBoxAttributes, getBoundingPoints, getComputedBoundingPoints, getComputedLocation, getID, getLayer, getMetaData, getName, getNodeType, getOverLayer, getParent, getRequiredAttributes, getScene, getScratchPad, getTransformingAttributes, getUserData, getViewport, hasMetaData, isEventHandled, isListening, isVisible, moveDown, moveToBottom, moveToTop, moveUp, refresh, removeFromParent, setAttributesChangedBatcher, setID, setListening, setName, setUserData, uuidpublic ScenarioGrid(ScenarioGridModel model, ScenarioGridLayer scenarioGridLayer, ScenarioGridRenderer renderer, ScenarioContextMenuRegistry scenarioContextMenuRegistry)
public void setContent(Simulation simulation)
public com.google.gwt.event.shared.EventBus getEventBus()
public void setEventBus(com.google.gwt.event.shared.EventBus eventBus)
public ScenarioGridModel getModel()
getModel in interface org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidgetgetModel in class org.uberfire.ext.wires.core.grids.client.widget.grid.impl.BaseGridWidgetpublic void clearSelections()
GridData.clearSelections()public void setSelectedColumnAndHeader(int headerRowIndex,
int columnIndex)
columnIndex - protected List<org.uberfire.ext.wires.core.grids.client.widget.grid.NodeMouseEventHandler> getNodeMouseClickEventHandlers(org.uberfire.ext.wires.core.grids.client.widget.layer.GridSelectionManager selectionManager)
getNodeMouseClickEventHandlers in class org.uberfire.ext.wires.core.grids.client.widget.grid.impl.BaseGridWidgetprotected List<org.uberfire.ext.wires.core.grids.client.widget.grid.NodeMouseEventHandler> getNodeMouseDoubleClickEventHandlers(org.uberfire.ext.wires.core.grids.client.widget.layer.GridSelectionManager selectionManager, org.uberfire.ext.wires.core.grids.client.widget.layer.pinning.GridPinnedModeManager pinnedModeManager)
getNodeMouseDoubleClickEventHandlers in class org.uberfire.ext.wires.core.grids.client.widget.grid.impl.BaseGridWidgetprotected void setHeaderColumns(Simulation simulation)
protected void setHeaderColumn(int columnIndex,
FactMapping factMapping,
boolean editableHeaders)
protected void setDOMElementFactory(ScenarioGridColumn scenarioGridColumn, String className)
ScenarioGridColumnscenarioGridColumn - className - protected boolean isInstanceAssigned(FactIdentifier factIdentifier)
true when
factIdentifier == FactIdentifier.DESCRIPTION
or
factIdentifier != FactIdentifier.EMPTY
and
factIdentifier != FactIdentifier.INDEX
factIdentifier - protected boolean isPropertyAssigned(boolean instanceAssigned,
FactMapping factMapping)
true when
instanceAssigned == true
and
!factMapping.getExpressionElements().isEmpty()
instanceAssigned - factMapping - protected String getPlaceholder(boolean isPropertyAssigned)
ScenarioSimulationEditorConstants.INSTANCE.insertValue() if isPropertyAssigned == true, ScenarioSimulationEditorConstants.INSTANCE.defineValidType() otherwiseisPropertyAssigned - protected ScenarioGridColumn getScenarioGridColumnLocal(String instanceTitle, String propertyTitle, String columnId, String columnGroup, FactMappingType factMappingType, String placeHolder)
protected ScenarioGridColumn getScenarioGridColumnLocal(ScenarioSimulationBuilders.HeaderBuilder headerBuilder, String placeHolder)
protected ScenarioSimulationBuilders.HeaderBuilder getHeaderBuilderLocal(String instanceTitle, String propertyTitle, String columnId, String columnGroup, FactMappingType factMappingType)
protected void appendRows(Simulation simulation)
protected void appendRow(int rowIndex,
Scenario scenario)
public boolean adjustSelection(org.uberfire.ext.wires.core.grids.client.widget.grid.selections.SelectionExtension direction,
boolean isShiftKeyDown)
adjustSelection in interface org.uberfire.ext.wires.core.grids.client.widget.grid.selections.CellSelectionManageradjustSelection in class org.uberfire.ext.wires.core.grids.client.widget.grid.impl.BaseGridWidgetpublic void signalRightPanelAboutSelectedHeaderCells()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.