Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
pl.fhframework.docs.event.FileDownloadEventForm__View Maven / Gradle / Ivy
package pl.fhframework.docs.event;
public class FileDownloadEventForm__View extends pl.fhframework.docs.event.FileDownloadEventForm
{
@org.springframework.beans.factory.annotation.Autowired private pl.fhframework.format.FhConversionService __conversionService;
@org.springframework.beans.factory.annotation.Autowired private pl.fhframework.core.i18n.MessageService __messagesService;
@org.springframework.beans.factory.annotation.Autowired private pl.fhframework.core.rules.service.RulesService __ruleService;
pl.fhframework.model.forms.OutputLabel u__Form_OutputLabel1_1;
pl.fhframework.model.forms.OutputLabel u__Form_OutputLabel2_1;
pl.fhframework.model.forms.PanelGroup u__Form_PanelGroup_1;
pl.fhframework.model.forms.OutputLabel u__Form_PanelGroup_OutputLabel1_1;
pl.fhframework.model.forms.OutputLabel u__Form_PanelGroup_OutputLabel2_1;
pl.fhframework.model.forms.FileUpload u_fileUploadId1_1;
pl.fhframework.model.forms.Button u__Form_PanelGroup_Button1_1;
pl.fhframework.model.forms.Button u__Form_PanelGroup_Button2_1;
pl.fhframework.model.forms.Button u__Form_PanelGroup_Button3_1;
pl.fhframework.model.forms.PanelGroup u__Form_PanelGroup_PanelGroup1_1;
pl.fhframework.model.forms.InputText u_code1_1;
pl.fhframework.model.forms.PanelGroup u__Form_PanelGroup_PanelGroup2_1;
pl.fhframework.model.forms.InputText u_code2_1;
pl.fhframework.model.forms.AvailabilityConfiguration a_availabilityConfiguration_1;
pl.fhframework.model.forms.Model a_model_1;
public static final java.util.Set ____actions = new java.util.LinkedHashSet<>();
static {
____actions.add(new pl.fhframework.binding.ActionSignature("downloadByResource", pl.fhframework.events.ViewEvent.class));
____actions.add(new pl.fhframework.binding.ActionSignature("downloadByBinding", pl.fhframework.events.ViewEvent.class));
____actions.add(new pl.fhframework.binding.ActionSignature("downloadByFormElement", pl.fhframework.events.ViewEvent.class));
}
public static final java.util.Set ____variants = new java.util.LinkedHashSet<>();
static {
}
public static final java.util.Set ____includes = new java.util.LinkedHashSet<>();
static {
}
public FileDownloadEventForm__View()
{
initCmp_this();
setupAccessibility();
}
private pl.fhframework.format.FhConversionService __getConversionService() { return __conversionService; }
private pl.fhframework.core.i18n.MessageService __getMessageService() { return __messagesService; }
private FileDownloadEventForm__View getThisForm() { return this; }
private void initCmp_this() {
this.setLabelModelBinding(new pl.fhframework.binding.CompiledBinding<>(
"{$.fh.docs.event.file_file_download_event}",
null,
String.class, /* target type */
this::__getConversionService,
this::getThis_labelModelBinding, /* getter */
null /* setter */
));
this.setDeclaredContainer("mainForm");
this.setHideHeader(false);
this.setFocusFirstElement(true);
this.setLayout(pl.fhframework.model.forms.attribute.Layout.VERTICAL);
this.setModal(false);
this.setFormType(pl.fhframework.model.forms.attribute.FormType.STANDARD);
this.setModalSize(pl.fhframework.model.forms.attribute.FormModalSize.REGULAR);
this.setXmlns("http://fh.asseco.com/form/1.0");
this.setHeadingType(pl.fhframework.model.HeadingTypeEnum.Default);
this.setId("documentationHolder");
this.setInvisible(false);
u__Form_OutputLabel1_1 = new pl.fhframework.model.forms.OutputLabel(this);
this.addSubcomponent(u__Form_OutputLabel1_1);
u__Form_OutputLabel1_1.setGroupingParentComponent(this);
initCmp_u__Form_OutputLabel1_1(u__Form_OutputLabel1_1);
u__Form_OutputLabel2_1 = new pl.fhframework.model.forms.OutputLabel(this);
this.addSubcomponent(u__Form_OutputLabel2_1);
u__Form_OutputLabel2_1.setGroupingParentComponent(this);
initCmp_u__Form_OutputLabel2_1(u__Form_OutputLabel2_1);
u__Form_PanelGroup_1 = new pl.fhframework.model.forms.PanelGroup(this);
this.addSubcomponent(u__Form_PanelGroup_1);
u__Form_PanelGroup_1.setGroupingParentComponent(this);
initCmp_u__Form_PanelGroup_1(u__Form_PanelGroup_1);
a_availabilityConfiguration_1 = new pl.fhframework.model.forms.AvailabilityConfiguration(this);
this.setAvailabilityConfiguration(a_availabilityConfiguration_1);
initCmp_a_availabilityConfiguration_1(a_availabilityConfiguration_1);
a_model_1 = new pl.fhframework.model.forms.Model(this);
this.setModelDefinition(a_model_1);
initCmp_a_model_1(a_model_1);
}
// $.fh.docs.event.file_file_download_event
private String getThis_labelModelBinding() {
try {
return __getMessageService().getAllBundles().getMessage("fh.docs.event.file_file_download_event");
} catch(NullPointerException e) {
if (pl.fhframework.core.generator.CompiledClassesHelper.isLocalNullPointerException(e, getThisForm().getClass().getName(), "getThis_labelModelBinding")) {
return null;
} else {
throw e;
}
}
}
private void initCmp_u__Form_OutputLabel1_1(pl.fhframework.model.forms.OutputLabel u__Form_OutputLabel1_1) {
u__Form_OutputLabel1_1.setIconAlignment(pl.fhframework.model.forms.attribute.IconAlignment.BEFORE);
u__Form_OutputLabel1_1.setValueBinding(new pl.fhframework.binding.CompiledBinding<>(
"{$.fh.docs.event.file_file_download_event_is_an_event}.",
null,
String.class, /* target type */
this::__getConversionService,
this::getU__Form_OutputLabel1_1_valueBinding, /* getter */
null /* setter */
));
u__Form_OutputLabel1_1.setWidth("md-12");
u__Form_OutputLabel1_1.setId("_Form_OutputLabel1");
u__Form_OutputLabel1_1.setInvisible(false);
u__Form_OutputLabel1_1.setGroupingParentComponent(this);
}
// {$.fh.docs.event.file_file_download_event_is_an_event}.
private String getU__Form_OutputLabel1_1_valueBinding() {
try {
return "" + pl.fhframework.core.generator.CompiledClassesHelper.nvl(__getMessageService().getAllBundles().getMessage("fh.docs.event.file_file_download_event_is_an_event")) + ".";
} catch(NullPointerException e) {
if (pl.fhframework.core.generator.CompiledClassesHelper.isLocalNullPointerException(e, getThisForm().getClass().getName(), "getU__Form_OutputLabel1_1_valueBinding")) {
return null;
} else {
throw e;
}
}
}
private void initCmp_u__Form_OutputLabel2_1(pl.fhframework.model.forms.OutputLabel u__Form_OutputLabel2_1) {
u__Form_OutputLabel2_1.setIconAlignment(pl.fhframework.model.forms.attribute.IconAlignment.BEFORE);
u__Form_OutputLabel2_1.setValueBinding(new pl.fhframework.binding.CompiledBinding<>(
"{$.fh.docs.event.to_use_notification_use_following} API: pl.fhframework.event.EventRegistry.fireDownloadEvent.",
null,
String.class, /* target type */
this::__getConversionService,
this::getU__Form_OutputLabel2_1_valueBinding, /* getter */
null /* setter */
));
u__Form_OutputLabel2_1.setWidth("md-12");
u__Form_OutputLabel2_1.setId("_Form_OutputLabel2");
u__Form_OutputLabel2_1.setInvisible(false);
u__Form_OutputLabel2_1.setGroupingParentComponent(this);
}
// {$.fh.docs.event.to_use_notification_use_following} API: pl.fhframework.event.EventRegistry.fireDownloadEvent.
private String getU__Form_OutputLabel2_1_valueBinding() {
try {
return "" + pl.fhframework.core.generator.CompiledClassesHelper.nvl(__getMessageService().getAllBundles().getMessage("fh.docs.event.to_use_notification_use_following")) + " API: pl.fhframework.event.EventRegistry.fireDownloadEvent.";
} catch(NullPointerException e) {
if (pl.fhframework.core.generator.CompiledClassesHelper.isLocalNullPointerException(e, getThisForm().getClass().getName(), "getU__Form_OutputLabel2_1_valueBinding")) {
return null;
} else {
throw e;
}
}
}
private void initCmp_u__Form_PanelGroup_1(pl.fhframework.model.forms.PanelGroup u__Form_PanelGroup_1) {
u__Form_PanelGroup_1.setLabelModelBinding(new pl.fhframework.binding.CompiledBinding<>(
"{$.fh.docs.event.example_usage}",
null,
String.class, /* target type */
this::__getConversionService,
this::getU__Form_PanelGroup_1_labelModelBinding, /* getter */
null /* setter */
));
u__Form_PanelGroup_1.setCollapsible(false);
u__Form_PanelGroup_1.setBorderVisible(false);
u__Form_PanelGroup_1.setModelBindingForState(new pl.fhframework.binding.StaticBinding<>("false"));
u__Form_PanelGroup_1.setIconOpenedBinding(new pl.fhframework.binding.StaticBinding<>("fa-arrow-down"));
u__Form_PanelGroup_1.setIconClosedBinding(new pl.fhframework.binding.StaticBinding<>("fa-arrow-up"));
u__Form_PanelGroup_1.setHeadingType(pl.fhframework.model.HeadingTypeEnum.Default);
u__Form_PanelGroup_1.setWidth("md-12");
u__Form_PanelGroup_1.setId("_Form_PanelGroup");
u__Form_PanelGroup_1.setInvisible(false);
u__Form_PanelGroup_OutputLabel1_1 = new pl.fhframework.model.forms.OutputLabel(this);
u__Form_PanelGroup_1.addSubcomponent(u__Form_PanelGroup_OutputLabel1_1);
u__Form_PanelGroup_OutputLabel1_1.setGroupingParentComponent(u__Form_PanelGroup_1);
initCmp_u__Form_PanelGroup_OutputLabel1_1(u__Form_PanelGroup_OutputLabel1_1, u__Form_PanelGroup_1);
u__Form_PanelGroup_OutputLabel2_1 = new pl.fhframework.model.forms.OutputLabel(this);
u__Form_PanelGroup_1.addSubcomponent(u__Form_PanelGroup_OutputLabel2_1);
u__Form_PanelGroup_OutputLabel2_1.setGroupingParentComponent(u__Form_PanelGroup_1);
initCmp_u__Form_PanelGroup_OutputLabel2_1(u__Form_PanelGroup_OutputLabel2_1, u__Form_PanelGroup_1);
u_fileUploadId1_1 = new pl.fhframework.model.forms.FileUpload(this);
u__Form_PanelGroup_1.addSubcomponent(u_fileUploadId1_1);
u_fileUploadId1_1.setGroupingParentComponent(u__Form_PanelGroup_1);
initCmp_u_fileUploadId1_1(u_fileUploadId1_1, u__Form_PanelGroup_1);
u__Form_PanelGroup_Button1_1 = new pl.fhframework.model.forms.Button(this);
u__Form_PanelGroup_1.addSubcomponent(u__Form_PanelGroup_Button1_1);
u__Form_PanelGroup_Button1_1.setGroupingParentComponent(u__Form_PanelGroup_1);
initCmp_u__Form_PanelGroup_Button1_1(u__Form_PanelGroup_Button1_1, u__Form_PanelGroup_1);
u__Form_PanelGroup_Button2_1 = new pl.fhframework.model.forms.Button(this);
u__Form_PanelGroup_1.addSubcomponent(u__Form_PanelGroup_Button2_1);
u__Form_PanelGroup_Button2_1.setGroupingParentComponent(u__Form_PanelGroup_1);
initCmp_u__Form_PanelGroup_Button2_1(u__Form_PanelGroup_Button2_1, u__Form_PanelGroup_1);
u__Form_PanelGroup_Button3_1 = new pl.fhframework.model.forms.Button(this);
u__Form_PanelGroup_1.addSubcomponent(u__Form_PanelGroup_Button3_1);
u__Form_PanelGroup_Button3_1.setGroupingParentComponent(u__Form_PanelGroup_1);
initCmp_u__Form_PanelGroup_Button3_1(u__Form_PanelGroup_Button3_1, u__Form_PanelGroup_1);
u__Form_PanelGroup_PanelGroup1_1 = new pl.fhframework.model.forms.PanelGroup(this);
u__Form_PanelGroup_1.addSubcomponent(u__Form_PanelGroup_PanelGroup1_1);
u__Form_PanelGroup_PanelGroup1_1.setGroupingParentComponent(u__Form_PanelGroup_1);
initCmp_u__Form_PanelGroup_PanelGroup1_1(u__Form_PanelGroup_PanelGroup1_1, u__Form_PanelGroup_1);
u__Form_PanelGroup_PanelGroup2_1 = new pl.fhframework.model.forms.PanelGroup(this);
u__Form_PanelGroup_1.addSubcomponent(u__Form_PanelGroup_PanelGroup2_1);
u__Form_PanelGroup_PanelGroup2_1.setGroupingParentComponent(u__Form_PanelGroup_1);
initCmp_u__Form_PanelGroup_PanelGroup2_1(u__Form_PanelGroup_PanelGroup2_1, u__Form_PanelGroup_1);
u__Form_PanelGroup_1.setGroupingParentComponent(this);
}
// $.fh.docs.event.example_usage
private String getU__Form_PanelGroup_1_labelModelBinding() {
try {
return __getMessageService().getAllBundles().getMessage("fh.docs.event.example_usage");
} catch(NullPointerException e) {
if (pl.fhframework.core.generator.CompiledClassesHelper.isLocalNullPointerException(e, getThisForm().getClass().getName(), "getU__Form_PanelGroup_1_labelModelBinding")) {
return null;
} else {
throw e;
}
}
}
private void initCmp_u__Form_PanelGroup_OutputLabel1_1(pl.fhframework.model.forms.OutputLabel u__Form_PanelGroup_OutputLabel1_1, pl.fhframework.model.forms.PanelGroup u__Form_PanelGroup_1) {
u__Form_PanelGroup_OutputLabel1_1.setIconAlignment(pl.fhframework.model.forms.attribute.IconAlignment.BEFORE);
u__Form_PanelGroup_OutputLabel1_1.setValueBinding(new pl.fhframework.binding.CompiledBinding<>(
"{$.fh.docs.event.file_there_is_many_possible_api_parameters_depending_on_needs}.",
null,
String.class, /* target type */
this::__getConversionService,
this::getU__Form_PanelGroup_OutputLabel1_1_valueBinding, /* getter */
null /* setter */
));
u__Form_PanelGroup_OutputLabel1_1.setWidth("md-12");
u__Form_PanelGroup_OutputLabel1_1.setId("_Form_PanelGroup_OutputLabel1");
u__Form_PanelGroup_OutputLabel1_1.setInvisible(false);
u__Form_PanelGroup_OutputLabel1_1.setGroupingParentComponent(u__Form_PanelGroup_1);
}
// {$.fh.docs.event.file_there_is_many_possible_api_parameters_depending_on_needs}.
private String getU__Form_PanelGroup_OutputLabel1_1_valueBinding() {
try {
return "" + pl.fhframework.core.generator.CompiledClassesHelper.nvl(__getMessageService().getAllBundles().getMessage("fh.docs.event.file_there_is_many_possible_api_parameters_depending_on_needs")) + ".";
} catch(NullPointerException e) {
if (pl.fhframework.core.generator.CompiledClassesHelper.isLocalNullPointerException(e, getThisForm().getClass().getName(), "getU__Form_PanelGroup_OutputLabel1_1_valueBinding")) {
return null;
} else {
throw e;
}
}
}
private void initCmp_u__Form_PanelGroup_OutputLabel2_1(pl.fhframework.model.forms.OutputLabel u__Form_PanelGroup_OutputLabel2_1, pl.fhframework.model.forms.PanelGroup u__Form_PanelGroup_1) {
u__Form_PanelGroup_OutputLabel2_1.setIconAlignment(pl.fhframework.model.forms.attribute.IconAlignment.BEFORE);
u__Form_PanelGroup_OutputLabel2_1.setValueBinding(new pl.fhframework.binding.CompiledBinding<>(
"{$.fh.docs.event.file_if_you_will_upload_file_to_a_fileupload} org.springframework.core.io.Resource, {$.fh.docs.event.file_you_can_just_point_it_from_code}",
null,
String.class, /* target type */
this::__getConversionService,
this::getU__Form_PanelGroup_OutputLabel2_1_valueBinding, /* getter */
null /* setter */
));
u__Form_PanelGroup_OutputLabel2_1.setWidth("md-12");
u__Form_PanelGroup_OutputLabel2_1.setId("_Form_PanelGroup_OutputLabel2");
u__Form_PanelGroup_OutputLabel2_1.setInvisible(false);
u__Form_PanelGroup_OutputLabel2_1.setGroupingParentComponent(u__Form_PanelGroup_1);
}
// {$.fh.docs.event.file_if_you_will_upload_file_to_a_fileupload} org.springframework.core.io.Resource, {$.fh.docs.event.file_you_can_just_point_it_from_code}
private String getU__Form_PanelGroup_OutputLabel2_1_valueBinding() {
try {
return "" + pl.fhframework.core.generator.CompiledClassesHelper.nvl(__getMessageService().getAllBundles().getMessage("fh.docs.event.file_if_you_will_upload_file_to_a_fileupload")) + " org.springframework.core.io.Resource, " + pl.fhframework.core.generator.CompiledClassesHelper.nvl(__getMessageService().getAllBundles().getMessage("fh.docs.event.file_you_can_just_point_it_from_code"));
} catch(NullPointerException e) {
if (pl.fhframework.core.generator.CompiledClassesHelper.isLocalNullPointerException(e, getThisForm().getClass().getName(), "getU__Form_PanelGroup_OutputLabel2_1_valueBinding")) {
return null;
} else {
throw e;
}
}
}
private void initCmp_u_fileUploadId1_1(pl.fhframework.model.forms.FileUpload u_fileUploadId1_1, pl.fhframework.model.forms.PanelGroup u__Form_PanelGroup_1) {
u_fileUploadId1_1.setOnUpload(new pl.fhframework.binding.CompiledActionBinding(
"-", "-"));
u_fileUploadId1_1.setFileModelBinding(new pl.fhframework.binding.CompiledBinding<>(
"{modelBindingResource}",
"modelBindingResource", /* property name */
org.springframework.core.io.Resource.class, /* target type */
this::__getConversionService,
this::getModel, /* base object getter */
(baseObject) -> this.getU_fileUploadId1_1_fileModelBinding(baseObject), /* getter of property on base object */
(baseObject, newValue) -> this.setU_fileUploadId1_1_fileModelBinding(baseObject, newValue) /* setter of property on base object */
));
u_fileUploadId1_1.setRequired(false);
u_fileUploadId1_1.setMaxSize(3145728L);
u_fileUploadId1_1.setLabelHidden(false);
u_fileUploadId1_1.setMultiple(false);
u_fileUploadId1_1.setLabelModelBinding(new pl.fhframework.binding.CompiledBinding<>(
"{$.fh.docs.event.file_upload_file}",
null,
String.class, /* target type */
this::__getConversionService,
this::getU_fileUploadId1_1_labelModelBinding, /* getter */
null /* setter */
));
u_fileUploadId1_1.setWidth("md-3");
u_fileUploadId1_1.setId("fileUploadId1");
u_fileUploadId1_1.setInvisible(false);
u_fileUploadId1_1.setGroupingParentComponent(u__Form_PanelGroup_1);
}
// modelBindingResource
private org.springframework.core.io.Resource getU_fileUploadId1_1_fileModelBinding(pl.fhframework.docs.event.model.FileDownloadEventModel baseObject) {
try {
return baseObject.getModelBindingResource();
} catch(NullPointerException e) {
if (pl.fhframework.core.generator.CompiledClassesHelper.isLocalNullPointerException(e, getThisForm().getClass().getName(), "getU_fileUploadId1_1_fileModelBinding")) {
return null;
} else {
throw e;
}
}
}
// modelBindingResource
private void setU_fileUploadId1_1_fileModelBinding(pl.fhframework.docs.event.model.FileDownloadEventModel baseObject, org.springframework.core.io.Resource newValue) {
try {
baseObject.setModelBindingResource(newValue);
} catch(NullPointerException e) {
if (pl.fhframework.core.generator.CompiledClassesHelper.isLocalNullPointerException(e, getThisForm().getClass().getName(), "setU_fileUploadId1_1_fileModelBinding")) {
// ignore
} else {
throw e;
}
}
}
// $.fh.docs.event.file_upload_file
private String getU_fileUploadId1_1_labelModelBinding() {
try {
return __getMessageService().getAllBundles().getMessage("fh.docs.event.file_upload_file");
} catch(NullPointerException e) {
if (pl.fhframework.core.generator.CompiledClassesHelper.isLocalNullPointerException(e, getThisForm().getClass().getName(), "getU_fileUploadId1_1_labelModelBinding")) {
return null;
} else {
throw e;
}
}
}
private void initCmp_u__Form_PanelGroup_Button1_1(pl.fhframework.model.forms.Button u__Form_PanelGroup_Button1_1, pl.fhframework.model.forms.PanelGroup u__Form_PanelGroup_1) {
u__Form_PanelGroup_Button1_1.setOnClick(new pl.fhframework.binding.CompiledActionBinding(
"downloadByResource(this)", "downloadByResource",
new pl.fhframework.binding.ActionBinding.ActionArgument("this", (event) -> event) /* this */));
u__Form_PanelGroup_Button1_1.setLabelModelBinding(new pl.fhframework.binding.CompiledBinding<>(
"{$.fh.docs.event.file_download_by_resource}",
null,
String.class, /* target type */
this::__getConversionService,
this::getU__Form_PanelGroup_Button1_1_labelModelBinding, /* getter */
null /* setter */
));
u__Form_PanelGroup_Button1_1.setReCAPTCHA(false);
u__Form_PanelGroup_Button1_1.setId("_Form_PanelGroup_Button1");
u__Form_PanelGroup_Button1_1.setInvisible(false);
u__Form_PanelGroup_Button1_1.setGroupingParentComponent(u__Form_PanelGroup_1);
}
// $.fh.docs.event.file_download_by_resource
private String getU__Form_PanelGroup_Button1_1_labelModelBinding() {
try {
return __getMessageService().getAllBundles().getMessage("fh.docs.event.file_download_by_resource");
} catch(NullPointerException e) {
if (pl.fhframework.core.generator.CompiledClassesHelper.isLocalNullPointerException(e, getThisForm().getClass().getName(), "getU__Form_PanelGroup_Button1_1_labelModelBinding")) {
return null;
} else {
throw e;
}
}
}
private void initCmp_u__Form_PanelGroup_Button2_1(pl.fhframework.model.forms.Button u__Form_PanelGroup_Button2_1, pl.fhframework.model.forms.PanelGroup u__Form_PanelGroup_1) {
u__Form_PanelGroup_Button2_1.setOnClick(new pl.fhframework.binding.CompiledActionBinding(
"downloadByBinding(this)", "downloadByBinding",
new pl.fhframework.binding.ActionBinding.ActionArgument("this", (event) -> event) /* this */));
u__Form_PanelGroup_Button2_1.setLabelModelBinding(new pl.fhframework.binding.CompiledBinding<>(
"{$.fh.docs.event.file_download_by_form_element_binding}",
null,
String.class, /* target type */
this::__getConversionService,
this::getU__Form_PanelGroup_Button2_1_labelModelBinding, /* getter */
null /* setter */
));
u__Form_PanelGroup_Button2_1.setReCAPTCHA(false);
u__Form_PanelGroup_Button2_1.setId("_Form_PanelGroup_Button2");
u__Form_PanelGroup_Button2_1.setInvisible(false);
u__Form_PanelGroup_Button2_1.setGroupingParentComponent(u__Form_PanelGroup_1);
}
// $.fh.docs.event.file_download_by_form_element_binding
private String getU__Form_PanelGroup_Button2_1_labelModelBinding() {
try {
return __getMessageService().getAllBundles().getMessage("fh.docs.event.file_download_by_form_element_binding");
} catch(NullPointerException e) {
if (pl.fhframework.core.generator.CompiledClassesHelper.isLocalNullPointerException(e, getThisForm().getClass().getName(), "getU__Form_PanelGroup_Button2_1_labelModelBinding")) {
return null;
} else {
throw e;
}
}
}
private void initCmp_u__Form_PanelGroup_Button3_1(pl.fhframework.model.forms.Button u__Form_PanelGroup_Button3_1, pl.fhframework.model.forms.PanelGroup u__Form_PanelGroup_1) {
u__Form_PanelGroup_Button3_1.setOnClick(new pl.fhframework.binding.CompiledActionBinding(
"downloadByFormElement(this)", "downloadByFormElement",
new pl.fhframework.binding.ActionBinding.ActionArgument("this", (event) -> event) /* this */));
u__Form_PanelGroup_Button3_1.setLabelModelBinding(new pl.fhframework.binding.CompiledBinding<>(
"{$.fh.docs.event.file_download_by_iresourced_form_element}",
null,
String.class, /* target type */
this::__getConversionService,
this::getU__Form_PanelGroup_Button3_1_labelModelBinding, /* getter */
null /* setter */
));
u__Form_PanelGroup_Button3_1.setReCAPTCHA(false);
u__Form_PanelGroup_Button3_1.setId("_Form_PanelGroup_Button3");
u__Form_PanelGroup_Button3_1.setInvisible(false);
u__Form_PanelGroup_Button3_1.setGroupingParentComponent(u__Form_PanelGroup_1);
}
// $.fh.docs.event.file_download_by_iresourced_form_element
private String getU__Form_PanelGroup_Button3_1_labelModelBinding() {
try {
return __getMessageService().getAllBundles().getMessage("fh.docs.event.file_download_by_iresourced_form_element");
} catch(NullPointerException e) {
if (pl.fhframework.core.generator.CompiledClassesHelper.isLocalNullPointerException(e, getThisForm().getClass().getName(), "getU__Form_PanelGroup_Button3_1_labelModelBinding")) {
return null;
} else {
throw e;
}
}
}
private void initCmp_u__Form_PanelGroup_PanelGroup1_1(pl.fhframework.model.forms.PanelGroup u__Form_PanelGroup_PanelGroup1_1, pl.fhframework.model.forms.PanelGroup u__Form_PanelGroup_1) {
u__Form_PanelGroup_PanelGroup1_1.setLabelModelBinding(new pl.fhframework.binding.CompiledBinding<>(
"{$.fh.docs.event.form_code}",
null,
String.class, /* target type */
this::__getConversionService,
this::getU__Form_PanelGroup_PanelGroup1_1_labelModelBinding, /* getter */
null /* setter */
));
u__Form_PanelGroup_PanelGroup1_1.setCollapsible(false);
u__Form_PanelGroup_PanelGroup1_1.setBorderVisible(false);
u__Form_PanelGroup_PanelGroup1_1.setModelBindingForState(new pl.fhframework.binding.StaticBinding<>("false"));
u__Form_PanelGroup_PanelGroup1_1.setIconOpenedBinding(new pl.fhframework.binding.StaticBinding<>("fa-arrow-down"));
u__Form_PanelGroup_PanelGroup1_1.setIconClosedBinding(new pl.fhframework.binding.StaticBinding<>("fa-arrow-up"));
u__Form_PanelGroup_PanelGroup1_1.setHeadingType(pl.fhframework.model.HeadingTypeEnum.Default);
u__Form_PanelGroup_PanelGroup1_1.setWidth("md-12");
u__Form_PanelGroup_PanelGroup1_1.setId("_Form_PanelGroup_PanelGroup1");
u__Form_PanelGroup_PanelGroup1_1.setInvisible(false);
u_code1_1 = new pl.fhframework.model.forms.InputText(this);
u__Form_PanelGroup_PanelGroup1_1.addSubcomponent(u_code1_1);
u_code1_1.setGroupingParentComponent(u__Form_PanelGroup_PanelGroup1_1);
initCmp_u_code1_1(u_code1_1, u__Form_PanelGroup_PanelGroup1_1);
u__Form_PanelGroup_PanelGroup1_1.setGroupingParentComponent(u__Form_PanelGroup_1);
}
// $.fh.docs.event.form_code
private String getU__Form_PanelGroup_PanelGroup1_1_labelModelBinding() {
try {
return __getMessageService().getAllBundles().getMessage("fh.docs.event.form_code");
} catch(NullPointerException e) {
if (pl.fhframework.core.generator.CompiledClassesHelper.isLocalNullPointerException(e, getThisForm().getClass().getName(), "getU__Form_PanelGroup_PanelGroup1_1_labelModelBinding")) {
return null;
} else {
throw e;
}
}
}
private void initCmp_u_code1_1(pl.fhframework.model.forms.InputText u_code1_1, pl.fhframework.model.forms.PanelGroup u__Form_PanelGroup_PanelGroup1_1) {
u_code1_1.setRowsCount(4);
u_code1_1.setMaxLength(65535);
u_code1_1.setHintInputGroup(false);
u_code1_1.setModelBinding(new pl.fhframework.binding.StaticBinding<>(" "));
u_code1_1.setLabelModelBinding(new pl.fhframework.binding.CompiledBinding<>(
"{$.fh.docs.event.use_case_code}",
null,
String.class, /* target type */
this::__getConversionService,
this::getU_code1_1_labelModelBinding, /* getter */
null /* setter */
));
u_code1_1.setIconAlignment(pl.fhframework.model.forms.attribute.IconAlignment.BEFORE);
u_code1_1.setInputSize(60.0d);
u_code1_1.setWidth("md-12");
u_code1_1.setId("code1");
u_code1_1.setInvisible(false);
u_code1_1.setGroupingParentComponent(u__Form_PanelGroup_PanelGroup1_1);
}
// $.fh.docs.event.use_case_code
private String getU_code1_1_labelModelBinding() {
try {
return __getMessageService().getAllBundles().getMessage("fh.docs.event.use_case_code");
} catch(NullPointerException e) {
if (pl.fhframework.core.generator.CompiledClassesHelper.isLocalNullPointerException(e, getThisForm().getClass().getName(), "getU_code1_1_labelModelBinding")) {
return null;
} else {
throw e;
}
}
}
private void initCmp_u__Form_PanelGroup_PanelGroup2_1(pl.fhframework.model.forms.PanelGroup u__Form_PanelGroup_PanelGroup2_1, pl.fhframework.model.forms.PanelGroup u__Form_PanelGroup_1) {
u__Form_PanelGroup_PanelGroup2_1.setLabelModelBinding(new pl.fhframework.binding.CompiledBinding<>(
"{$.fh.docs.event.java_code}",
null,
String.class, /* target type */
this::__getConversionService,
this::getU__Form_PanelGroup_PanelGroup2_1_labelModelBinding, /* getter */
null /* setter */
));
u__Form_PanelGroup_PanelGroup2_1.setCollapsible(false);
u__Form_PanelGroup_PanelGroup2_1.setBorderVisible(false);
u__Form_PanelGroup_PanelGroup2_1.setModelBindingForState(new pl.fhframework.binding.StaticBinding<>("false"));
u__Form_PanelGroup_PanelGroup2_1.setIconOpenedBinding(new pl.fhframework.binding.StaticBinding<>("fa-arrow-down"));
u__Form_PanelGroup_PanelGroup2_1.setIconClosedBinding(new pl.fhframework.binding.StaticBinding<>("fa-arrow-up"));
u__Form_PanelGroup_PanelGroup2_1.setHeadingType(pl.fhframework.model.HeadingTypeEnum.Default);
u__Form_PanelGroup_PanelGroup2_1.setWidth("md-12");
u__Form_PanelGroup_PanelGroup2_1.setId("_Form_PanelGroup_PanelGroup2");
u__Form_PanelGroup_PanelGroup2_1.setInvisible(false);
u_code2_1 = new pl.fhframework.model.forms.InputText(this);
u__Form_PanelGroup_PanelGroup2_1.addSubcomponent(u_code2_1);
u_code2_1.setGroupingParentComponent(u__Form_PanelGroup_PanelGroup2_1);
initCmp_u_code2_1(u_code2_1, u__Form_PanelGroup_PanelGroup2_1);
u__Form_PanelGroup_PanelGroup2_1.setGroupingParentComponent(u__Form_PanelGroup_1);
}
// $.fh.docs.event.java_code
private String getU__Form_PanelGroup_PanelGroup2_1_labelModelBinding() {
try {
return __getMessageService().getAllBundles().getMessage("fh.docs.event.java_code");
} catch(NullPointerException e) {
if (pl.fhframework.core.generator.CompiledClassesHelper.isLocalNullPointerException(e, getThisForm().getClass().getName(), "getU__Form_PanelGroup_PanelGroup2_1_labelModelBinding")) {
return null;
} else {
throw e;
}
}
}
private void initCmp_u_code2_1(pl.fhframework.model.forms.InputText u_code2_1, pl.fhframework.model.forms.PanelGroup u__Form_PanelGroup_PanelGroup2_1) {
u_code2_1.setRowsCount(21);
u_code2_1.setMaxLength(65535);
u_code2_1.setHintInputGroup(false);
u_code2_1.setModelBinding(new pl.fhframework.binding.StaticBinding<>("@Autowired\nprivate EventRegistry eventRegistry;\n\n@Action\nprivate void downloadByResource(ViewEvent event) {\n final FileDownloadEventModel model = event.getSourceForm().getModel();\n //below resource does not have to be bound to model, it is only example\n final Resource resource = model.getModelBindingResource();\n eventRegistry.fireDownloadEvent(resource);\n}\n\n@Action\nprivate void downloadByBinding(ViewEvent event) {\n eventRegistry.fireDownloadEventByBinding(event.getSourceObject(), \"modelBindingResource\");\n}\n\n@Action\nprivate void downloadByFormElement(ViewEvent event){\n eventRegistry.fireDownloadEvent(event.getSourceForm().getFormElement(\"fileUploadId1\"));\n}"));
u_code2_1.setLabelModelBinding(new pl.fhframework.binding.CompiledBinding<>(
"{$.fh.docs.event.use_case_code}",
null,
String.class, /* target type */
this::__getConversionService,
this::getU_code2_1_labelModelBinding, /* getter */
null /* setter */
));
u_code2_1.setIconAlignment(pl.fhframework.model.forms.attribute.IconAlignment.BEFORE);
u_code2_1.setInputSize(60.0d);
u_code2_1.setWidth("md-12");
u_code2_1.setId("code2");
u_code2_1.setInvisible(false);
u_code2_1.setGroupingParentComponent(u__Form_PanelGroup_PanelGroup2_1);
}
// $.fh.docs.event.use_case_code
private String getU_code2_1_labelModelBinding() {
try {
return __getMessageService().getAllBundles().getMessage("fh.docs.event.use_case_code");
} catch(NullPointerException e) {
if (pl.fhframework.core.generator.CompiledClassesHelper.isLocalNullPointerException(e, getThisForm().getClass().getName(), "getU_code2_1_labelModelBinding")) {
return null;
} else {
throw e;
}
}
}
private void initCmp_a_availabilityConfiguration_1(pl.fhframework.model.forms.AvailabilityConfiguration a_availabilityConfiguration_1) {
a_availabilityConfiguration_1.setInvisible(false);
a_availabilityConfiguration_1.setGroupingParentComponent(this);
}
private void initCmp_a_model_1(pl.fhframework.model.forms.Model a_model_1) {
a_model_1.setInvisible(false);
}
private void setupAccessibility() {
// code1,code2
this.getAllAccessibilityRules().add(new pl.fhframework.model.forms.AccessibilityRule("code1", "", _rule_ -> pl.fhframework.model.forms.AccessibilityEnum.VIEW, null /* null as xml object won't be provided in compiled form */));
// code1,code2
this.getAllAccessibilityRules().add(new pl.fhframework.model.forms.AccessibilityRule("code2", "", _rule_ -> pl.fhframework.model.forms.AccessibilityEnum.VIEW, null /* null as xml object won't be provided in compiled form */));
// defaultAvailability attributes of Variant elements
}
}