Package com.sencha.gxt.core.client.dom

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


    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

      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

            // 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

  }

  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

            // 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

    eventPreview = new BaseEventPreview() {
      @Override
      protected boolean onPreview(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;
            // widget.el().blink(new FxConfig(new Listener<FxEvent>() {
            // public void handleEvent(FxEvent fe) {
            // blinking = false;
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.