@Test public void testBind() { control.bind(session); assertNotNull(control.getGridPanel()); }
@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); }
DMNGridPanelControlImpl extends AbstractCanvasControl<AbstractCanvas> implements DMNGridPanelControl { @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); } }
DMNGridPanelControlImpl extends AbstractCanvasControl<AbstractCanvas> implements DMNGridPanelControl { @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); }  }
DMNGridPanelControlImpl extends AbstractCanvasControl<AbstractCanvas> implements DMNGridPanelControl { @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); }  @Override void bind(final DMNSession session); @Override DMNGridPanel getGridPanel(); }
DMNGridPanelControlImpl extends AbstractCanvasControl<AbstractCanvas> implements DMNGridPanelControl { @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); }  @Override void bind(final DMNSession session); @Override DMNGridPanel getGridPanel();  }