Package com.projity.grouping.core.summaries

Examples of com.projity.grouping.core.summaries.NodeWalker


    // group's special summaries handled here
    if (context == null)
      context = field.specialFieldContext;

    Object object = node.getImpl();
    NodeWalker walkingVisitor = (NodeWalker) field.getSummaryVisitor((object instanceof GroupNodeImpl) ? field.getSummaryForGroup() : field
        .getSummary(),object instanceof Document);
    walkingVisitor.setNode(node);
    walkingVisitor.setNodeModel(nodeModel);
    walkingVisitor.setContext(context);
    walkingVisitor.setField(field);
    Object result = walkingVisitor.getSummary();
    if (result instanceof Double) { // convert to proper display type
      result = ClassUtils.doubleToObject((Double) result, field.getDisplayType());
    }
    if ((object instanceof GroupNodeImpl) && field.hasOptions()) { // TODO
                                    // should
View Full Code Here


    // group's special summaries handled here
    if (context == null)
      context = field.specialFieldContext;

    Object object = node.getImpl();
    NodeWalker walkingVisitor = (NodeWalker) field.getSummaryVisitor((object instanceof GroupNodeImpl) ? field.getSummaryForGroup() : field
        .getSummary(),object instanceof Document);
    walkingVisitor.setNode(node);
    walkingVisitor.setNodeModel(nodeModel);
    walkingVisitor.setContext(context);
    walkingVisitor.setField(field);
    Object result = walkingVisitor.getSummary();
    if (result instanceof Double) { // convert to proper display type
      result = ClassUtils.doubleToObject((Double) result, field.getDisplayType());
    }
    if ((object instanceof GroupNodeImpl) && field.hasOptions()) { // TODO
                                    // should
View Full Code Here

TOP

Related Classes of com.projity.grouping.core.summaries.NodeWalker

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.