Package de.xima.fc.gui.model.form_theme
Class FormThemeEditModeSimpleSelectionModel
- java.lang.Object
-
- de.xima.fc.gui.model.form_theme.BaseFormThemeSelectionModel
-
- de.xima.fc.gui.model.form_theme.FormThemeEditModeSimpleSelectionModel
-
- All Implemented Interfaces:
Serializable
public final class FormThemeEditModeSimpleSelectionModel extends BaseFormThemeSelectionModel
Model with additional data for the selected client form theme, such as the content of the CSS files. This model is used when the edit mode is set toEFormThemeEditMode.SIMPLE
.- Since:
- 8.3.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHtmlTemplateCss()
Gets the CSS file with the rules for HTML templates.String
getWebFormCss()
Gets the main CSS file with the rules for the web form.boolean
isHasCssChanges()
Checks whether any of the CSS files have been changed since the model was created.boolean
isHasNonStandardFiles()
Whether the currently selected theme contains any non-standard CSS files.void
setHtmlTemplateCss(String htmlTemplateCss)
Sets the CSS file with the rules for HTML templates.void
setWebFormCss(String webFormCss)
Sets the main CSS file with the rules for the web form.-
Methods inherited from class de.xima.fc.gui.model.form_theme.BaseFormThemeSelectionModel
getParentThemeOptions
-
-
-
-
Method Detail
-
getHtmlTemplateCss
public String getHtmlTemplateCss()
Gets the CSS file with the rules for HTML templates.- Returns:
- The HTML templates CSS file.
-
setHtmlTemplateCss
public void setHtmlTemplateCss(String htmlTemplateCss)
Sets the CSS file with the rules for HTML templates.- Parameters:
htmlTemplateCss
- The HTML templates CSS file.
-
getWebFormCss
public String getWebFormCss()
Gets the main CSS file with the rules for the web form.- Returns:
- The main web form CSS file.
-
setWebFormCss
public void setWebFormCss(String webFormCss)
Sets the main CSS file with the rules for the web form.- Parameters:
webFormCss
- The main web form CSS file.
-
isHasCssChanges
public boolean isHasCssChanges()
Checks whether any of the CSS files have been changed since the model was created.- Returns:
- Whether any of the CSS files have been changed.
-
isHasNonStandardFiles
public boolean isHasNonStandardFiles()
Whether the currently selected theme contains any non-standard CSS files. This is used to show a notification to the user when edit is set toEFormThemeEditMode.SIMPLE
. Simple mode only allows editing the main form and HTML template CSS, so the user should be notified when there are additional files that are not shown in the UI.- Returns:
- Whether the currently selected theme contains any non-standard CSS files.
-
-