use of au.com.vaadinutils.fields.CKEditorEmailField in project VaadinUtils by rlsutton1.
the class FormHelper method bindEditorField.
public <M> CKEditorEmailField bindEditorField(AbstractLayout form, ValidatingFieldGroup<E> group, SingularAttribute<E, M> member, boolean readonly) {
CKEditorEmailField field = bindEditorField(form, group, member.getName(), readonly);
this.fieldList.add(field);
return field;
}
use of au.com.vaadinutils.fields.CKEditorEmailField in project VaadinUtils by rlsutton1.
the class FormHelper method bindEditorField.
public <M> CKEditorEmailField bindEditorField(String fieldLabel, SingularAttribute<E, M> member, boolean readonly) {
CKEditorEmailField field = bindEditorField(form, group, member.getName(), readonly);
this.fieldList.add(field);
return field;
}
use of au.com.vaadinutils.fields.CKEditorEmailField in project VaadinUtils by rlsutton1.
the class FormHelper method bindEditorField.
public CKEditorEmailField bindEditorField(String fieldName, boolean readonly) {
CKEditorEmailField field = bindEditorField(form, group, fieldName, readonly);
this.fieldList.add(field);
return field;
}
use of au.com.vaadinutils.fields.CKEditorEmailField in project VaadinUtils by rlsutton1.
the class MultiColumnFormLayout method bindEditorField.
public CKEditorEmailField bindEditorField(SingularAttribute<E, String> member, boolean readonly) {
CKEditorEmailField field = formHelper.bindEditorField(this, fieldGroup, member, readonly);
this.fieldList.add(field);
return field;
}
use of au.com.vaadinutils.fields.CKEditorEmailField in project VaadinUtils by rlsutton1.
the class JasperReportScheduleLayout method buildEditor.
@Override
@SuppressWarnings("deprecation")
public TabSheet buildEditor(ValidatingFieldGroup<ReportEmailScheduleEntity> validatingFieldGroup) {
TabSheet tabsheet = new TabSheet();
tabsheet.setSizeFull();
VerticalLayout main = new VerticalLayout();
main.setSpacing(true);
main.setMargin(true);
main.setSizeFull();
tabsheet.addTab(main, "Email");
main.addComponent(emailTargetLayout);
FormHelper<ReportEmailScheduleEntity> helper = new FormHelper<ReportEmailScheduleEntity>(main, fieldGroup);
reportTitle = helper.bindTextField("Report", ReportEmailScheduleEntity_.reportTitle);
reportTitle.setReadOnly(true);
sender = helper.bindEntityField("From", ReportEmailScheduleEntity_.sender, ReportEmailSender.class, ReportEmailSender_.username);
sender.setReadOnly(true);
outputFormat = helper.bindEnumField("Output format", ReportEmailScheduleEntity_.outputFormat.getName(), OutputFormat.class);
outputFormat.removeItem(OutputFormat.HTML);
helper.bindTextField("Subject", ReportEmailScheduleEntity_.subject);
CKEditorEmailField message = helper.bindEditorField("Message", ReportEmailScheduleEntity_.message, false);
helper.bindTextField("Report Log", ReportEmailScheduleEntity_.reportLog.getName()).setReadOnly(true);
main.setExpandRatio(message, 1);
TopVerticalLayout scheduleWrapper = new TopVerticalLayout();
scheduleWrapper.setSizeFull();
tabsheet.addTab(scheduleWrapper, "Schedule");
FormLayout scheduleForm = new FormLayout();
scheduleForm.setSizeFull();
scheduleForm.setMargin(true);
scheduleWrapper.addComponent(scheduleForm);
buildScheduleTab(validatingFieldGroup, scheduleForm, helper);
VerticalLayout paramWrapper = new VerticalLayout();
paramWrapper.setSizeFull();
tabsheet.addTab(paramWrapper, "Parameters");
paramForm = new VerticalLayout();
paramForm.setSizeFull();
paramForm.setMargin(true);
paramWrapper.addComponent(paramForm);
return tabsheet;
}
Aggregations