Examples of JsElement


Examples of elemental.js.dom.JsElement

      if (oldRenderedNode == null) {
        expandedPaths.clear();
        return expandedPaths;
      }

      JsElement parentElem = oldRenderedNode.getParentElement();

      // The old node may have been moved from a rendered to a non-rendered
      // state (e.g., into a collapsed folder). In that case, it doesn't have a
      // parent, and we're done here.
      if (parentElem == null) {
        expandedPaths.clear();
        return expandedPaths;
      }

      // Make a new tree node.
      newRenderedNode = createNode(incomingSubtreeData);
      parentElem.insertBefore(newRenderedNode, oldRenderedNode);

      // Remove the old rendered node from the tree.
      oldRenderedNode.removeFromParent();
    }
View Full Code Here

Examples of elemental.js.html.JsElement

      return;
    }
    isShowing = true;

    // Attach the popup to the body.
    final JsElement popup = getView().popup.cast();
    if (popup.getParentElement() == null) {
      // Hide the popup so it can enter its initial state without flickering.
      popup.getStyle().setVisibility("hidden");
      Elements.getBody().appendChild(popup);
    }

    // Start the animation after the element is attached.
    Scheduler.get().scheduleDeferred(new ScheduledCommand() {
      @Override
      public void execute() {
        // The popup may have been hidden before this timer executes.
        if (isShowing) {
          popup.getStyle().removeProperty("visibility");
          getView().setShowing(true);
          if (selectAndFocusElement != null) {
            selectAndFocusElement.select();
            selectAndFocusElement.focus();
          }
View Full Code Here

Examples of elemental.js.html.JsElement

      if (oldRenderedNode == null) {
        expandedPaths.clear();
        return expandedPaths;
      }

      JsElement parentElem = oldRenderedNode.getParentElement();

      // The old node may have been moved from a rendered to a non-rendered
      // state (e.g., into a collapsed folder). In that case, it doesn't have a
      // parent, and we're done here.
      if (parentElem == null) {
        expandedPaths.clear();
        return expandedPaths;
      }

      // Make a new tree node.
      newRenderedNode = createNode(incomingSubtreeData);
      parentElem.insertBefore(newRenderedNode, oldRenderedNode);

      // Remove the old rendered node from the tree.
      oldRenderedNode.removeFromParent();
    }
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.