@Test public void testGetElement() { HTMLElement element = mock(HTMLElement.class); when(view.getElement()).thenReturn(element); assertEquals(element, widget.getElement()); }
@Override public HTMLElement getElement() { return view.getElement(); }
DefinitionPaletteCategoryWidget implements DefinitionPaletteCategoryWidgetView.Presenter { @Override public HTMLElement getElement() { return view.getElement(); } }
DefinitionPaletteCategoryWidget implements DefinitionPaletteCategoryWidgetView.Presenter { @Override public HTMLElement getElement() { return view.getElement(); } @Inject  DefinitionPaletteCategoryWidget(DefinitionPaletteCategoryWidgetView view,
                                           ManagedInstance<DefinitionPaletteItemWidget> definitionPaletteItemWidgetInstance,
                                           ManagedInstance<DefinitionPaletteGroupWidget> definitionPaletteGroupWidgetInstance); }
DefinitionPaletteCategoryWidget implements DefinitionPaletteCategoryWidgetView.Presenter { @Override public HTMLElement getElement() { return view.getElement(); } @Inject  DefinitionPaletteCategoryWidget(DefinitionPaletteCategoryWidgetView view,
                                           ManagedInstance<DefinitionPaletteItemWidget> definitionPaletteItemWidgetInstance,
                                           ManagedInstance<DefinitionPaletteGroupWidget> definitionPaletteGroupWidgetInstance); @PostConstruct void setUp(); @Override HTMLElement getElement(); @Override void initialize(final DefaultPaletteCategory category,
                           final ShapeFactory<?, ?> shapeFactory,
                           final Consumer<PaletteItemMouseEvent> itemMouseDownCallback); void setOnOpenCallback(Consumer<DefaultPaletteCategory> onOpenCallback); void setOnCloseCallback(Consumer<DefaultPaletteCategory> onCloseCallback); void setVisible(final boolean visible); boolean isVisible(); void setAutoHidePanel(boolean autoHidePanel); DefinitionPaletteCategoryWidgetView getView(); @Override DefaultPaletteCategory getCategory(); @Override void onMouseDown(int clientX,
                            int clientY,
                            int x,
                            int y); @Override void onOpen(); @Override void onClose(); @PreDestroy void destroy(); }
DefinitionPaletteCategoryWidget implements DefinitionPaletteCategoryWidgetView.Presenter { @Override public HTMLElement getElement() { return view.getElement(); } @Inject  DefinitionPaletteCategoryWidget(DefinitionPaletteCategoryWidgetView view,
                                           ManagedInstance<DefinitionPaletteItemWidget> definitionPaletteItemWidgetInstance,
                                           ManagedInstance<DefinitionPaletteGroupWidget> definitionPaletteGroupWidgetInstance); @PostConstruct void setUp(); @Override HTMLElement getElement(); @Override void initialize(final DefaultPaletteCategory category,
                           final ShapeFactory<?, ?> shapeFactory,
                           final Consumer<PaletteItemMouseEvent> itemMouseDownCallback); void setOnOpenCallback(Consumer<DefaultPaletteCategory> onOpenCallback); void setOnCloseCallback(Consumer<DefaultPaletteCategory> onCloseCallback); void setVisible(final boolean visible); boolean isVisible(); void setAutoHidePanel(boolean autoHidePanel); DefinitionPaletteCategoryWidgetView getView(); @Override DefaultPaletteCategory getCategory(); @Override void onMouseDown(int clientX,
                            int clientY,
                            int x,
                            int y); @Override void onOpen(); @Override void onClose(); @PreDestroy void destroy();  }