@Test public void testMakeDragHandler() { final Glyph glyph = mock(Glyph.class); final Item item = view.makeDragHandler(glyph); assertEquals(16, item.getHeight()); assertEquals(16, item.getWidth()); assertEquals(glyph, item.getShape()); }
ShapeGlyphDragHandler.Item makeDragHandler(final Glyph glyph) { return new DragHandler(glyph); }
DecisionComponentsItemView implements DecisionComponentsItem.View { ShapeGlyphDragHandler.Item makeDragHandler(final Glyph glyph) { return new DragHandler(glyph); } }
DecisionComponentsItemView implements DecisionComponentsItem.View { ShapeGlyphDragHandler.Item makeDragHandler(final Glyph glyph) { return new DragHandler(glyph); } @Inject  DecisionComponentsItemView(final HTMLImageElement icon,
                                      final @Named("h5") HTMLHeadingElement name,
                                      final HTMLParagraphElement file,
                                      final DMNShapeSet dmnShapeSet,
                                      final SessionManager sessionManager,
                                      final ShapeGlyphDragHandler shapeGlyphDragHandler,
                                      final Event<BuildCanvasShapeEvent> buildCanvasShapeEvent,
                                      final HTMLDivElement decisionComponentItem,
                                      final Event<NotificationEvent> notificationEvent,
                                      final ClientTranslationService clientTranslationService); }
DecisionComponentsItemView implements DecisionComponentsItem.View { ShapeGlyphDragHandler.Item makeDragHandler(final Glyph glyph) { return new DragHandler(glyph); } @Inject  DecisionComponentsItemView(final HTMLImageElement icon,
                                      final @Named("h5") HTMLHeadingElement name,
                                      final HTMLParagraphElement file,
                                      final DMNShapeSet dmnShapeSet,
                                      final SessionManager sessionManager,
                                      final ShapeGlyphDragHandler shapeGlyphDragHandler,
                                      final Event<BuildCanvasShapeEvent> buildCanvasShapeEvent,
                                      final HTMLDivElement decisionComponentItem,
                                      final Event<NotificationEvent> notificationEvent,
                                      final ClientTranslationService clientTranslationService); @Override void init(final DecisionComponentsItem presenter); @Override void setIcon(final String iconURI); @Override void setName(final String name); @Override void setFile(final String file); @Override void setIsImported(final boolean imported); @EventHandler("decision-component-item") void decisionComponentItemMouseDown(final MouseDownEvent mouseDownEvent); }
DecisionComponentsItemView implements DecisionComponentsItem.View { ShapeGlyphDragHandler.Item makeDragHandler(final Glyph glyph) { return new DragHandler(glyph); } @Inject  DecisionComponentsItemView(final HTMLImageElement icon,
                                      final @Named("h5") HTMLHeadingElement name,
                                      final HTMLParagraphElement file,
                                      final DMNShapeSet dmnShapeSet,
                                      final SessionManager sessionManager,
                                      final ShapeGlyphDragHandler shapeGlyphDragHandler,
                                      final Event<BuildCanvasShapeEvent> buildCanvasShapeEvent,
                                      final HTMLDivElement decisionComponentItem,
                                      final Event<NotificationEvent> notificationEvent,
                                      final ClientTranslationService clientTranslationService); @Override void init(final DecisionComponentsItem presenter); @Override void setIcon(final String iconURI); @Override void setName(final String name); @Override void setFile(final String file); @Override void setIsImported(final boolean imported); @EventHandler("decision-component-item") void decisionComponentItemMouseDown(final MouseDownEvent mouseDownEvent);  }