Package net.sourceforge.ganttproject.task

Examples of net.sourceforge.ganttproject.task.CustomColumn


            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);
            emptyElement("customproperty", attrs, handler);
View Full Code Here


        writeTaskProperty(handler, "tpd7", "completion", "default", "int");
        writeTaskProperty(handler, "tpd8", "coordinator", "default", "text");
        writeTaskProperty(handler, "tpd9", "predecessorsr", "default", "text");
        Iterator/*<CustomColumn>*/ it = customCol.getCustomColums().iterator();
        while (it.hasNext()) {
            final CustomColumn cc = (CustomColumn) it.next();
            Object defVal = cc.getDefaultValue();
            final Class cla = cc.getType();
            final String valueType = encodeFieldType(cla);
            if (valueType==null) {
              continue;
            }
            if ("date".equals(valueType) && defVal!=null){
              assert defVal instanceof GanttCalendar;
              defVal = DateParser.getIsoDate(((GanttCalendar)defVal).getTime());
            }
            String idcStr = cc.getId();
            writeTaskProperty(handler, idcStr, cc.getName(), "custom", valueType, defVal==null ? null : String.valueOf(defVal));
        }
    }
View Full Code Here

TOP

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

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.