@Test public void testSelectDomainObjectWithEvent() { final DomainObjectSelectionEvent event = new DomainObjectSelectionEvent(canvasHandler, domainObject); control.handleDomainObjectSelectedEvent(event); assertDomainObjectSelected(); }
void handleDomainObjectSelectedEvent(final @Observes DomainObjectSelectionEvent event) { checkNotNull("event", event); if (Objects.equals(getCanvasHandler(), event.getCanvasHandler())) { selectedDomainObject = Optional.ofNullable(event.getDomainObject()); } }
DomainObjectAwareLienzoMultipleSelectionControl extends LienzoMultipleSelectionControl<H> { void handleDomainObjectSelectedEvent(final @Observes DomainObjectSelectionEvent event) { checkNotNull("event", event); if (Objects.equals(getCanvasHandler(), event.getCanvasHandler())) { selectedDomainObject = Optional.ofNullable(event.getDomainObject()); } } }
DomainObjectAwareLienzoMultipleSelectionControl extends LienzoMultipleSelectionControl<H> { void handleDomainObjectSelectedEvent(final @Observes DomainObjectSelectionEvent event) { checkNotNull("event", event); if (Objects.equals(getCanvasHandler(), event.getCanvasHandler())) { selectedDomainObject = Optional.ofNullable(event.getDomainObject()); } } @Inject  DomainObjectAwareLienzoMultipleSelectionControl(final Event<CanvasSelectionEvent> canvasSelectionEvent,
                                                           final Event<CanvasClearSelectionEvent> clearSelectionEvent,
                                                           final DRDContextMenu drdContextMenu); }
DomainObjectAwareLienzoMultipleSelectionControl extends LienzoMultipleSelectionControl<H> { void handleDomainObjectSelectedEvent(final @Observes DomainObjectSelectionEvent event) { checkNotNull("event", event); if (Objects.equals(getCanvasHandler(), event.getCanvasHandler())) { selectedDomainObject = Optional.ofNullable(event.getDomainObject()); } } @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> { void handleDomainObjectSelectedEvent(final @Observes DomainObjectSelectionEvent event) { checkNotNull("event", event); if (Objects.equals(getCanvasHandler(), event.getCanvasHandler())) { selectedDomainObject = Optional.ofNullable(event.getDomainObject()); } } @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();  }