Class FormDesignerTemplateBean
- java.lang.Object
-
- de.xima.fc.gui.designer.form.bean.FormDesignerTemplateBean
-
- All Implemented Interfaces:
Serializable
@RequestScoped @Named("formDesignerTemplateBean") public class FormDesignerTemplateBean extends Object implements Serializable
Bean for the form designer. Creates the list of available templates, and handles saving templates.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FormDesignerTemplateBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createFormTemplate()
Remote command that creates a new templates from the request and persists it.void
deleteFormTemplate()
Remote command that deletes the template with the given ID.void
getTagsAndTemplates()
Remote command that returns all available tags and adds theFormTemplate
with the given ID to the list.org.primefaces.model.StreamedContent
getTemplateImage(long templateId)
Bean callback that fetches the image of the given template.void
updateFormTemplate()
Remote command that updates the template with the ID with the given data.
-
-
-
Method Detail
-
createFormTemplate
public void createFormTemplate()
Remote command that creates a new templates from the request and persists it.
-
deleteFormTemplate
public void deleteFormTemplate()
Remote command that deletes the template with the given ID.
-
getTagsAndTemplates
public void getTagsAndTemplates()
Remote command that returns all available tags and adds theFormTemplate
with the given ID to the list.
-
getTemplateImage
public org.primefaces.model.StreamedContent getTemplateImage(long templateId)
Bean callback that fetches the image of the given template.- Parameters:
templateId
- ID of the template for which to retrieve the image.- Returns:
- The image of the given template
-
updateFormTemplate
public void updateFormTemplate()
Remote command that updates the template with the ID with the given data.
-
-