Examples of XObjectModel


Examples of com.tensegrity.wpalo.client.ui.model.XObjectModel

  private final void initEventHandling() {
    accounts.addSelectionChangedListener(
      new SelectionChangedListener<XObjectModel>() {
          public void selectionChanged(
              SelectionChangedEvent<XObjectModel> se) {
            XObjectModel selection = se.getSelectedItem();
            selectionTree.setInput((XAccount) selection
                .getXObject());
          }
        });
  }
View Full Code Here

Examples of com.tensegrity.wpalo.client.ui.model.XObjectModel

 
  public final void setInput(XAccount[] xAccounts) {
    accounts.disableEvents(true);
    ListStore<XObjectModel> accountsStore = accounts.getStore();
    for (XAccount xAccount : xAccounts) {
      XObjectModel accModel = new XObjectModel(xAccount);
      accModel.set("name", xAccount.getName() + constants.on() + xAccount.getConnection().getName());
      accountsStore.add(accModel);
    }
    accounts.disableEvents(false);
  }
View Full Code Here

Examples of com.tensegrity.wpalo.client.ui.model.XObjectModel

 
  public final void setInput(XAxisHierarchy hierarchy) {
    subsets.disableEvents(true);   
    ListStore<XObjectModel> subsetStore = subsets.getStore();
    for(XSubset subset : hierarchy.getSubsets())
      subsetStore.add(new XObjectModel(subset));
    initialSubset = hierarchy.getActiveSubset();
    selectSubset(initialSubset);   
    subsets.disableEvents(false);
  }
View Full Code Here

Examples of com.tensegrity.wpalo.client.ui.model.XObjectModel

    subsets.setStore(store);
 
 
  private final ListStore<XObjectModel> createSubsetStore() {
    ListStore<XObjectModel> subsetStore = new ListStore<XObjectModel>();
    subsetStore.add(new XObjectModel(NO_SUBSET));
    return subsetStore;
  }
View Full Code Here

Examples of com.tensegrity.wpalo.client.ui.model.XObjectModel

    if(subset == null)
      subset = NO_SUBSET;
    List<XObjectModel> selection = new ArrayList<XObjectModel>();
    ListStore<XObjectModel> store = subsets.getStore();
    for(int i=0, n=store.getCount(); i<n; i++) {
      XObjectModel model = store.getAt(i);
      if(subset.equals(model.getXObject())) {
        selection.add(model);
        subsets.setSelection(selection);
        break;
      }
    }
View Full Code Here

Examples of com.tensegrity.wpalo.client.ui.model.XObjectModel

   
  public final void setInput(XAxisHierarchy hierarchy) {
    aliases.disableEvents(true);
    ListStore<XObjectModel> aliasStore = aliases.getStore();
    for(XAlias alias : hierarchy.getAliases())
      aliasStore.add(new XObjectModel(alias));
    initialAlias = hierarchy.getActiveAlias();
    selectAlias(initialAlias);
    aliases.disableEvents(false);
  }
View Full Code Here

Examples of com.tensegrity.wpalo.client.ui.model.XObjectModel

    aliases.setStore(store);
 
 
  private final ListStore<XObjectModel> createAliasStore() {
    ListStore<XObjectModel> store = new ListStore<XObjectModel>();
    store.add(new XObjectModel(NO_ALIAS));
    return store;
  }
View Full Code Here

Examples of com.tensegrity.wpalo.client.ui.model.XObjectModel

    if(alias == null)
      alias = NO_ALIAS;
    List<XObjectModel> selection = new ArrayList<XObjectModel>();
    ListStore<XObjectModel> store = aliases.getStore();
    for(int i=0, n=store.getCount(); i<n; i++) {
      XObjectModel model = store.getAt(i);
      if(alias.equals(model.getXObject())) {
        selection.add(model);
        aliases.setSelection(selection);       
        break;
      }
    }
View Full Code Here

Examples of com.tensegrity.wpalo.client.ui.model.XObjectModel

    } else {
      final Map<FastMSTreeItem, XElementNode> parents = new HashMap<FastMSTreeItem, XElementNode>();
      final List <String> filterPaths = new ArrayList <String>();
      targetHierarchyTree.traverse(new FastMSTreeItemVisitor(){
        public boolean visit(FastMSTreeItem item, FastMSTreeItem parent) {
          XObjectModel node = item.getXObjectModel();
          String path = node.get("filterPath");
          if (path != null) {
            filterPaths.add(path);
          }
          return item.getChildCount() > 0;
        }
View Full Code Here

Examples of com.tensegrity.wpalo.client.ui.model.XObjectModel

    return image + node.getName();
  }

  private final void add(XElementNode node, XObjectModel parent,
      String[] paths) {
    XObjectModel model = wrap(node);
    if (paths != null && paths.length > pathCounter) {
      model.set("filterPath", paths[pathCounter++]);
    }
    FastMSTreeItem item = new FastMSTreeItem();
    item.setXObjectModel(model);
    item.setHTML(getTreeItemText(node));
//    dragController.makeDraggable(item.getHtml(), item.getHtml());
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.