Class TemplatesBean
java.lang.Object
de.xima.fc.gui.common.utils.msg.I18nUtils
de.xima.fc.gui.common.utils.msg.MessageUtils
de.xima.fc.gui.common.utils.msg.AMessaging
de.xima.fc.gui.bean.templates.TemplatesBean
- All Implemented Interfaces:
IDataContainer, Serializable
Bean für die aktuelle Session und deren Informationen
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classstatic final classModel that holds the data for the bulk delete confirmation dialog, when the user selects multiple templates and wants to delete or reset them. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the model for the bulk delete confirmation dialog, when the user selects multiple templates and wants to delete or reset them.getModel()Only for HTML text templates: gets the form theme to use for previewing the selected text template.List<javax.faces.model.SelectItem> Only for HTML text templates: gets the options that can be selected in the form theme dropdown for previewing the selected text template, seegetPreviewFormTheme().Deprecated.Creates the CSS URLs for CKEditor's contentsCss option, i.e. the CSS stylesheets that should be included inside the editor's editing area (which is an encapsulated iframe).voidWhen the confirmation button to delete or reset all selected templates was clicked, see alsoonBulkDeleteRequested().voidWhen the button to delete or reset all selected templates was clicked.voidreset()Resets the currently selected template to its default value.void(I18N variables only) Resets the selected grid cells to their default value.voidsetCurrentTyp(ETextbausteinKategorie currentTyp) voidvoidsetPreviewFormTheme(FormThemeReference previewFormTheme) Only for HTML text templates: sets the form theme to use for previewing the selected text template.voidsetSessionBean(SessionBean sessionBean) Deprecated.voidsetTemplatesSheetBean(TemplatesSheetBean sheetBean) voidsetViewEventBusBean(ViewEventBusBean viewEventBusBean) voidShould update data when calledvoidMethods inherited from class MessageUtils
addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsgFromString, addErrorMsgFromString, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsgFromString, addInfoMsgFromString, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addMsg, addMsg, addMsg, addMsg, addMsgs, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, errorMsg, errorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg, msgMethods inherited from class I18nUtils
getFacesContext, getLocale, rbValue, rbValue, rbValue, rbValueOrDefault, rbValueOrDefault
-
Field Details
-
PARAM_TEMPLATE_TYPE
- See Also:
-
-
Constructor Details
-
TemplatesBean
public TemplatesBean()
-
-
Method Details
-
getBulkDeleteModel
Gets the model for the bulk delete confirmation dialog, when the user selects multiple templates and wants to delete or reset them.- Returns:
- The model for the bulk delete confirmation dialog.
-
onBulkDeleteRequested
public void onBulkDeleteRequested()When the button to delete or reset all selected templates was clicked. Checks which templates must be deleted and which must be reset, and opens the confirmation dialog.System templates must be reset, all other templates created by the user must be deleted.
-
onBulkDeleteConfirmed
public void onBulkDeleteConfirmed()When the confirmation button to delete or reset all selected templates was clicked, see alsoonBulkDeleteRequested(). Resets all selected system templates, and deletes all selected user templates. -
getPreviewFormTheme
Only for HTML text templates: gets the form theme to use for previewing the selected text template.- Returns:
- The form theme to use for previewing the selected text template.
-
getTextRteContentsCss
Creates the CSS URLs for CKEditor's contentsCss option, i.e. the CSS stylesheets that should be included inside the editor's editing area (which is an encapsulated iframe).- Returns:
- The CSS URLs for CKEditor's contentsCss option.
-
setPreviewFormTheme
Only for HTML text templates: sets the form theme to use for previewing the selected text template.- Parameters:
previewFormTheme- The form theme to use for previewing the selected text template.
-
getPreviewFormThemeOptions
Only for HTML text templates: gets the options that can be selected in the form theme dropdown for previewing the selected text template, seegetPreviewFormTheme().- Returns:
- The options that can be selected in the form theme dropdown for previewing the selected text template.
-
getCurrentTyp
- Returns:
- the currentTyp
-
getTemplateBodyStyleClass
-
updateData
public void updateData()Description copied from interface:IDataContainerShould update data when called- Specified by:
updateDatain interfaceIDataContainer
-
updateModel
public void updateModel() -
setCurrentTyp
-
getModel
- Returns:
- the model
-
reset
public void reset()Resets the currently selected template to its default value. This is only possible for system templates. For non-system templates, this method should never be called, but if it is: does nothing. The default value is the value provided by the formcycle app. -
resetSingle
public void resetSingle()(I18N variables only) Resets the selected grid cells to their default value. The default value is the value provided by the formcycle app. -
setModel
- Parameters:
model- the model to set
-
getAllByType
-
getTemplatesSheetBean
-
setTemplatesSheetBean
-
getViewEventBusBean
-
setViewEventBusBean
-
getSessionBean
Deprecated. -
setSessionBean
Deprecated.
-