Initially I create a rendering context for rendering a scene and then I have a button to add models to the scene but it loads a preview first in a new GwtRenderingContext. At the moment when I add the ViewerWidget it does not render the preview but adds the element to the page and at the same time detach the rendering1 clears content.
rendering1 = new GwtRenderingContext(PageExample.this.content);
rendering2 = new GwtRenderingContext(ViewerWidget.this.viewer);
I just don't get to create different widgets. content and viewer are SimpleLayoutPanel in PageExample.java ui bind with PageExample.ui.xml and ViewerWidget.java ui bind with ViewerWidget.ui.xml
Initially I create a rendering context for rendering a scene and then I have a button to add models to the scene but it loads a preview first in a new GwtRenderingContext. At the moment when I add the ViewerWidget it does not render the preview but adds the element to the page and at the same time detach the rendering1 clears content.
rendering1 = new GwtRenderingContext(PageExample.this.content); rendering2 = new GwtRenderingContext(ViewerWidget.this.viewer);
I just don't get to create different widgets. content and viewer are SimpleLayoutPanel in PageExample.java ui bind with PageExample.ui.xml and ViewerWidget.java ui bind with ViewerWidget.ui.xml