Beispiel #1
0
 void exportXmlTemplate(XmlWriter xml) {
   xml.startTag("grid_range");
   xml.writeTag("lower", getLowerValue());
   xml.writeTag("upper", getUpperValue());
   xml.writeTag("rigid", isRigid());
   xml.closeTag(); // grid_range
 }
Beispiel #2
0
 void exportXmlTemplate(XmlWriter xml) {
   xml.startTag("time");
   xml.writeTag("format", text);
   if (dateFormat instanceof SimpleDateFormat)
     xml.writeTag("pattern", ((SimpleDateFormat) dateFormat).toPattern());
   else xml.writeTag("pattern", ""); // A custom DateFormat can't be exported
   if (textDate != null) xml.writeTag("value", Util.getTimestamp(textDate));
   xml.closeTag();
 }