Package com.projity.grouping.core.model

Examples of com.projity.grouping.core.model.NodeModel


  public boolean fieldHideSubprojectReadOnly(FieldContext fieldContext) {
    return true;
  }

  public long getParentId(int outlineNumber) {
    NodeModel model= project.getTaskOutline(outlineNumber);
    if (model == null)
      return 0;
    Node node = model.getParent(model.search(this));
    Object impl = node.getImpl();
    if (impl != null && impl instanceof HasKey)
      return ((HasKey)impl).getId();
    return 0;
  }
View Full Code Here


      return ((HasKey)impl).getId();
    return 0;
  }

  public int getOutlineLevel(int outlineNumber) {
    NodeModel model= project.getTaskOutline(outlineNumber);
    if (model == null)
      return 0;
    Node node = model.getParent(model.search(this));
    return model.getHierarchy().getLevel(node);
  }
View Full Code Here

    else
      return ((double) calcSummedActualWork()) / work;
  }

  private long calcSummedWork() {
    NodeModel nodeModel = getProject().getTaskOutline();
    Node node = nodeModel.search(this);
    if (node == null)
      return 0;
    Number value = (Number) Configuration.getFieldFromId("Field.work")
        .getValue(node, nodeModel, null);
    return value.longValue();
View Full Code Here

        .getValue(node, nodeModel, null);
    return value.longValue();
  }

  private long calcSummedActualWork() {
    NodeModel nodeModel = getProject().getTaskOutline();
    Node node = nodeModel.search(this);
    Number value = (Number) Configuration
        .getFieldFromId("Field.actualWork").getValue(node, nodeModel,
            null);
    return value.longValue();
  }
View Full Code Here

TOP

Related Classes of com.projity.grouping.core.model.NodeModel

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.