All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nosi.core.gui.components.IGRPHome Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 2.0.0.241121-RCM
Show newest version
package nosi.core.gui.components;

import nosi.core.config.Config;
import nosi.core.config.IHeaderConfig;
import nosi.core.gui.fields.Field;
import nosi.core.gui.fields.SeparatorField;
import nosi.core.xml.XMLWritter;

public class IGRPHome implements IHeaderConfig{
	public String type_home="";
	protected final Config config = new Config();
	public IGRPHome(String type_home){
		this.type_home = type_home;
	}
	
	public String toString(){
		String path = this.config.getLinkXSLHome();
		if(this.type_home.equals("home-app")){
			path = this.config.getLinkXSLHomeApp();
		}
		else if(this.type_home.equals("home-app-studio")){
			path = this.config.getLinkXSLHomeStudio();
		}
		XMLWritter xml = new XMLWritter("rows", path);
		 xml.addXml(new Config().getHeader(this));
		 xml.startElement("content");
		 xml.text(":_message_reseved");
		 xml.setElement("title","Home");
		 if(this.type_home.equals("home-app")){
			 IGRPForm form_1 = new IGRPForm("form_1");
			 Field separator = new SeparatorField(null,"separator_1");
			 separator.setValue("Home");
			 separator.setLabel("Home");
			 form_1.addField(separator);
			 xml.addXml(form_1.toString());
		 }
		 xml.endElement();
		return xml.toString();
	}
	
	public String getTypeHeader() {
		return "home";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy