Examples of findParent()


Examples of com.extjs.gxt.ui.client.core.El.findParent()

    int each = (int) Math.max(Math.min(Math.floor((aw - 4) / count) - buttonMargin, buttonWidth), minButtonWidth);
    NodeList<com.google.gwt.dom.client.Element> btns = stripWrap.dom.getElementsByTagName("button");

    El b = items.get(0).el();
    lastButtonWidth = b.findParent("li", 5).getWidth();

    for (int i = 0, len = btns.getLength(); i < len; i++) {
      Element btn = btns.getItem(i).cast();

      int tw = items.get(i).el().getParent().dom.getOffsetWidth();
View Full Code Here

Examples of com.extjs.gxt.ui.client.core.El.findParent()

  private El findItemElement(Component c) {
    if (c != null && c instanceof Field<?> && c.isRendered()) {
      El elem = target.selectNode(".x-form-el-" + c.getId());
      if (elem != null) {
        return elem.findParent(".x-form-item", 5);
      }
      return null;
    }
    return null;
  }
View Full Code Here

Examples of com.extjs.gxt.ui.client.core.El.findParent()

    int each = (int) Math.max(Math.min(Math.floor((aw - 4) / count) - buttonMargin, buttonWidth), minButtonWidth);
    NodeList<com.google.gwt.dom.client.Element> btns = stripWrap.dom.getElementsByTagName("button");

    El b = items.get(0).el();
    lastButtonWidth = b.findParent("li", 5).getWidth();

    for (int i = 0, len = btns.getLength(); i < len; i++) {
      Element btn = btns.getItem(i).cast();

      int tw = items.get(i).el().getParent().dom.getOffsetWidth();
View Full Code Here

Examples of com.fasterxml.jackson.databind.JsonNode.findParent()

    public void testNonMatching() throws Exception
    {
        JsonNode root = _buildTree();

        assertNull(root.findValue("boogaboo"));
        assertNull(root.findParent("boogaboo"));
        JsonNode n = root.findPath("boogaboo");
        assertNotNull(n);
        assertTrue(n.isMissingNode());

        assertTrue(root.findValues("boogaboo").isEmpty());
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement.findParent()

      case Event.ONKEYPRESS:
        XElement target = pe.getNativeEvent().getEventTarget().cast();

        // ignore targets within a parent with x-ignore, such as the listview in
        // a combo
        if (target.findParent(".x-ignore", 10) != null) {
          return;
        }

        // is the target part of the sub menu chain, if yes, dont out hide
        Item active = activeItem != null ? activeItem : getParentItem();
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement.findParent()

    EventTarget to = ce.getRelatedEventTarget();
    if (activeItem != null && (to == null || (Element.is(to) && !activeItem.getElement().isOrHasChild(Element.as(to))))
        && activeItem.shouldDeactivate(ce)) {
      if (to != null && Element.is(to)) {
        XElement xto = to.cast();
        if (xto.findParent("." + CommonStyles.get().ignore(), 3) != null) {
          return;
        }
      }
      deactivateActiveItem();
    }
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement.findParent()

      case Event.ONKEYPRESS:
        XElement target = pe.getNativeEvent().getEventTarget().cast();

        // ignore targets within a parent with x-ignore, such as the listview in
        // a combo
        if (target.findParent(".x-ignore", 10) != null) {
          return false;
        }

        // is the target part of the sub menu chain, if yes, dont out hide
        Item active = activeItem != null ? activeItem : getParentItem();
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement.findParent()

            // ignore html and body because of frames
            if (!resizing && !dragging && !tag.equalsIgnoreCase("html") && !tag.equalsIgnoreCase("body")
                && event.getTypeInt() != Event.ONLOAD && manager.getActive() == Window.this
                && (modalPanel == null || (modalPanel != null && !modalPanel.getElement().isOrHasChild(target)))
                && !Window.this.getElement().isOrHasChild(target)
                && target.findParent("." + CommonStyles.get().ignore(), -1) == null) {
              // ArrayList<Component> col = new
              // ArrayList<Component>(ComponentManager.get().getAll());
              // for (Component c : col) {
              // if (c instanceof TriggerField<?>) {
              // triggerBlur((TriggerField<?>) c);
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement.findParent()

  }

  protected void onEventPreview(NativePreviewEvent pe) {
    XElement t = pe.getNativeEvent().getEventTarget().cast();
    if (pe.getTypeInt() == Event.ONMOUSEDOWN && getElement().isOrHasChild(t)
        && (t.findParent("." + CommonStyles.get().ignore(), -1) == null)) {
      if (blink && !blinking) {
        blinking = true;
        pe.cancel();
        Fx fx = new Fx();
        fx.addAfterAnimateHandler(new AfterAnimateHandler() {
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement.findParent()

            // ignore html and body because of frames
            if (!resizing && !dragging && !tag.equalsIgnoreCase("html") && !tag.equalsIgnoreCase("body")
                && event.getTypeInt() != Event.ONLOAD && manager.getActive() == Window.this
                && (modalPanel == null || (modalPanel != null && !modalPanel.getElement().isOrHasChild(target)))
                && !Window.this.getElement().isOrHasChild(target)
                && target.findParent("." + CommonStyles.get().ignore(), -1) == null) {
            }
          }
        }
      });
    }
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.