コード例 #1
0
  public static void settingcurrencysymbol() {
    // The path to the documents directory.
    String dataDir = Utils.getDataDir(CurrencySymbols.class);

    Project project = new Project();
    project.set(Prj.CURRENCY_SYMBOL, "$$");
  }
コード例 #2
0
  public static void main(String[] args) throws Exception {
    // The path to the documents directory.
    String dataDir = Utils.getDataDir(WriteProjectInfo.class);

    // Create a project instance
    Project project = new Project();
    // Set project information properties
    project.set(Prj.SCHEDULE_FROM_START, new NullableBool(true));
    java.util.Calendar cal = java.util.Calendar.getInstance();
    cal.set(2014, 7, 10);
    project.set(Prj.START_DATE, cal.getTime());
    project.set(Prj.CURRENT_DATE, cal.getTime());
    project.set(Prj.STATUS_DATE, cal.getTime());

    // Save the Project as XML
    project.save(dataDir + "project3.xml", SaveFileFormat.XML);
  }