@Test public void testDestroy() { tested.destroy(); verify(floatingView, times(1)).destroy(); }
@PreDestroy public void destroy() { cancelHide(); if (null != panelResizeHandlerRegistration) { panelResizeHandlerRegistration.removeHandler(); panelResizeHandlerRegistration = null; } if (null != transformChangedHandler) { transformChangedHandler.removeHandler(); transformChangedHandler = null; } if (null != selectorOverHandler) { selectorOverHandler.removeHandler(); selectorOverHandler = null; } floatingView.destroy(); canvas = null; hideTimer = null; }
ZoomLevelSelectorPresenter { @PreDestroy public void destroy() { cancelHide(); if (null != panelResizeHandlerRegistration) { panelResizeHandlerRegistration.removeHandler(); panelResizeHandlerRegistration = null; } if (null != transformChangedHandler) { transformChangedHandler.removeHandler(); transformChangedHandler = null; } if (null != selectorOverHandler) { selectorOverHandler.removeHandler(); selectorOverHandler = null; } floatingView.destroy(); canvas = null; hideTimer = null; } }
ZoomLevelSelectorPresenter { @PreDestroy public void destroy() { cancelHide(); if (null != panelResizeHandlerRegistration) { panelResizeHandlerRegistration.removeHandler(); panelResizeHandlerRegistration = null; } if (null != transformChangedHandler) { transformChangedHandler.removeHandler(); transformChangedHandler = null; } if (null != selectorOverHandler) { selectorOverHandler.removeHandler(); selectorOverHandler = null; } floatingView.destroy(); canvas = null; hideTimer = null; } @Inject  ZoomLevelSelectorPresenter(final ClientTranslationService translationService,
                                      final FloatingView<IsWidget> floatingView,
                                      final ZoomLevelSelector selector); }
ZoomLevelSelectorPresenter { @PreDestroy public void destroy() { cancelHide(); if (null != panelResizeHandlerRegistration) { panelResizeHandlerRegistration.removeHandler(); panelResizeHandlerRegistration = null; } if (null != transformChangedHandler) { transformChangedHandler.removeHandler(); transformChangedHandler = null; } if (null != selectorOverHandler) { selectorOverHandler.removeHandler(); selectorOverHandler = null; } floatingView.destroy(); canvas = null; hideTimer = null; } @Inject  ZoomLevelSelectorPresenter(final ClientTranslationService translationService,
                                      final FloatingView<IsWidget> floatingView,
                                      final ZoomLevelSelector selector); @PostConstruct void construct(); ZoomLevelSelectorPresenter init(final Supplier<LienzoCanvas> canvas); ZoomLevelSelectorPresenter setMinScale(double minScale); ZoomLevelSelectorPresenter setMaxScale(double maxScale); ZoomLevelSelectorPresenter setZoomFactor(double zoomFactor); ZoomLevelSelectorPresenter at(final double x,
                                         final double y); ZoomLevelSelectorPresenter show(); ZoomLevelSelectorPresenter hide(); @PreDestroy void destroy(); }
ZoomLevelSelectorPresenter { @PreDestroy public void destroy() { cancelHide(); if (null != panelResizeHandlerRegistration) { panelResizeHandlerRegistration.removeHandler(); panelResizeHandlerRegistration = null; } if (null != transformChangedHandler) { transformChangedHandler.removeHandler(); transformChangedHandler = null; } if (null != selectorOverHandler) { selectorOverHandler.removeHandler(); selectorOverHandler = null; } floatingView.destroy(); canvas = null; hideTimer = null; } @Inject  ZoomLevelSelectorPresenter(final ClientTranslationService translationService,
                                      final FloatingView<IsWidget> floatingView,
                                      final ZoomLevelSelector selector); @PostConstruct void construct(); ZoomLevelSelectorPresenter init(final Supplier<LienzoCanvas> canvas); ZoomLevelSelectorPresenter setMinScale(double minScale); ZoomLevelSelectorPresenter setMaxScale(double maxScale); ZoomLevelSelectorPresenter setZoomFactor(double zoomFactor); ZoomLevelSelectorPresenter at(final double x,
                                         final double y); ZoomLevelSelectorPresenter show(); ZoomLevelSelectorPresenter hide(); @PreDestroy void destroy();  }