Search in sources :

Example 1 with NodeMouseEventHandler

use of org.uberfire.ext.wires.core.grids.client.widget.grid.NodeMouseEventHandler in project drools-wb by kiegroup.

the class ScenarioGrid method getNodeMouseDoubleClickEventHandlers.

@Override
protected List<NodeMouseEventHandler> getNodeMouseDoubleClickEventHandlers(final GridSelectionManager selectionManager, final GridPinnedModeManager pinnedModeManager) {
    final List<NodeMouseEventHandler> handlers = new ArrayList<>();
    handlers.add(new ScenarioSimulationGridWidgetMouseEventHandler());
    return handlers;
}
Also used : ArrayList(java.util.ArrayList) ScenarioSimulationGridWidgetMouseEventHandler(org.drools.workbench.screens.scenariosimulation.client.handlers.ScenarioSimulationGridWidgetMouseEventHandler) NodeMouseEventHandler(org.uberfire.ext.wires.core.grids.client.widget.grid.NodeMouseEventHandler)

Example 2 with NodeMouseEventHandler

use of org.uberfire.ext.wires.core.grids.client.widget.grid.NodeMouseEventHandler in project kie-wb-common by kiegroup.

the class UndefinedExpressionGrid method getNodeMouseClickEventHandlers.

@Override
public List<NodeMouseEventHandler> getNodeMouseClickEventHandlers(final GridSelectionManager selectionManager) {
    final List<NodeMouseEventHandler> handlers = new ArrayList<>();
    handlers.add(new DelegatingGridWidgetCellSelectorMouseEventHandler(selectionManager, this::getParentInformation, () -> nesting));
    handlers.add(new DelegatingGridWidgetEditCellMouseEventHandler(this::getParentInformation, () -> nesting));
    return handlers;
}
Also used : DelegatingGridWidgetEditCellMouseEventHandler(org.kie.workbench.common.dmn.client.widgets.grid.handlers.DelegatingGridWidgetEditCellMouseEventHandler) DelegatingGridWidgetCellSelectorMouseEventHandler(org.kie.workbench.common.dmn.client.widgets.grid.handlers.DelegatingGridWidgetCellSelectorMouseEventHandler) ArrayList(java.util.ArrayList) NodeMouseEventHandler(org.uberfire.ext.wires.core.grids.client.widget.grid.NodeMouseEventHandler)

Example 3 with NodeMouseEventHandler

use of org.uberfire.ext.wires.core.grids.client.widget.grid.NodeMouseEventHandler in project kie-wb-common by kiegroup.

the class LiteralExpressionPMMLGrid method getNodeMouseClickEventHandlers.

@Override
public List<NodeMouseEventHandler> getNodeMouseClickEventHandlers(final GridSelectionManager selectionManager) {
    final List<NodeMouseEventHandler> handlers = new ArrayList<>();
    handlers.add(new DelegatingGridWidgetCellSelectorMouseEventHandler(selectionManager, this::getParentInformation, () -> nesting));
    return handlers;
}
Also used : DelegatingGridWidgetCellSelectorMouseEventHandler(org.kie.workbench.common.dmn.client.widgets.grid.handlers.DelegatingGridWidgetCellSelectorMouseEventHandler) ArrayList(java.util.ArrayList) NodeMouseEventHandler(org.uberfire.ext.wires.core.grids.client.widget.grid.NodeMouseEventHandler)

Example 4 with NodeMouseEventHandler

use of org.uberfire.ext.wires.core.grids.client.widget.grid.NodeMouseEventHandler in project kie-wb-common by kiegroup.

the class BaseExpressionGrid method getNodeMouseClickEventHandlers.

@Override
public List<NodeMouseEventHandler> getNodeMouseClickEventHandlers(final GridSelectionManager selectionManager) {
    final List<NodeMouseEventHandler> handlers = new ArrayList<>();
    handlers.add(new DefaultGridWidgetCellSelectorMouseEventHandler(selectionManager));
    handlers.add(new EditableHeaderGridWidgetEditCellMouseEventHandler());
    return handlers;
}
Also used : EditableHeaderGridWidgetEditCellMouseEventHandler(org.kie.workbench.common.dmn.client.widgets.grid.handlers.EditableHeaderGridWidgetEditCellMouseEventHandler) ArrayList(java.util.ArrayList) DefaultGridWidgetCellSelectorMouseEventHandler(org.uberfire.ext.wires.core.grids.client.widget.grid.impl.DefaultGridWidgetCellSelectorMouseEventHandler) NodeMouseEventHandler(org.uberfire.ext.wires.core.grids.client.widget.grid.NodeMouseEventHandler)

Example 5 with NodeMouseEventHandler

use of org.uberfire.ext.wires.core.grids.client.widget.grid.NodeMouseEventHandler in project kie-wb-common by kiegroup.

the class LiteralExpressionGrid method getNodeMouseClickEventHandlers.

@Override
public List<NodeMouseEventHandler> getNodeMouseClickEventHandlers(final GridSelectionManager selectionManager) {
    final List<NodeMouseEventHandler> handlers = new ArrayList<>();
    handlers.add(new DelegatingGridWidgetCellSelectorMouseEventHandler(selectionManager, this::getParentInformation, () -> nesting));
    handlers.add(new EditableHeaderGridWidgetEditCellMouseEventHandler());
    return handlers;
}
Also used : DelegatingGridWidgetCellSelectorMouseEventHandler(org.kie.workbench.common.dmn.client.widgets.grid.handlers.DelegatingGridWidgetCellSelectorMouseEventHandler) EditableHeaderGridWidgetEditCellMouseEventHandler(org.kie.workbench.common.dmn.client.widgets.grid.handlers.EditableHeaderGridWidgetEditCellMouseEventHandler) ArrayList(java.util.ArrayList) NodeMouseEventHandler(org.uberfire.ext.wires.core.grids.client.widget.grid.NodeMouseEventHandler)

Aggregations

ArrayList (java.util.ArrayList)7 NodeMouseEventHandler (org.uberfire.ext.wires.core.grids.client.widget.grid.NodeMouseEventHandler)7 DelegatingGridWidgetCellSelectorMouseEventHandler (org.kie.workbench.common.dmn.client.widgets.grid.handlers.DelegatingGridWidgetCellSelectorMouseEventHandler)3 EditableHeaderGridWidgetEditCellMouseEventHandler (org.kie.workbench.common.dmn.client.widgets.grid.handlers.EditableHeaderGridWidgetEditCellMouseEventHandler)3 DefaultGridWidgetCellSelectorMouseEventHandler (org.uberfire.ext.wires.core.grids.client.widget.grid.impl.DefaultGridWidgetCellSelectorMouseEventHandler)2 ScenarioSimulationGridWidgetMouseEventHandler (org.drools.workbench.screens.scenariosimulation.client.handlers.ScenarioSimulationGridWidgetMouseEventHandler)1 DelegatingGridWidgetEditCellMouseEventHandler (org.kie.workbench.common.dmn.client.widgets.grid.handlers.DelegatingGridWidgetEditCellMouseEventHandler)1