Package org.openquark.gems.client.ArgumentTreeNode

Examples of org.openquark.gems.client.ArgumentTreeNode.ArgumentNode


     * @param argument the argument to be represented.
     * @return an ArgumentNode to use for that argument. 
     *   If possible, any ArgumentNode previously used to represent the argument will be reused.
     */
    ArgumentNode getArgumentNode(Gem.PartInput argument) {
        ArgumentNode argumentNode = argumentToNodeMap.get(argument);
        if (argumentNode == null) {
            argumentNode = new ArgumentNode(argument);
            argumentToNodeMap.put(argument, argumentNode);
        }
        return argumentNode;
    }
View Full Code Here


        collectorNode.removeAllChildren();
       
        // Add node for the arguments.
        List<Gem.PartInput> reflectedInputs = collectorGem.getReflectedInputs();
        for (final Gem.PartInput reflectedInput : reflectedInputs) {
            ArgumentNode reflectedInputNode = getArgumentNode(reflectedInput);
            collectorNode.add(reflectedInputNode);
        }
       
        if (displayUnusedArguments) {
            // Get the unused arguments.
            Set<PartInput> unusedArgumentSet = new HashSet<PartInput>(collectorGem.getTargetArguments());
            unusedArgumentSet.removeAll(reflectedInputs);
           
            // Sort them.
            List<PartInput> unusedArgumentList = new ArrayList<PartInput>(unusedArgumentSet);
            Collections.sort(unusedArgumentList, argumentComparatorByName);
           
            // Add the nodes.
            for (final PartInput unusedArgument : unusedArgumentList) {
                ArgumentNode unusedInputArgumentNode = getArgumentNode(unusedArgument);
                collectorNode.add(unusedInputArgumentNode);
            }
        }
       
        // Call recursively on targeting collectors.
View Full Code Here

TOP

Related Classes of org.openquark.gems.client.ArgumentTreeNode.ArgumentNode

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.