Package org.openbp.cockpit.plugins.finder.treemodel

Examples of org.openbp.cockpit.plugins.finder.treemodel.LeafNode


  /**
   * @see org.openbp.cockpit.plugins.finder.treemodel.DataMapper#createLeafNode()
   */
  public LeafNode createLeafNode()
  {
    LeafNode node = new LeafNode();
    node.setNodeMapper(nodeMapper);
    node.setLeafData(list.get(list.size() - 1));
    return node;
  }
View Full Code Here


    }

    public LeafNode createLeafNode()
    {
      // Create the leaf node for the found reference
      LeafNode node = new LeafNode();
      node.setNodeMapper(coreMapper);
      node.setLeafData(leafObject);

      // Add properties for the comparator and the renderer.
      node.addProperty(PRIORITY_KEY, new Integer(3));
      node.addProperty(REFERENCE_ITEMTYPE_KEY, referenceItemType);

      ModelQualifier qualifier = leafObject.getQualifier();
      if (qualifier.getObjectPath() == null)
        node.addProperty(ITEMTYPE_KEY, qualifier.getItemType());
      return node;
    }
View Full Code Here

TOP

Related Classes of org.openbp.cockpit.plugins.finder.treemodel.LeafNode

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.