Package net.sourceforge.jivalo.fw.webapp.ui

Examples of net.sourceforge.jivalo.fw.webapp.ui.AbstractTreeItem


  }

  public void processTreeNodeSelection(final NodeSelectedEvent event) {
       HtmlTree tree = (HtmlTree)event.getComponent();
        ListRowKey<Integer> rowKey = (ListRowKey<Integer>)tree.getRowKey();
        AbstractTreeItem sel = getNode(rowKey, treeCollection.getColl());
        if (sel instanceof Deployment) {
          selectedDeployment = sel;
        }
        else if (sel instanceof Item) {
          selectedItem = sel;
            if ( sel.getParent() != null ) {
              selectedDeployment = (Deployment)sel.getParent();
            }
            if (sel instanceof com.melitronic.rmapp.model.Issue) {
              getUC().setSelectedIssue((com.melitronic.rmapp.model.Issue)sel);
            }
        }
        else if (sel instanceof Task) {
          selectedTask = sel;
            if ( sel.getParent() != null ) {
              selectedItem = (Item)sel.getParent();
                if ( selectedItem.getParent() != null ) {
                  selectedDeployment = (Deployment)selectedItem.getParent();
                }
            }
        }
View Full Code Here


    }

  protected AbstractTreeItem getNode(ListRowKey<Integer> rowKey, List<TreeNode> data) {
    try {
      Vector<AbstractTreeItem> d = null;
      AbstractTreeItem sel = null;
      Iterator<Integer> it = rowKey.iterator();
      if (it.hasNext()) {
        sel = (AbstractTreeItem)data.get(it.next().intValue());
        d = sel.getChildrenCollection();
      }
      while ( it.hasNext() ) {
        sel = (AbstractTreeItem)d.get(it.next().intValue());
        d = sel.getChildrenCollection();
      }
     
      return sel;
    }
    catch (Throwable th) { }
View Full Code Here

    getSelection((HtmlTree)event.getComponent());
    }

  private AbstractTreeItem getSelection(HtmlTree tree) {
          ListRowKey<Integer> rowKey = (ListRowKey<Integer>)tree.getRowKey();
          AbstractTreeItem sel = getNode(rowKey, treeCollection.getColl());
          if (sel instanceof ItemGroup) {
            getUC().setSelectedItemGroup(sel);
          }
          else if (sel instanceof Issue) {
            setSelectedIssue(sel);
              if ( sel.getParent() != null ) {
                getUC().setSelectedItemGroup((ItemGroup)sel.getParent());
              }
          }
          else if (sel instanceof Item) {
            selectedItem = sel;
              if ( sel.getParent() != null ) {
                getUC().setSelectedItemGroup((ItemGroup)sel.getParent());
              }
          }
          else if (sel instanceof Task) {
            setSelectedTask(sel);
              if ( sel.getParent() != null ) {
                selectedItem = (Item)sel.getParent();
                  if ( selectedItem.getParent() != null ) {
                    getUC().setSelectedItemGroup((ItemGroup)selectedItem.getParent());
                  }
              }
          }
         
          this.log(Level.INFO, "Selected "+sel.getClass().getName() + ": " + sel);
         
          return sel;
      }
View Full Code Here

      }

  protected AbstractTreeItem getNode(ListRowKey<Integer> rowKey, List<TreeNode> data) {
    try {
      Vector<AbstractTreeItem> d = null;
      AbstractTreeItem sel = null;
      Iterator<Integer> it = rowKey.iterator();
      if (it.hasNext()) {
        sel = (AbstractTreeItem)data.get(it.next().intValue());
        d = sel.getChildrenCollection();
      }
      while ( it.hasNext() ) {
        sel = (AbstractTreeItem)d.get(it.next().intValue());
        d = sel.getChildrenCollection();
      }
     
      return sel;
    }
    catch (Throwable th) { }
View Full Code Here

    getSelection((HtmlTree)event.getComponent());
    }

  private void getSelection(HtmlTree tree) {
          ListRowKey<Integer> rowKey = (ListRowKey<Integer>)tree.getRowKey();
          AbstractTreeItem sel = getNode(rowKey, treeCollection.getColl());
          if (sel instanceof Sprint) {
            selectedSprint = sel;
          }
          else if (sel instanceof Item) {
            setSelectedItem(sel);
              if ( sel.getParent() != null ) {
                selectedSprint = (Sprint)sel.getParent();
              }
          }
          else if (sel instanceof Task) {
            setSelectedTask(sel);
              if ( sel.getParent() != null ) {
                setSelectedItem((Item)sel.getParent());
                  if ( selectedItem.getParent() != null ) {
                    selectedSprint = (Sprint)selectedItem.getParent();
                  }
              }
          }
View Full Code Here

      }

  protected AbstractTreeItem getNode(ListRowKey<Integer> rowKey, List<TreeNode> data) {
    try {
      Vector<AbstractTreeItem> d = null;
      AbstractTreeItem sel = null;
      Iterator<Integer> it = rowKey.iterator();
      if (it.hasNext()) {
        sel = (AbstractTreeItem)data.get(it.next().intValue());
        d = sel.getChildrenCollection();
      }
      while ( it.hasNext() ) {
        sel = (AbstractTreeItem)d.get(it.next().intValue());
        d = sel.getChildrenCollection();
      }
     
      return sel;
    }
    catch (Throwable th) { }
View Full Code Here

TOP

Related Classes of net.sourceforge.jivalo.fw.webapp.ui.AbstractTreeItem

Copyright © 2018 www.massapicom. 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.