Search in sources :

Example 1 with RestrictedMousePanMediator

use of org.uberfire.ext.wires.core.grids.client.widget.layer.pinning.impl.RestrictedMousePanMediator in project kie-wb-common by kiegroup.

the class DMNGridPanelControlImpl method bind.

@Override
public void bind(final DMNSession session) {
    final DMNGridLayer gridLayer = session.getGridLayer();
    final CellEditorControlsView.Presenter cellEditorControls = session.getCellEditorControls();
    final RestrictedMousePanMediator mousePanMediator = session.getMousePanMediator();
    final DMNGridPanelCellSelectionHandler selectionHandler = new DMNGridPanelCellSelectionHandlerImpl(gridLayer);
    final ContextMenuHandler contextMenuHandler = new DMNGridPanelContextMenuHandler(gridLayer, cellEditorControls, selectionHandler);
    this.panel = new DMNGridPanel(gridLayer, mousePanMediator, contextMenuHandler);
}
Also used : CellEditorControlsView(org.kie.workbench.common.dmn.client.widgets.grid.controls.container.CellEditorControlsView) RestrictedMousePanMediator(org.uberfire.ext.wires.core.grids.client.widget.layer.pinning.impl.RestrictedMousePanMediator) DMNGridLayer(org.kie.workbench.common.dmn.client.widgets.layer.DMNGridLayer) ContextMenuHandler(com.google.gwt.event.dom.client.ContextMenuHandler)

Example 2 with RestrictedMousePanMediator

use of org.uberfire.ext.wires.core.grids.client.widget.layer.pinning.impl.RestrictedMousePanMediator in project kie-wb-common by kiegroup.

the class MousePanMediatorControlImpl method bind.

@Override
public void bind(final DMNSession session) {
    final DMNGridLayer gridLayer = session.getGridLayer();
    this.mousePanMediator = new RestrictedMousePanMediator(gridLayer);
}
Also used : RestrictedMousePanMediator(org.uberfire.ext.wires.core.grids.client.widget.layer.pinning.impl.RestrictedMousePanMediator)

Aggregations

RestrictedMousePanMediator (org.uberfire.ext.wires.core.grids.client.widget.layer.pinning.impl.RestrictedMousePanMediator)2 ContextMenuHandler (com.google.gwt.event.dom.client.ContextMenuHandler)1 CellEditorControlsView (org.kie.workbench.common.dmn.client.widgets.grid.controls.container.CellEditorControlsView)1 DMNGridLayer (org.kie.workbench.common.dmn.client.widgets.layer.DMNGridLayer)1