Package com.projectlibre.pm.calendar

Examples of com.projectlibre.pm.calendar.CalendarOptions


  public Object exportProject(Project in){
    return null;
  }
  protected void exportOptions(CalendarOptions options) {
    CalendarOption opOptions = CalendarOption.getInstance();
    CalendarOptions pOptions = project.getCalendarOptions();
    opOptions.setHoursPerDay(pOptions.getHoursPerDay());
    opOptions.setHoursPerWeek(pOptions.getHoursPerWeek());
    opOptions.setDaysPerMonth(pOptions.getDaysPerMonth());

    if (pOptions.getDefaultStart() > 0L){
      GregorianCalendar defaultStart = new GregorianCalendar();
      defaultStart.setTimeInMillis(pOptions.getDefaultStart());
      opOptions.setDefaultStartTime(defaultStart);
    }

    if (pOptions.getDefaultEnd() > 0L){
      GregorianCalendar defaultEnd = new GregorianCalendar();
      defaultEnd.setTimeInMillis(pOptions.getDefaultEnd());
      opOptions.setDefaultStartTime(defaultEnd);
    }
  }
View Full Code Here



  protected void importOptions() throws Exception{
    ProjectConverter converter=ProjectConverter.getInstance();
    CalendarOption openprojOptions=CalendarOption.getInstance();
    CalendarOptions options=plProject.getCalendarOptions();
    converter.convert("openproj", ProjectConverter.Type.OPTIONS, false, openprojOptions, options, state);
  }
View Full Code Here

TOP

Related Classes of com.projectlibre.pm.calendar.CalendarOptions

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.