public abstract class BaseExpressionGrid<E extends Expression,D extends org.uberfire.ext.wires.core.grids.client.model.GridData,M extends BaseUIModelMapper<E>> extends BaseGrid<E> implements ExpressionGridCache.IsCacheable
com.ait.lienzo.client.core.shape.Group.GroupFactory
com.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>>
com.ait.lienzo.client.core.shape.ContainerNode.ContainerNodeFactory<C extends com.ait.lienzo.client.core.shape.json.IJSONSerializable<C> & com.ait.lienzo.client.core.shape.IContainer<C,?>>
com.ait.lienzo.client.core.shape.Node.NodeFactory<N extends com.ait.lienzo.client.core.shape.json.IJSONSerializable<N>>
HasListSelectorControl.ListSelectorDividerItem, HasListSelectorControl.ListSelectorHeaderItem, HasListSelectorControl.ListSelectorItem, HasListSelectorControl.ListSelectorTextItem
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_PADDING |
protected DefinitionUtils |
definitionUtils |
protected javax.enterprise.event.Event<ExpressionEditorChanged> |
editorSelectedEvent |
protected DMNGridPanel |
gridPanel |
protected ListSelectorView.Presenter |
listSelector |
protected int |
nesting |
protected GridCellTuple |
parent |
static Function<BaseExpressionGrid,Double> |
RESIZE_EXISTING |
static Function<BaseExpressionGrid,Double> |
RESIZE_EXISTING_MINIMUM |
protected M |
uiModelMapper |
canvasCommandFactory, cellEditorControls, domainObjectSelectionEvent, gridLayer, hasExpression, hasName, isOnlyVisualChangeAllowed, nodeUUID, refreshFormPropertiesEvent, selectedDomainObject, sessionCommandManager, sessionManager, translationService
allColumns, body, bodyColumns, bodySelections, bodyTransformer, boundary, floatingBody, floatingBodySelections, floatingColumns, floatingColumnsTransformer, floatingHeader, floatingHeaderSelections, header, headerSelections, model, renderer, rendererHelper, renderingInformation, renderQueue
Constructor and Description |
---|
BaseExpressionGrid(GridCellTuple parent,
Optional<String> nodeUUID,
HasExpression hasExpression,
Optional<HasName> hasName,
DMNGridPanel gridPanel,
DMNGridLayer gridLayer,
D gridData,
org.uberfire.ext.wires.core.grids.client.widget.grid.renderers.grids.GridRenderer gridRenderer,
DefinitionUtils definitionUtils,
SessionManager sessionManager,
SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
DefaultCanvasCommandFactory canvasCommandFactory,
javax.enterprise.event.Event<ExpressionEditorChanged> editorSelectedEvent,
javax.enterprise.event.Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
javax.enterprise.event.Event<DomainObjectSelectionEvent> domainObjectSelectionEvent,
CellEditorControlsView.Presenter cellEditorControls,
ListSelectorView.Presenter listSelector,
org.jboss.errai.ui.client.local.spi.TranslationService translationService,
boolean isOnlyVisualChangeAllowed,
int nesting) |
Modifier and Type | Method and Description |
---|---|
boolean |
adjustSelection(org.uberfire.ext.wires.core.grids.client.widget.grid.selections.SelectionExtension direction,
boolean isShiftKeyDown) |
<V,HV extends HasValue<V>> |
clearValueConsumer(boolean updateStunnerTitle,
V emptyValue) |
void |
deselect() |
void |
doAfterHeaderSelectionChange(int uiHeaderRowIndex,
int uiHeaderColumnIndex) |
void |
doAfterSelectionChange(int uiRowIndex,
int uiColumnIndex) |
protected void |
doInitialisation() |
void |
doResize(org.uberfire.ext.wires.core.grids.client.widget.layer.impl.GridLayerRedrawManager.PrioritizedCommand command,
Function<BaseExpressionGrid,Double> requiredWidthSupplier) |
protected EditableHeaderMetaData |
extractEditableHeaderMetaData(GridCellTuple gc) |
Optional<BaseExpressionGrid> |
findParentGrid() |
AutocompleteTextAreaDOMElementFactory |
getAutocompleteTextareaFactory() |
ListBoxSingletonDOMElementFactory |
getBodyListBoxFactory() |
TextAreaSingletonDOMElementFactory |
getBodyTextAreaFactory() |
DMNGridPanel |
getGridPanel() |
TextAreaSingletonDOMElementFactory |
getHeaderTextAreaFactory() |
TextBoxSingletonDOMElementFactory |
getHeaderTextBoxFactory() |
com.ait.lienzo.client.core.shape.Layer |
getLayer() |
double |
getMinimumWidth() |
List<org.uberfire.ext.wires.core.grids.client.widget.grid.NodeMouseEventHandler> |
getNodeMouseClickEventHandlers(org.uberfire.ext.wires.core.grids.client.widget.layer.GridSelectionManager selectionManager) |
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) |
double |
getPadding() |
GridCellTuple |
getParentInformation() |
protected <V> Optional<AbstractCanvasGraphCommand> |
getUpdateStunnerTitleCommand(V value) |
com.ait.lienzo.client.core.shape.Viewport |
getViewport() |
protected boolean |
hasAnyHeaderCellSelected() |
protected boolean |
hasMultipleCellsSelected() |
abstract void |
initialiseUiCells() |
protected abstract void |
initialiseUiColumns() |
protected abstract void |
initialiseUiRows() |
boolean |
isCacheable() |
protected abstract M |
makeUiModelMapper() |
protected Function<GridCellTuple,Command> |
newCellHasNoValueCommand() |
protected Function<GridCellValueTuple,Command> |
newCellHasValueCommand() |
protected <V,HV extends HasValue<V>> |
newHasValueHasNoValueCommand(HV hasValue,
V emptyValue) |
protected <V,HV extends HasValue<V>> |
newHasValueHasValueCommand(HV hasValue,
V name) |
protected Function<GridCellTuple,Command> |
newHeaderHasNoValueCommand() |
protected Function<GridCellValueTuple,Command> |
newHeaderHasValueCommand() |
boolean |
onDragHandle(com.ait.lienzo.client.core.event.INodeXYEvent event) |
void |
resize(Function<BaseExpressionGrid,Double> requiredWidthSupplier) |
void |
select() |
boolean |
selectCell(int uiRowIndex,
int uiColumnIndex,
boolean isShiftKeyDown,
boolean isControlKeyDown) |
boolean |
selectCell(com.ait.lienzo.client.core.types.Point2D ap,
boolean isShiftKeyDown,
boolean isControlKeyDown) |
void |
selectExpressionEditorFirstCell(int uiRowIndex,
int uiColumnIndex) |
void |
selectFirstCell() |
boolean |
selectHeaderCell(int uiHeaderRowIndex,
int uiHeaderColumnIndex,
boolean isShiftKeyDown,
boolean isControlKeyDown) |
boolean |
selectHeaderCell(com.ait.lienzo.client.core.types.Point2D ap,
boolean isShiftKeyDown,
boolean isControlKeyDown) |
BiConsumer<HasTypeRef,QName> |
setTypeRefConsumer() |
<V,HV extends HasValue<V>> |
setValueConsumer(boolean updateStunnerTitle) |
fireDomainObjectSelectionEvent, fireDomainObjectSelectionEvent, getAndSetInitialWidth, getExpression, getNodeUUID, isOnlyVisualChangeAllowed, registerColumnResizeCompleted, showContextMenuForCell, showContextMenuForHeader
addCommandsToRenderQueue, addCommandToRenderQueue, drawBody, drawHeader, drawWithoutTransforms, executeRenderQueueCommands, getBaseGridRendererHelper, getBody, getCellSelectionManager, getGridMouseClickHandler, getGridMouseDoubleClickHandler, getHeader, getHeight, getModel, getRenderer, getRendererHelper, getWidth, isSelected, onGroupingToggle, onNodeMouseClick, renderGridBodyWidget, renderGridBoundary, renderGridHeaderWidget, renderSelectedRanges, setRenderer, setVisible, startEditingCell, startEditingCell
asGroup, getDefaultStorageEngine
add, 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, toJSONObject
asContainerNode, copy, find, findByID, getBoundingBox, getChildNodes, getChildNodes, getPathClipper, getStorageBounds, getStorageEngine, length, moveDown, moveToBottom, moveToTop, moveUp, setPathClipper, setStorageBounds, setStorageEngine
addAttributesChangedHandler, 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, drawWithTransforms, equals, fireEvent, getAbsoluteLocation, getAbsoluteTransform, getAttributes, getAttributeSheet, getBoundingPoints, getBoundingPoints, getComputedBoundingPoints, getComputedLocation, getID, getMetaData, getName, getNodeType, getOverLayer, getParent, getPossibleNodeTransform, getRequiredAttributes, getScene, getScratchPad, getUserData, hashCode, hasMetaData, isAnimating, isEventHandled, isEventHandledGlobally, isListening, isVisible, onWire, setAttributesChangedBatcher, setID, setListening, setName, setNodeType, setParent, setUserData, toJSONString, toString, unAnimating, uuid
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getItems, onItemSelected
attachToLayerColorMap, 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, setY
addAttributesChangedHandler, 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, getMetaData, getName, getNodeType, getOverLayer, getParent, getRequiredAttributes, getScene, getScratchPad, getTransformingAttributes, getUserData, hasMetaData, isEventHandled, isListening, isVisible, moveDown, moveToBottom, moveToTop, moveUp, refresh, removeFromParent, setAttributesChangedBatcher, setID, setListening, setName, setUserData, uuid
public static final double DEFAULT_PADDING
public static final Function<BaseExpressionGrid,Double> RESIZE_EXISTING
public static final Function<BaseExpressionGrid,Double> RESIZE_EXISTING_MINIMUM
protected final GridCellTuple parent
protected final DMNGridPanel gridPanel
protected final DefinitionUtils definitionUtils
protected final javax.enterprise.event.Event<ExpressionEditorChanged> editorSelectedEvent
protected final ListSelectorView.Presenter listSelector
protected final int nesting
protected M extends BaseUIModelMapper<E> uiModelMapper
public BaseExpressionGrid(GridCellTuple parent, Optional<String> nodeUUID, HasExpression hasExpression, Optional<HasName> hasName, DMNGridPanel gridPanel, DMNGridLayer gridLayer, D gridData, org.uberfire.ext.wires.core.grids.client.widget.grid.renderers.grids.GridRenderer gridRenderer, DefinitionUtils definitionUtils, SessionManager sessionManager, SessionCommandManager<AbstractCanvasHandler> sessionCommandManager, DefaultCanvasCommandFactory canvasCommandFactory, javax.enterprise.event.Event<ExpressionEditorChanged> editorSelectedEvent, javax.enterprise.event.Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent, javax.enterprise.event.Event<DomainObjectSelectionEvent> domainObjectSelectionEvent, CellEditorControlsView.Presenter cellEditorControls, ListSelectorView.Presenter listSelector, org.jboss.errai.ui.client.local.spi.TranslationService translationService, boolean isOnlyVisualChangeAllowed, int nesting)
protected void doInitialisation()
protected abstract M makeUiModelMapper()
protected abstract void initialiseUiColumns()
protected abstract void initialiseUiRows()
public abstract void initialiseUiCells()
public <V,HV extends HasValue<V>> Consumer<HV> clearValueConsumer(boolean updateStunnerTitle, V emptyValue)
public <V,HV extends HasValue<V>> BiConsumer<HV,V> setValueConsumer(boolean updateStunnerTitle)
public BiConsumer<HasTypeRef,QName> setTypeRefConsumer()
protected <V,HV extends HasValue<V>> CompositeCommand.Builder newHasValueHasNoValueCommand(HV hasValue, V emptyValue)
protected <V,HV extends HasValue<V>> CompositeCommand.Builder newHasValueHasValueCommand(HV hasValue, V name)
protected <V> Optional<AbstractCanvasGraphCommand> getUpdateStunnerTitleCommand(V value)
public TextAreaSingletonDOMElementFactory getBodyTextAreaFactory()
public AutocompleteTextAreaDOMElementFactory getAutocompleteTextareaFactory()
public ListBoxSingletonDOMElementFactory getBodyListBoxFactory()
protected Function<GridCellTuple,Command> newCellHasNoValueCommand()
protected Function<GridCellValueTuple,Command> newCellHasValueCommand()
public TextAreaSingletonDOMElementFactory getHeaderTextAreaFactory()
public TextBoxSingletonDOMElementFactory getHeaderTextBoxFactory()
protected Function<GridCellTuple,Command> newHeaderHasNoValueCommand()
protected Function<GridCellValueTuple,Command> newHeaderHasValueCommand()
protected EditableHeaderMetaData extractEditableHeaderMetaData(GridCellTuple gc)
public 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.BaseGridWidget
public 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.BaseGridWidget
public boolean onDragHandle(com.ait.lienzo.client.core.event.INodeXYEvent event)
onDragHandle
in interface org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget
public DMNGridPanel getGridPanel()
public com.ait.lienzo.client.core.shape.Viewport getViewport()
getViewport
in interface com.ait.lienzo.client.core.shape.IDrawable<com.ait.lienzo.client.core.shape.Group>
getViewport
in class com.ait.lienzo.client.core.shape.Node<com.ait.lienzo.client.core.shape.Group>
public com.ait.lienzo.client.core.shape.Layer getLayer()
getLayer
in interface com.ait.lienzo.client.core.shape.IDrawable<com.ait.lienzo.client.core.shape.Group>
getLayer
in class com.ait.lienzo.client.core.shape.Node<com.ait.lienzo.client.core.shape.Group>
public void select()
select
in interface org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget
select
in class org.uberfire.ext.wires.core.grids.client.widget.grid.impl.BaseGridWidget
public void deselect()
deselect
in interface org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget
deselect
in class org.uberfire.ext.wires.core.grids.client.widget.grid.impl.BaseGridWidget
public double getPadding()
public GridCellTuple getParentInformation()
public boolean isCacheable()
isCacheable
in interface ExpressionGridCache.IsCacheable
public double getMinimumWidth()
public void resize(Function<BaseExpressionGrid,Double> requiredWidthSupplier)
public void doResize(org.uberfire.ext.wires.core.grids.client.widget.layer.impl.GridLayerRedrawManager.PrioritizedCommand command, Function<BaseExpressionGrid,Double> requiredWidthSupplier)
public void selectFirstCell()
public boolean selectCell(com.ait.lienzo.client.core.types.Point2D ap, boolean isShiftKeyDown, boolean isControlKeyDown)
selectCell
in interface org.uberfire.ext.wires.core.grids.client.widget.grid.selections.CellSelectionManager
selectCell
in class org.uberfire.ext.wires.core.grids.client.widget.grid.impl.BaseGridWidget
public boolean selectCell(int uiRowIndex, int uiColumnIndex, boolean isShiftKeyDown, boolean isControlKeyDown)
selectCell
in interface org.uberfire.ext.wires.core.grids.client.widget.grid.selections.CellSelectionManager
selectCell
in class org.uberfire.ext.wires.core.grids.client.widget.grid.impl.BaseGridWidget
public boolean selectHeaderCell(com.ait.lienzo.client.core.types.Point2D ap, boolean isShiftKeyDown, boolean isControlKeyDown)
selectHeaderCell
in interface org.uberfire.ext.wires.core.grids.client.widget.grid.selections.CellSelectionManager
selectHeaderCell
in class org.uberfire.ext.wires.core.grids.client.widget.grid.impl.BaseGridWidget
public boolean selectHeaderCell(int uiHeaderRowIndex, int uiHeaderColumnIndex, boolean isShiftKeyDown, boolean isControlKeyDown)
selectHeaderCell
in interface org.uberfire.ext.wires.core.grids.client.widget.grid.selections.CellSelectionManager
selectHeaderCell
in class org.uberfire.ext.wires.core.grids.client.widget.grid.impl.BaseGridWidget
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.CellSelectionManager
adjustSelection
in class org.uberfire.ext.wires.core.grids.client.widget.grid.impl.BaseGridWidget
protected boolean hasAnyHeaderCellSelected()
protected boolean hasMultipleCellsSelected()
public void doAfterSelectionChange(int uiRowIndex, int uiColumnIndex)
public void doAfterHeaderSelectionChange(int uiHeaderRowIndex, int uiHeaderColumnIndex)
public void selectExpressionEditorFirstCell(int uiRowIndex, int uiColumnIndex)
public Optional<BaseExpressionGrid> findParentGrid()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.