Package com.projity.association

Examples of com.projity.association.AssociationList


        project.addRepaired(this);
        ErrorLogger.logOnce("raw parent", "repaired bad raw duration" + this,null);
        duration = 0;
      }
    } else {
      AssociationList assignments =getAssignments();
      if (assignments.size() == 1) {
        duration = ((Assignment)assignments.getFirst()).getDurationMillis();
      } else {
        Iterator i = assignments.iterator();
        long end = 0;
        // get the latest ending assignment
        while (i.hasNext()) {
          end = Math.max(end,((Assignment)i.next()).getEnd());
        }
View Full Code Here


   */
  public boolean hasDuration() {
    if (isWbsParent()) {
      return getRawDuration() != 0;
    } else {
      AssociationList assignments =getAssignments();
      if (assignments.size() == 1)
        return ((Assignment)assignments.getFirst()).hasDuration();
      Iterator i = assignments.iterator();
      while (i.hasNext()) {
        if (((Assignment)i.next()).hasDuration())
          return true;
      }
    }
View Full Code Here

  public AssociationList getRealAssignments() {
    if (hasRealAssignments())
      return getAssignments();
    else
      return new AssociationList(); //empty list
  }
View Full Code Here

   
    for (Iterator i=gnodes.iterator();i.hasNext();){
      GraphicNode gnode=(GraphicNode)i.next();
     
      HasDependencies task=(HasDependencies)gnode.getNode().getImpl();     
      AssociationList dependencyList=task.getSuccessorList();
      for (Iterator j=dependencyList.iterator();j.hasNext();){
        Dependency dep=(Dependency)j.next();
       
        HasDependencies pre=dep.getPredecessor();
        HasDependencies suc=dep.getSuccessor();
        GraphicNode preGNode=(GraphicNode)implMap.get(pre);
View Full Code Here

    predecessorsSpreadSheet.setSpreadSheetCategory(DEPENDENCY_SPREADSHEET);
      predecessorsSpreadSheet.setCanModifyColumns(false);
      predecessorsSpreadSheet.setCanSelectFieldArray(false);
      predecessorsSpreadSheet.setActions(new String[]{MenuActionConstants.ACTION_DELETE});
      SpreadSheetUtils.createCollectionSpreadSheet(predecessorsSpreadSheet
        ,(object==null)?new AssociationList():((Task)object).getPredecessorList()
        //,(object==null)?null:((NormalTask)object).getDocument()
        ,"View.TaskInformation.Predecessors" //$NON-NLS-1$
        ,DEPENDENCY_SPREADSHEET
        ,"Spreadsheet.Dependency.predecessors" //$NON-NLS-1$
        ,true
View Full Code Here

    }
    //cache reconstructed because the main cache holding edges isn't ordered
    protected void updatePredecessorsSpreadsheet() {
      SpreadSheetUtils.updateCollectionSpreadSheet(predecessorsSpreadSheet
              ,(object==null)?new AssociationList():((Task)object).getPredecessorList()
            ,new DependencyNodeModelDataFactory()
            , 0);
    }
View Full Code Here

      successorsSpreadSheet.setCanModifyColumns(false);
      successorsSpreadSheet.setCanSelectFieldArray(false);
      successorsSpreadSheet.setActions(new String[]{MenuActionConstants.ACTION_DELETE});
     
      SpreadSheetUtils.createCollectionSpreadSheet(successorsSpreadSheet
        ,(object==null)?new AssociationList():((Task)object).getSuccessorList()
        //,(object==null)?null:((NormalTask)object).getDocument()
        ,"View.TaskInformation.Successors" //$NON-NLS-1$
        ,DEPENDENCY_SPREADSHEET
        ,"Spreadsheet.Dependency.successors" //$NON-NLS-1$
        ,false
View Full Code Here

    }
    //cache reconstructed because the main cache holding edges isn't ordered
    protected void updateSuccessorsSpreadsheet() {
      SpreadSheetUtils.updateCollectionSpreadSheet(successorsSpreadSheet
        ,(object==null)?new AssociationList():((Task)object).getSuccessorList()
        ,new DependencyNodeModelDataFactory()
        , 0);
    }
View Full Code Here

    updateAssignmentSpreadsheet();
      return SpreadSheetUtils.makeSpreadsheetScrollPane(assignmentSpreadSheet);

    }
    protected void updateAssignmentSpreadsheet() {
      SpreadSheetUtils.updateFilteredSpreadsheet(assignmentSpreadSheet,(object==null)?new AssociationList():((NormalTask)object).getAssignments());
      ((SpreadSheetModel)assignmentSpreadSheet.getModel()).fireUpdateAll();
    }
View Full Code Here

        updateAssignmentSpreadsheet();
    assignmentPane = SpreadSheetUtils.makeSpreadsheetScrollPane(assignmentSpreadSheet);
    return assignmentPane;
    }
    protected void updateAssignmentSpreadsheet() {
      SpreadSheetUtils.updateFilteredSpreadsheet(assignmentSpreadSheet,(object==null)?new AssociationList():((Resource)object).getAssignments());
    }
View Full Code Here

TOP

Related Classes of com.projity.association.AssociationList

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.