@Test public void testSelectElementWithEvent() { final CanvasSelectionEvent event = new CanvasSelectionEvent(canvasHandler, ELEMENT_UUID); control.handleCanvasElementSelectedEvent(event); assertElementSelected(); }
@Override protected void handleCanvasElementSelectedEvent(final CanvasSelectionEvent event) { selectedDomainObject = Optional.empty(); super.handleCanvasElementSelectedEvent(event); }
DomainObjectAwareLienzoMultipleSelectionControl extends LienzoMultipleSelectionControl<H> { @Override protected void handleCanvasElementSelectedEvent(final CanvasSelectionEvent event) { selectedDomainObject = Optional.empty(); super.handleCanvasElementSelectedEvent(event); } }
DomainObjectAwareLienzoMultipleSelectionControl extends LienzoMultipleSelectionControl<H> { @Override protected void handleCanvasElementSelectedEvent(final CanvasSelectionEvent event) { selectedDomainObject = Optional.empty(); super.handleCanvasElementSelectedEvent(event); } @Inject  DomainObjectAwareLienzoMultipleSelectionControl(final Event<CanvasSelectionEvent> canvasSelectionEvent,
                                                           final Event<CanvasClearSelectionEvent> clearSelectionEvent,
                                                           final DRDContextMenu drdContextMenu); }
DomainObjectAwareLienzoMultipleSelectionControl extends LienzoMultipleSelectionControl<H> { @Override protected void handleCanvasElementSelectedEvent(final CanvasSelectionEvent event) { selectedDomainObject = Optional.empty(); super.handleCanvasElementSelectedEvent(event); } @Inject  DomainObjectAwareLienzoMultipleSelectionControl(final Event<CanvasSelectionEvent> canvasSelectionEvent,
                                                           final Event<CanvasClearSelectionEvent> clearSelectionEvent,
                                                           final DRDContextMenu drdContextMenu); @Override Optional<Object> getSelectedItemDefinition(); @Override SelectionControl<H, Element> select(final String uuid); @Override void clear(); @Override void destroy(); }
DomainObjectAwareLienzoMultipleSelectionControl extends LienzoMultipleSelectionControl<H> { @Override protected void handleCanvasElementSelectedEvent(final CanvasSelectionEvent event) { selectedDomainObject = Optional.empty(); super.handleCanvasElementSelectedEvent(event); } @Inject  DomainObjectAwareLienzoMultipleSelectionControl(final Event<CanvasSelectionEvent> canvasSelectionEvent,
                                                           final Event<CanvasClearSelectionEvent> clearSelectionEvent,
                                                           final DRDContextMenu drdContextMenu); @Override Optional<Object> getSelectedItemDefinition(); @Override SelectionControl<H, Element> select(final String uuid); @Override void clear(); @Override void destroy();  }