Examples of MileStone


Examples of org.zkoss.ganttz.data.Milestone

                container.add(buildAndRegister(position.down(container, i),
                        accumulatedDependencies, child));
                i++;
            }
        } else if (navigator.isMilestone(data)) {
            Milestone milestone = (Milestone) result;
            milestone.setOwner(position.getParent());
        }

        result.setShowingReportedHours(planner.showReportedHoursRightNow());
        result.setShowingMoneyCostBar(planner.showMoneyCostBarRightNow());
        result.setShowingAdvances(planner.showAdvancesRightNow());
View Full Code Here

Examples of org.zkoss.ganttz.data.Milestone

    }

    private Task build(T data) {
        ITaskFundamentalProperties adapted = adapter.adapt(data);
        if (navigator.isMilestone(data)) {
            return new Milestone(adapted);
        } else if (navigator.isLeaf(data)) {
            return new TaskLeaf(adapted);
        } else {
            return new TaskContainer(adapted,
                    planner.areContainersExpandedByDefault());
View Full Code Here

Examples of projectatlast.milestone.Milestone

      Date deadline, Query query, Parser parser,
      ParseField parseField, ComparativeOperator operator) {
    // Calculate start value
    double startValue = calculateProgress(query, parser, parseField);
    // Create milestone
    Milestone milestone = new Milestone(student, goal, startValue,
        deadline, operator, query, parser, parseField);
    // Progress
    milestone.setProgress(startValue);
    // Sentence
    milestone.setSentence(buildSentence(milestone));
    // Put milestone
    return Registry.milestoneFinder().put(milestone);
  }
View Full Code Here

Examples of projectatlast.milestone.Milestone

   * @return The milestone if the milestone was found and belongs to the
   *         student, null otherwise.
   */
  public static Milestone getMilestone(long milestoneId,
      Student student) {
    Milestone milestone = Registry.milestoneFinder()
        .getMilestone(milestoneId);
    if (!verifyOwner(milestone, student))
      return null;
    return milestone;
  }
View Full Code Here

Examples of projectatlast.milestone.Milestone

   *         false if he is not.
   * @see #verifyOwner(Milestone, Student)
   */
  public static boolean verifyOwner(long milestoneId,
      Student student) {
    Milestone milestone = Registry.milestoneFinder()
        .getMilestone(milestoneId);
    if (milestone == null) {
      return false;
    }
    return verifyOwner(milestone, student);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.