Package com.projity.pm.graphic.frames

Examples of com.projity.pm.graphic.frames.DocumentFrame


    updateAssignmentSpreadsheet();
  }
 
  public void documentSelected(DocumentSelectedEvent evt) {
    if (assignmentSpreadSheet==null) return;
        DocumentFrame df=evt.getCurrent();
        if (df!=null){
//          List impls=df.getSelectedImpls();
//          if (impls!=null&&impls.size()>0) setObject(impls.get(0));
          NodeModelCache cache = df.createCache(false,Messages.getString("View.TaskInformation.Assignments")); //$NON-NLS-1$
      assignmentSpreadSheet.setCache(cache);
        }
  }
View Full Code Here


    changeWorkingTimeButton.setEnabled(getObject() != null && !((ResourceImpl)getObject()).isReadOnly());

  }
  public void documentSelected(DocumentSelectedEvent evt) {
    if (assignmentSpreadSheet==null) return;
        DocumentFrame df=evt.getCurrent();
        if (df!=null){
          NodeModelCache cache = df.createCache(true,Messages.getString("View.TaskInformation.Assignments")); //$NON-NLS-1$
      assignmentSpreadSheet.setCache(cache);
        }
  }
View Full Code Here

    return new DefaultComboBoxModel(options);
  }

  public ReferenceNodeModelCache getReferenceCache(boolean task) {
//    DocumentFrame df = ((MainFrame) owner).getCurrentFrame();
    DocumentFrame df = GraphicManager.getInstance(this).getCurrentFrame();
    return df.getReferenceCache(task);
  }
View Full Code Here

    return df.getReferenceCache(task);
  }

  public NodeModelCache createCache(boolean task, String viewName) {
//    DocumentFrame df = ((MainFrame) owner).getCurrentFrame();
    DocumentFrame df = GraphicManager.getInstance(this).getCurrentFrame();
    return df.createCache(task, viewName);
  }
View Full Code Here

        LoadOptions opt=new LoadOptions();
        opt.setId(projectId);
        opt.setSync(true);
        ProjectFactory.getInstance().openProject(opt);
      }
      DocumentFrame documentFrame = graphicManager.addProjectFrame(project); // will add to combo
      documentFrame.restoreWorkspace(documentFrameWorkspace, context); // a little ugly, in that the worspace is used above to create the frame
    }
    getProjectComboBox().setSelectedIndex(ws.getSelectedIndex());
  }
View Full Code Here

  public WorkspaceSetting createWorkspace(int context) {
    FrameWorkspace ws = new FrameWorkspace();
    ws.list = new LinkedList();
    for (int i = 0; i < getProjectComboBox().getItemCount(); i++) {
      DocumentFrame frame = (DocumentFrame)getProjectComboBox().getItemAt(i);
      ws.list.add(frame.createWorkspace(context));
    }
    ws.selectedIndex = getProjectComboBox().getSelectedIndex();
    return ws;
  }
View Full Code Here

TOP

Related Classes of com.projity.pm.graphic.frames.DocumentFrame

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.