nosi.webapps.igrp.pages.novodominio.NovoDominioView 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.webapps.igrp.pages.novodominio;
import static nosi.core.i18n.Translator.gt;
import nosi.core.gui.components.*;
import nosi.core.gui.fields.*;
import nosi.core.webapp.Model;
import nosi.core.webapp.View;
public class NovoDominioView extends View {
public Field sectionheader_1_text;
public Field dominio;
public IGRPSectionHeader sectionheader_1;
public IGRPForm form_1;
public IGRPToolsBar toolsbar_1;
public IGRPButton btn_gravar;
public NovoDominioView(){
this.setPageTitle("Registar Dominio");
sectionheader_1 = new IGRPSectionHeader("sectionheader_1","");
form_1 = new IGRPForm("form_1","");
sectionheader_1_text = new TextField(model,"sectionheader_1_text");
sectionheader_1_text.setLabel(gt(""));
sectionheader_1_text.setValue(gt("Gestão de Dominio - Novo"));
sectionheader_1_text.propertie().add("type","text").add("name","p_sectionheader_1_text").add("maxlength","4000");
dominio = new TextField(model,"dominio");
dominio.setLabel(gt("Domínio"));
dominio.propertie().add("name","p_dominio").add("type","text").add("maxlength","30").add("required","true").add("readonly","false").add("disabled","false").add("placeholder",gt("")).add("desclabel","false");
toolsbar_1 = new IGRPToolsBar("toolsbar_1");
btn_gravar = new IGRPButton("Gravar","igrp","NovoDominio","gravar","submit","primary|fa-save","","");
btn_gravar.propertie.add("type","specific").add("rel","gravar").add("refresh_components","");
}
@Override
public void render(){
sectionheader_1.addField(sectionheader_1_text);
form_1.addField(dominio);
toolsbar_1.addButton(btn_gravar);
this.addToPage(sectionheader_1);
this.addToPage(form_1);
this.addToPage(toolsbar_1);
}
@Override
public void setModel(Model model) {
dominio.setValue(model);
}
}