Search in sources :

Example 1 with KeyboardOperationEditCell

use of org.kie.workbench.common.dmn.client.widgets.grid.keyboard.KeyboardOperationEditCell in project kie-wb-common by kiegroup.

the class ExpressionEditorViewImpl method setupGridPanel.

protected void setupGridPanel() {
    final Transform transform = new Transform().scale(VP_SCALE);
    gridPanel.getElement().setId("dmn_container_" + com.google.gwt.dom.client.Document.get().createUniqueId());
    gridPanel.getViewport().setTransform(transform);
    final BaseGridWidgetKeyboardHandler handler = new BaseGridWidgetKeyboardHandler(gridLayer);
    addKeyboardOperation(handler, new KeyboardOperationEditCell(gridLayer));
    addKeyboardOperation(handler, new KeyboardOperationEscapeGridCell(gridLayer));
    addKeyboardOperation(handler, new KeyboardOperationMoveLeft(gridLayer, gridPanel));
    addKeyboardOperation(handler, new KeyboardOperationMoveRight(gridLayer, gridPanel));
    addKeyboardOperation(handler, new KeyboardOperationMoveUp(gridLayer, gridPanel));
    addKeyboardOperation(handler, new KeyboardOperationMoveDown(gridLayer, gridPanel));
    addKeyboardOperation(handler, new KeyboardOperationInvokeContextMenuForSelectedCell(gridLayer));
    gridPanel.addKeyDownHandler(handler);
    gridPanelContainer.clear();
    gridPanelContainer.setWidget(gridPanel);
}
Also used : KeyboardOperationMoveDown(org.uberfire.ext.wires.core.grids.client.widget.grid.impl.KeyboardOperationMoveDown) KeyboardOperationEditCell(org.kie.workbench.common.dmn.client.widgets.grid.keyboard.KeyboardOperationEditCell) KeyboardOperationMoveRight(org.uberfire.ext.wires.core.grids.client.widget.grid.impl.KeyboardOperationMoveRight) KeyboardOperationMoveUp(org.uberfire.ext.wires.core.grids.client.widget.grid.impl.KeyboardOperationMoveUp) BaseGridWidgetKeyboardHandler(org.uberfire.ext.wires.core.grids.client.widget.grid.impl.BaseGridWidgetKeyboardHandler) KeyboardOperationInvokeContextMenuForSelectedCell(org.kie.workbench.common.dmn.client.widgets.grid.keyboard.KeyboardOperationInvokeContextMenuForSelectedCell) Transform(com.ait.lienzo.client.core.types.Transform) KeyboardOperationEscapeGridCell(org.kie.workbench.common.dmn.client.widgets.grid.keyboard.KeyboardOperationEscapeGridCell) KeyboardOperationMoveLeft(org.uberfire.ext.wires.core.grids.client.widget.grid.impl.KeyboardOperationMoveLeft)

Aggregations

Transform (com.ait.lienzo.client.core.types.Transform)1 KeyboardOperationEditCell (org.kie.workbench.common.dmn.client.widgets.grid.keyboard.KeyboardOperationEditCell)1 KeyboardOperationEscapeGridCell (org.kie.workbench.common.dmn.client.widgets.grid.keyboard.KeyboardOperationEscapeGridCell)1 KeyboardOperationInvokeContextMenuForSelectedCell (org.kie.workbench.common.dmn.client.widgets.grid.keyboard.KeyboardOperationInvokeContextMenuForSelectedCell)1 BaseGridWidgetKeyboardHandler (org.uberfire.ext.wires.core.grids.client.widget.grid.impl.BaseGridWidgetKeyboardHandler)1 KeyboardOperationMoveDown (org.uberfire.ext.wires.core.grids.client.widget.grid.impl.KeyboardOperationMoveDown)1 KeyboardOperationMoveLeft (org.uberfire.ext.wires.core.grids.client.widget.grid.impl.KeyboardOperationMoveLeft)1 KeyboardOperationMoveRight (org.uberfire.ext.wires.core.grids.client.widget.grid.impl.KeyboardOperationMoveRight)1 KeyboardOperationMoveUp (org.uberfire.ext.wires.core.grids.client.widget.grid.impl.KeyboardOperationMoveUp)1