Exemplo n.º 1
0
 public void dispose() {
   super.dispose();
   if (null != element && element.hasParentElement()) {
     element.removeFromParent();
   }
   targetElementId = null;
 }
Exemplo n.º 2
0
 /** If the DOM element containing the canvas is not visible, we first scroll it into view */
 public void ensureViewVisible() {
   super.ensureViewVisible();
   DOM.scrollIntoView(DOM.getElementById(targetElementId)); // containerDivId
 }