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.CustomActionEventForm__View Maven / Gradle / Ivy
package pl.fhframework.docs.event;
public class CustomActionEventForm__View extends pl.fhframework.docs.event.CustomActionEventForm
{
@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_OutputLabel_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 {
}
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 CustomActionEventForm__View()
{
initCmp_this();
setupAccessibility();
}
private pl.fhframework.format.FhConversionService __getConversionService() { return __conversionService; }
private pl.fhframework.core.i18n.MessageService __getMessageService() { return __messagesService; }
private CustomActionEventForm__View getThisForm() { return this; }
private void initCmp_this() {
this.setLabelModelBinding(new pl.fhframework.binding.CompiledBinding<>(
"{$.fh.docs.event.custom_custom_action_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.custom_custom_action_event
private String getThis_labelModelBinding() {
try {
return __getMessageService().getAllBundles().getMessage("fh.docs.event.custom_custom_action_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.custom_custom_action_event_helps}",
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.custom_custom_action_event_helps
private String getU__Form_OutputLabel1_1_valueBinding() {
try {
return __getMessageService().getAllBundles().getMessage("fh.docs.event.custom_custom_action_event_helps");
} 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.fireCustomActionEvent.",
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.fireCustomActionEvent.
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.fireCustomActionEvent.";
} 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_OutputLabel_1 = new pl.fhframework.model.forms.OutputLabel(this);
u__Form_PanelGroup_1.addSubcomponent(u__Form_PanelGroup_OutputLabel_1);
u__Form_PanelGroup_OutputLabel_1.setGroupingParentComponent(u__Form_PanelGroup_1);
initCmp_u__Form_PanelGroup_OutputLabel_1(u__Form_PanelGroup_OutputLabel_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_OutputLabel_1(pl.fhframework.model.forms.OutputLabel u__Form_PanelGroup_OutputLabel_1, pl.fhframework.model.forms.PanelGroup u__Form_PanelGroup_1) {
u__Form_PanelGroup_OutputLabel_1.setIconAlignment(pl.fhframework.model.forms.attribute.IconAlignment.BEFORE);
u__Form_PanelGroup_OutputLabel_1.setValueBinding(new pl.fhframework.binding.CompiledBinding<>(
"{$.fh.docs.event.custom_action_name_is_a_function_name}.",
null,
String.class, /* target type */
this::__getConversionService,
this::getU__Form_PanelGroup_OutputLabel_1_valueBinding, /* getter */
null /* setter */
));
u__Form_PanelGroup_OutputLabel_1.setWidth("md-12");
u__Form_PanelGroup_OutputLabel_1.setId("_Form_PanelGroup_OutputLabel");
u__Form_PanelGroup_OutputLabel_1.setInvisible(false);
u__Form_PanelGroup_OutputLabel_1.setGroupingParentComponent(u__Form_PanelGroup_1);
}
// {$.fh.docs.event.custom_action_name_is_a_function_name}.
private String getU__Form_PanelGroup_OutputLabel_1_valueBinding() {
try {
return "" + pl.fhframework.core.generator.CompiledClassesHelper.nvl(__getMessageService().getAllBundles().getMessage("fh.docs.event.custom_action_name_is_a_function_name")) + ".";
} catch(NullPointerException e) {
if (pl.fhframework.core.generator.CompiledClassesHelper.isLocalNullPointerException(e, getThisForm().getClass().getName(), "getU__Form_PanelGroup_OutputLabel_1_valueBinding")) {
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.custom_javascript_example}",
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.custom_javascript_example
private String getU__Form_PanelGroup_PanelGroup1_1_labelModelBinding() {
try {
return __getMessageService().getAllBundles().getMessage("fh.docs.event.custom_javascript_example");
} 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(7);
u_code1_1.setMaxLength(65535);
u_code1_1.setHintInputGroup(false);
u_code1_1.setModelBinding(new pl.fhframework.binding.StaticBinding<>("CustomActions.callbacks[\'toggleMenu\'] = function() {\n $(\'.menu-toggle\').on(\'click\', function(event) {\n FormsManager.toggleMenu();\n });\n};"));
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);
}
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.custom_usecase_java_example}",
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.custom_usecase_java_example
private String getU__Form_PanelGroup_PanelGroup2_1_labelModelBinding() {
try {
return __getMessageService().getAllBundles().getMessage("fh.docs.event.custom_usecase_java_example");
} 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(8);
u_code2_1.setMaxLength(65535);
u_code2_1.setHintInputGroup(false);
u_code2_1.setModelBinding(new pl.fhframework.binding.StaticBinding<>("@Autowired\n private EventRegistry eventRegistry;\n\n @Override\n public void start() {\n eventRegistry.fireCustomActionEvent(\"toggleMenu\");\n }"));
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);
}
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
}
}