Package net.sourceforge.ganttproject.task

Examples of net.sourceforge.ganttproject.task.CustomColumnsValues


                    textElement("color", myAttrs, getHexaColor(t.getColor()),
                            handler);
                }
                {
                  AttributesImpl attrs = new AttributesImpl();
                  CustomColumnsValues customValues = t.getCustomValues();
                  for (Iterator it = getCustomColumnStorage().getCustomColums().iterator();
                       it.hasNext();) {
                    CustomColumn nextColumn = (CustomColumn) it.next();
                    Object value = customValues.getValue(nextColumn.getName());
                    String valueAsString = value==null ? "" : value.toString();
                    addAttribute("id", nextColumn.getId(), attrs);
                    textElement("custom-field", attrs, valueAsString, handler);
                  }
                }
View Full Code Here


            }
            // Notes
            if (csvOptions.bExportTaskNotes) {
              writeTextCell(out, task.getNotes());
            }
            CustomColumnsValues customValues = task.getCustomValues();
            for (int j=0; j<customFields.size(); j++) {
              Object nextCustomFieldValue = customValues.getValue(String.valueOf(customFields.get(j)));
              writeCell(out, String.valueOf(nextCustomFieldValue));
            }
            out.write("\n");
        }
    } // end of write tasks
View Full Code Here

                String s = "" + task.getNotes();
                if (s.length() > iMaxSize)
                    iMaxSize = s.length();
            }

            CustomColumnsValues customValues = task.getCustomValues();
            for (int j=0; j<customFields.size(); j++) {
              Object nextCustomFieldValue = customValues.getValue(String.valueOf(customFields.get(j)));
              String nextValueAsString = String.valueOf(nextCustomFieldValue);
              if (nextValueAsString.length() > iMaxSize) {
                iMaxSize = nextValueAsString.length();
              }
            }
View Full Code Here

            addAttribute("difference", String.valueOf(next.getDifference()), attrs);
            addAttribute("hardness", next.getHardness().getIdentifier(), attrs);
            emptyElement("depend", attrs, handler);
        }

        CustomColumnsValues ccv = task.getCustomValues();
        for (Iterator/*<CustomColumn>*/ it = customColumns.getCustomColums().iterator(); it.hasNext();) {
            CustomColumn nextColumn = (CustomColumn) it.next();
            final String name = nextColumn.getName();
            final String idc = nextColumn.getId();
            Object value = ccv.getValue(name);
            if (GregorianCalendar.class.isAssignableFrom(nextColumn.getType()) && value!=null) {
                value = DateParser.getIsoDate(((GanttCalendar)value).getTime());
            }
            addAttribute("taskproperty-id", idc, attrs);
            addAttribute("value", value==null ? null : String.valueOf(value), attrs);
View Full Code Here

TOP

Related Classes of net.sourceforge.ganttproject.task.CustomColumnsValues

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.