nosi.core.gui.components.IGRPCalendar Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of igrp-core Show documentation
Show all versions of igrp-core Show documentation
IGRP Framework is a powerful and highly customizable platform developed by the Operational Nucleus for the Information Society (NOSi) to create web applications, it provides out of box, several modules to make easy to create stand-alone, production-grade web applications: authentication and access-control, business processes automation, reporting, page builder with automatic code generation and incorporation of the Once-Only-Principle, written in Java. IGRP Framework WAR - Contains some keys resources that give UI to IGRP Framework and others supports files.
package nosi.core.gui.components;
/**
* @author: Emanuel Pereira
*
* May 10, 2017
*
* Description: class to generate xml of calendar
*/
/*
*
pt
/images/IGRP/IGRP2.3/core/calendar/3.0.1/data/calendar.json
*/
import java.util.ArrayList;
import nosi.core.gui.fields.Field;
import nosi.core.gui.fields.GenXMLField;
public class IGRPCalendar extends IGRPComponent{
protected ArrayList fields;
public IGRPCalendar(String tag_name,String title){
super(tag_name,title);
this.properties.put("type", "calendar");
this.properties.put("xml-type", "calendar");
this.properties.put("gen-type", "container");
this.properties.put("gen-group", "");
this.fields = new ArrayList<>();
}
public IGRPCalendar(String tag_name){
this(tag_name,"");
}
public IGRPCalendar(){
this(null);
}
public void addField(Field field){
this.fields.add(field);
}
public String toString(){
this.xml.startElement(this.tag_name);
GenXMLField.writteAttributes(xml, properties);
GenXMLField.toXml(this.xml,this.fields);
this.xml.endElement();
return this.xml.toString();
}
}