@Test public void checkPreDestructionRemovesResourcesFromDOM() { view.destroy(); verify(picture).removeFromParent(); verify(imageElement).removeFromParent(); }
@Override public void destroy() { super.destroy(); LienzoPictureUtils.tryDestroy(getPicture(), (p) -> Scheduler.get().scheduleFixedDelay(() -> !LienzoPictureUtils.retryDestroy(p), 200)); }
PictureShapeView extends WiresContainerShapeView<T> { @Override public void destroy() { super.destroy(); LienzoPictureUtils.tryDestroy(getPicture(), (p) -> Scheduler.get().scheduleFixedDelay(() -> !LienzoPictureUtils.retryDestroy(p), 200)); } }
PictureShapeView extends WiresContainerShapeView<T> { @Override public void destroy() { super.destroy(); LienzoPictureUtils.tryDestroy(getPicture(), (p) -> Scheduler.get().scheduleFixedDelay(() -> !LienzoPictureUtils.retryDestroy(p), 200)); } PictureShapeView(final String uri,
                            final double width,
                            final double height);  PictureShapeView(final MultiPath path); }
PictureShapeView extends WiresContainerShapeView<T> { @Override public void destroy() { super.destroy(); LienzoPictureUtils.tryDestroy(getPicture(), (p) -> Scheduler.get().scheduleFixedDelay(() -> !LienzoPictureUtils.retryDestroy(p), 200)); } PictureShapeView(final String uri,
                            final double width,
                            final double height);  PictureShapeView(final MultiPath path); @Override void destroy(); }
PictureShapeView extends WiresContainerShapeView<T> { @Override public void destroy() { super.destroy(); LienzoPictureUtils.tryDestroy(getPicture(), (p) -> Scheduler.get().scheduleFixedDelay(() -> !LienzoPictureUtils.retryDestroy(p), 200)); } PictureShapeView(final String uri,
                            final double width,
                            final double height);  PictureShapeView(final MultiPath path); @Override void destroy();  }