Search in sources :

Example 1 with EditableHeaderGridWidgetEditCellMouseEventHandler

use of org.kie.workbench.common.dmn.client.widgets.grid.handlers.EditableHeaderGridWidgetEditCellMouseEventHandler 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 2 with EditableHeaderGridWidgetEditCellMouseEventHandler

use of org.kie.workbench.common.dmn.client.widgets.grid.handlers.EditableHeaderGridWidgetEditCellMouseEventHandler 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)

Example 3 with EditableHeaderGridWidgetEditCellMouseEventHandler

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

the class BaseExpressionGrid method getNodeMouseDoubleClickEventHandlers.

@Override
public List<NodeMouseEventHandler> getNodeMouseDoubleClickEventHandlers(final GridSelectionManager selectionManager, final GridPinnedModeManager pinnedModeManager) {
    final List<NodeMouseEventHandler> handlers = new ArrayList<>();
    handlers.add(new EditableHeaderGridWidgetEditCellMouseEventHandler());
    return handlers;
}
Also used : 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)3 EditableHeaderGridWidgetEditCellMouseEventHandler (org.kie.workbench.common.dmn.client.widgets.grid.handlers.EditableHeaderGridWidgetEditCellMouseEventHandler)3 NodeMouseEventHandler (org.uberfire.ext.wires.core.grids.client.widget.grid.NodeMouseEventHandler)3 DelegatingGridWidgetCellSelectorMouseEventHandler (org.kie.workbench.common.dmn.client.widgets.grid.handlers.DelegatingGridWidgetCellSelectorMouseEventHandler)1 DefaultGridWidgetCellSelectorMouseEventHandler (org.uberfire.ext.wires.core.grids.client.widget.grid.impl.DefaultGridWidgetCellSelectorMouseEventHandler)1