Package com.projity.document

Examples of com.projity.document.Document


    opt.setId(id);
    opt.setSync(sync);
    opt.setOpenAs(openAs);
    opt.setEndSwingClosure(endSwingClosure);

    Document result = factory.openProject(opt);
    //showWaitCursor(false);
    return result;
  }
View Full Code Here


      return null;
    if (context == null)
      context = specialFieldContext;

    if ("Field.duration".equals(id) && (object instanceof GroupNodeImpl)) {
      Document document = nodeModel.getDocument();
      if (document == null || !(document instanceof Project))
        return null;
      WorkingCalendar wc = (WorkingCalendar) ((Project) document).getWorkCalendar();

      // startDate, endDate calculated twice. Can find better
View Full Code Here

  public void fireEvent(Object object, Object source,FieldContext context) {
    if (context == null)
      context = specialFieldContext;
    if (object instanceof BelongsToDocument && source != null) { // if no source then no update
      if (!FieldContext.isNoUpdate(context)) {
        Document document = ((BelongsToDocument) object).getDocument();
        document.getObjectEventManager().fireUpdateEvent(source, object, this);
        if (isDirtiesWholeDocument())
          document.setAllChildrenDirty(true);
      }
    }
  }
View Full Code Here

      hasCal = (HasCalendar)i.next();
      documents.add(hasCal.invalidateCalendar());
    }
    Iterator d = documents.iterator();
    while (d.hasNext()) {
      Document doc = (Document)d.next();
      doc.fireUpdateEvent(this,doc);
    }
  }
View Full Code Here

 
  public void setObject(Object object) {
    if (object == this.object)
      return;
    if (this.object != null && this.object instanceof BelongsToDocument) {
      Document document=((BelongsToDocument)this.object).getDocument();
      document.removeObjectListener(this);
      if (document instanceof Project)
        ((Project)document).removeScheduleListener(this);
    }
    this.object = object;
    if (object != null && object instanceof BelongsToDocument) {
      Document document=((BelongsToDocument)this.object).getDocument();
      document.addObjectListener(this);
      if (document instanceof Project)
        ((Project)document).addScheduleListener(this);
    }
  }
View Full Code Here

    opt.setId(id);
    opt.setSync(sync);
    opt.setOpenAs(openAs);
    opt.setEndSwingClosure(endSwingClosure);

    Document result = factory.openProject(opt);
    //showWaitCursor(false);
    return result;
  }
View Full Code Here

      return null;
    if (context == null)
      context = specialFieldContext;

    if ("Field.duration".equals(id) && (object instanceof GroupNodeImpl)) {
      Document document = nodeModel.getDocument();
      if (document == null || !(document instanceof Project))
        return null;
      WorkingCalendar wc = (WorkingCalendar) ((Project) document).getWorkCalendar();

      // startDate, endDate calculated twice. Can find better
View Full Code Here

  public void fireEvent(Object object, Object source,FieldContext context) {
    if (context == null)
      context = specialFieldContext;
    if (object instanceof BelongsToDocument && source != null) { // if no source then no update
      if (!FieldContext.isNoUpdate(context)) {
        Document document = ((BelongsToDocument) object).getDocument();
        document.getObjectEventManager().fireUpdateEvent(source, object, this);
        if (isDirtiesWholeDocument())
          document.setAllChildrenDirty(true);
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.projity.document.Document

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.