Package de.xima.fc.gui.bean.templates
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
@Named @ViewScoped public class TemplatesBean extends AMessaging implements IDataContainer
Bean für die aktuelle Session und deren Informationen- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
TemplatesBean.EntityListModelImpl
-
Field Summary
Fields Modifier and Type Field Description static String
PARAM_TEMPLATE_TYPE
-
Constructor Summary
Constructors Constructor Description TemplatesBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<Textbaustein>
getAllByType(ETextbausteinKategorie kat)
ETextbausteinKategorie
getCurrentTyp()
IEntityListModelSelectByView<Textbaustein>
getModel()
FormThemeReference
getPreviewFormTheme()
Only for HTML text templates: gets the form theme to use for previewing the selected text template.List<javax.faces.model.SelectItem>
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()
.SessionBean
getSessionBean()
Deprecated.String
getTemplateBodyStyleClass()
TemplatesSheetBean
getTemplatesSheetBean()
String
getTextRteContentsCss()
Creates the CSS URLs for CKEditor's contentsCss option, i.e.ViewEventBusBean
getViewEventBusBean()
void
reset()
void
resetSingle()
void
setCurrentTyp(ETextbausteinKategorie currentTyp)
void
setModel(IEntityListModelSelectByView<Textbaustein> model)
void
setPreviewFormTheme(FormThemeReference previewFormTheme)
Only for HTML text templates: sets the form theme to use for previewing the selected text template.void
setSessionBean(SessionBean sessionBean)
Deprecated.void
setTemplatesSheetBean(TemplatesSheetBean sheetBean)
void
setViewEventBusBean(ViewEventBusBean viewEventBusBean)
void
updateData()
Should update data when calledvoid
updateModel()
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.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, msg
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.I18nUtils
getFacesContext, getLocale, rbValue, rbValue, rbValue, rbValueOrDefault, rbValueOrDefault
-
-
-
-
Field Detail
-
PARAM_TEMPLATE_TYPE
public static final String PARAM_TEMPLATE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPreviewFormTheme
public FormThemeReference 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
public String 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
public void setPreviewFormTheme(FormThemeReference previewFormTheme)
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
public List<javax.faces.model.SelectItem> 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
public ETextbausteinKategorie getCurrentTyp()
- Returns:
- the currentTyp
-
getTemplateBodyStyleClass
public String getTemplateBodyStyleClass()
-
updateData
public void updateData()
Description copied from interface:IDataContainer
Should update data when called- Specified by:
updateData
in interfaceIDataContainer
-
updateModel
public void updateModel()
-
setCurrentTyp
public void setCurrentTyp(ETextbausteinKategorie currentTyp)
-
getModel
public IEntityListModelSelectByView<Textbaustein> getModel()
- Returns:
- the model
-
reset
public void reset()
-
resetSingle
public void resetSingle()
-
setModel
public void setModel(IEntityListModelSelectByView<Textbaustein> model)
- Parameters:
model
- the model to set
-
getAllByType
public List<Textbaustein> getAllByType(ETextbausteinKategorie kat)
-
getTemplatesSheetBean
public TemplatesSheetBean getTemplatesSheetBean()
-
setTemplatesSheetBean
public void setTemplatesSheetBean(TemplatesSheetBean sheetBean)
-
getViewEventBusBean
public ViewEventBusBean getViewEventBusBean()
-
setViewEventBusBean
public void setViewEventBusBean(ViewEventBusBean viewEventBusBean)
-
getSessionBean
@Deprecated public SessionBean getSessionBean()
Deprecated.
-
setSessionBean
@Deprecated public void setSessionBean(SessionBean sessionBean)
Deprecated.
-
-