Examples of XElement


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

  public void onBrowserEvent(Event event) {
    super.onBrowserEvent(event);

    if (event.getTypeInt() == Event.ONCLICK) {
      event.stopPropagation();
      XElement target = event.getEventTarget().cast();
      if (expandBtn.getElement().isOrHasChild(target)) {
        disableAnimations = false;
        collapse();
        disableAnimations = true;
        onExpandButton();
View Full Code Here

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

  public Element getIconElement(TreeNode<M> node) {
    if (node.getIconElement() == null) {
      Element row = getRowElement(node);
      if (row != null) {
        XElement r = row.cast();
        XElement icon = tree.getTreeAppearance().findIconElement(r);
        node.setIconElement(icon);
      }
    }
    return node.getIconElement();
  }
View Full Code Here

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

  public Element getJointElement(TreeNode<M> node) {
    if (node.getJointElement() == null) {
      Element row = getRowElement(node);
      if (row != null) {
        XElement r = row.cast();
        XElement joint = tree.getTreeAppearance().findJointElement(r);
        node.setJointElement(joint);
      }
    }
    return node.getJointElement();
  }
View Full Code Here

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

      return null;
    }
    if (node.getTextElement() == null) {
      Element row = getRowElement(node);
      if (row != null) {
        XElement t = row.<XElement> cast().selectNode(tree.getTreeAppearance().textSelector());
        node.setTextElement(t);
      }
    }
    return node.getTextElement();
  }
View Full Code Here

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

  }

  public void onJointChange(TreeNode<M> node, Joint joint) {
    Element jointEl = getJointElement(node);
    if (jointEl != null) {
      XElement elem = node.getElement().cast();
      node.setJointElement(tree.getTreeAppearance().onJointChange(elem, jointEl.<XElement> cast(), joint,
          tree.getStyle()));
    }
  }
View Full Code Here

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

    }

  }

  protected void restrict(XElement parent) {
    XElement wrapper = parent.getFirstChildElement().cast();
    int width = Math.max(wrapper.getWidth(true), minListWidth);

    listContainer.getElement().setVisibility(false);
    listView.setHeight("auto");
    listContainer.setHeight("auto");
View Full Code Here

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

    }
  }

  protected void onClick(Event event) {
    event.preventDefault();
    XElement target = event.getEventTarget().cast();
    XElement pn = null;

    if ((pn = target.findParent(appearance.daySelector(), 2)) != null) {
      event.preventDefault();
      onDayClick(pn);
    } else if ((pn = target.findParent(appearance.leftMonthSelector(), 1)) != null) {
      showPrevMonth();
    } else if ((pn = target.findParent(appearance.rightMonthSelector(), 1)) != null) {
      showNextMonth();
    } else if ((pn = target.findParent(appearance.monthButtonSelector(), 5)) != null) {
      showMonthPicker();
    }

    if ((pn = target.findParent(appearance.monthPickerMonthSelector(), 2)) != null) {
      for (int i = 0; i < mpMonths.getCount(); i++) {
        appearance.onMonthSelected(mpMonths.getElement(i), false);
      }
      appearance.onMonthSelected(pn, true);
      mpSelMonth = pn.getPropertyInt("xmonth");
    } else if ((pn = target.findParent(appearance.monthPickerYearSelector(), 2)) != null) {
      for (int i = 0; i < mpYears.getCount(); i++) {
        appearance.onMonthSelected(mpYears.getElement(i), false);
      }
      appearance.onMonthSelected(pn, true);
      mpSelYear = pn.getPropertyInt("xyear");
    } else if (target.is(appearance.monthPickerOkSelector())) {
      DateWrapper d = new DateWrapper(mpSelYear, mpSelMonth, 1);
      update(d);
      hideMonthPicker();
    } else if (target.is(appearance.monthPickerCancelSelector())) {
View Full Code Here

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

  }

  @Override
  public void redraw() {
    super.redraw();
    XElement input = getElement().selectNode("textarea");
    if (input != null) {
      input.setId(getId() + "-input");
    }
  }
View Full Code Here

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

      setValue(activeDate.addDays(-7).asDate(), false);
    }
  }

  protected void onMouseOut(Event event) {
    XElement ce = event.getEventTarget().cast();

    XElement target = ce.findParent(appearance.dateSelector(), 3);
    if (target != null && target == overElement) {
      overElement = null;
      appearance.onUpdateDateStyle(target, DateState.OVER, false);
    }
  }
View Full Code Here

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

      appearance.onUpdateDateStyle(target, DateState.OVER, false);
    }
  }

  protected void onMouseOver(Event event) {
    XElement ce = event.getEventTarget().cast();

    XElement target = ce.findParent(appearance.dateSelector(), 3);

    if (target != null && overElement != target) {
      overElement = target;
      appearance.onUpdateDateStyle(target, DateState.OVER, true);
    }
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.