Examples of XElement


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

  }

  private void updateMPYear(int year) {
    mpyear = year;
    for (int i = 1; i <= 10; i++) {
      XElement td = XElement.as(mpYears.item(i - 1));
      int y2;
      if (i % 2 == 0) {
        y2 = (int) (year + (Math.round(i * .5)));
      } else {
        y2 = (int) (year - (5 - Math.round(i * .5)));
      }
      td.getFirstChildElement().setInnerHTML("" + y2);
      td.setPropertyInt("xyear", y2);
      appearance.onMonthSelected(td, y2 == mpSelYear);
    }
  }
View Full Code Here

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

   * @return the tree node or null if no match
   */
  public TreeNode<M> findNode(Element target) {
    Element row = (Element) getView().findRow(target);
    if (row != null) {
      XElement item = XElement.as(row).selectNode(treeAppearance.itemSelector());
      if (item != null) {
        String id = item.getId();
        TreeNode<M> node = nodes.get(id);
        return node;
      }
    }
    return null;
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.client.models.palo.XElement

            try {
              final SelectElementDialog menu = new SelectElementDialog(view, xAxisHierarchy, state);
              menu.addSelectionListener(new Listener<SelectionEvent>() {
                public void handleEvent(SelectionEvent se) {
                  XObject selection = se.getSelection();
                  XElement selectedElement = null;
                  if (selection instanceof XElement) {
                    selectedElement = (XElement) selection;
                  } else if(selection instanceof XElementNode) {
                    XElementNode node = (XElementNode) selection;
                    selectedElement = node.getElement();
                  }
                  ((Workbench) Registry.get(Workbench.ID)).hideWaitCursor();
                  if (selectedElement != null
                      && !selectedElement.equals(xAxisHierarchy.getSelectedElement()))
                    changeSelectedElement(widget, selectedElement)
                }
              });
              menu.show(widget);
                menu.focus();
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.