Package elemental.html

Examples of elemental.html.Element.removeFromParent()


      }
    });

    Element element = line.getTag(LINE_TAG_LINE_ELEMENT);
    if (element != null && buffer.hasLineElement(element)) {
      element.removeFromParent();
      line.putTag(LINE_TAG_LINE_ELEMENT, null);
    }

    handleLineLeftViewport(line);
  }
View Full Code Here


        }
      } else {
        if (repeatCount > 1) {
          repeatCountElement.setTextContent(Integer.toString(repeatCount));
        } else {
          repeatCountElement.removeFromParent();
        }
      }
    }

    private Element formatRemoteObjectInConsole(RemoteObject remoteObject,
View Full Code Here

    debuggingModelController.cleanup();

    // TODO: remove
    Element readOnlyElement = Elements.getElementById("readOnly");
    if (readOnlyElement != null) {
      readOnlyElement.removeFromParent();
    }
  }

  /**
   * Detach services attached on {@link #setDocument}.
View Full Code Here

  public void gwtTearDown() throws Exception {
    super.gwtTearDown();
    Element iframe =
        Elements.getDocument().getElementById(FileTreeContextMenuController.DOWNLOAD_FRAME_ID);
    if (iframe != null) {
      iframe.removeFromParent();
    }
  }

  public void testDownloadUnknownWorkspace() {
    FileTreeNode data = null;
View Full Code Here

        Elements.getDocument().getElementById(FileTreeContextMenuController.DOWNLOAD_FRAME_ID);
    assertFalse(iframe == null);
    String url = ((IFrameElement) iframe).getSrc();
    assertTrue("Bad url: " + url, url.contains("/Mock_Workspace.zip?rt=zip&"));
    assertTrue("Bad url: " + url, url.endsWith("&file=/"));
    iframe.removeFromParent();

    controller.handleDownload(null, true);

    iframe = Elements.getDocument().getElementById(FileTreeContextMenuController.DOWNLOAD_FRAME_ID);
    assertFalse(iframe == null);
View Full Code Here

    iframe = Elements.getDocument().getElementById(FileTreeContextMenuController.DOWNLOAD_FRAME_ID);
    assertFalse(iframe == null);
    url = ((IFrameElement) iframe).getSrc();
    assertTrue("Bad url: " + url, url.contains("/Mock_Workspace.zip?rt=zip&"));
    assertTrue("Bad url: " + url, url.endsWith("&file=/"));
    iframe.removeFromParent();
  }

  public void testBadCharacterWorkspace() {
    FileTreeNode data = null;
    TreeNodeElement<FileTreeNode> parentTreeNode = tree.getNode(tree.getModel().getRoot());
View Full Code Here

    // Force scrollbars
    container.getStyle().setOverflow(CSSStyleDeclaration.Overflow.SCROLL);
    heightOfHorizontalScrollbar = noScrollbarClientHeight - container.getClientHeight();
    widthOfVerticalScrollbar = noScrollbarClientWidth - container.getClientWidth();

    container.removeFromParent();
  }

  private Element createContainer() {
    Element container = Elements.createDivElement();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.