Examples of XElement


Examples of com.sencha.gxt.core.client.dom.XElement

        onScroll(event);
      }

    };

    XElement topScroller = appearance.getTopScroller(getElement());
    ClickRepeater cr = new ClickRepeater(this, topScroller);
    cr.addClickHandler(handler);

    XElement bottomScroller = appearance.getBottomScroller(getElement());
    cr = new ClickRepeater(this, bottomScroller);
    cr.addClickHandler(handler);
  }
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement

  @Override
  protected void doPhysicalAttach(Widget child, int beforeIndex) {
    boolean needsIndent = (child instanceof Field) || (child instanceof ContentPanel)
        || (child instanceof AdapterMenuItem && ((AdapterMenuItem) child).isNeedsIndent());
    XElement div = appearance.createItem(getElement(), child.getElement().getId(), needsIndent);

    div.appendChild(child.getElement());
    if (child instanceof Component) {
      Component c = (Component) child;
      if (!c.isEnabled()) {
        c.disable();
      }
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement

    switch (type) {
      case Event.ONMOUSEDOWN:
      case Event.ONMOUSEWHEEL:
      case Event.ONSCROLL:
      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

  protected void onMouseOut(Event ce) {
    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

      }
    }
  }

  protected void onScroll(ClickRepeaterEvent ce) {
    XElement target = ce.getSource().getEl();
    boolean top = appearance.getTopScroller(getElement()).equals(target);
    scrollMenu(top);

    if (top ? ul.getScrollTop() <= 0 : ul.getScrollTop() + activeMax >= ul.getPropertyInt("scrollHeight")) {
      appearance.onScrollerOut(target);
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement

      }
    }
  }

  public boolean isClickOnArrow(XElement p, NativeEvent e) {
    XElement buttonEl = appearance.getButtonElement(p);
    return (getArrowAlign() == ButtonArrowAlign.BOTTOM) ? e.getClientY() > buttonEl.getRegion().getBottom() - 14
        : e.getClientX() > buttonEl.getRegion().getRight() - 14;
  }
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement

    if (!parent.isOrHasChild(target)) {
      return;
    }
    super.onBrowserEvent(context, parent, value, event, valueUpdater);
    String type = event.getType();
    XElement xParent = parent.<XElement> cast();
    if ("click".equals(type)) {
      onClick(context, xParent, value, event, valueUpdater);
    } else if ("mouseover".equals(type)) {
      onMouseOver(context, xParent, value, event, valueUpdater);
    } else if ("mouseout".equals(type)) {
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement

    // ignore the parent element
    if (isDisableEvents() || !parent.getFirstChildElement().isOrHasChild(target)) {
      return;
    }

    XElement p = parent.cast();

    String eventType = event.getType();
    if ("click".equals(eventType)) {
      onClick(context, p, value, event, valueUpdater);
    } else if ("mouseover".equals(eventType)) {
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement

   * @param parent the parent element
   * @param resizable the resizable value
   */
  public void setResizable(XElement parent, Resizable resizable) {
    this.resizable = resizable;
    XElement area = appearance.getInputElement(parent);
    area.getStyle().setProperty("resize", resizable.name().toLowerCase());
  }
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement

    }

    @Override
    public void onMouseDown(MouseDownEvent event) {
      XElement target = event.getNativeEvent().getEventTarget().cast();
      if (el == target) {
        event.stopPropagation();
        event.preventDefault();
        preview.add();
        handleMouseDown();
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.