Package de.xima.fc.gui.model.designer
Class PreviewModel
java.lang.Object
de.xima.fc.gui.model.designer.PreviewModel
- All Implemented Interfaces:
Serializable
POJO model for the state of the form preview within the designer.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPreviewModel
(String stateName, String userGroupName) Creates a new POJO with the given initial data. -
Method Summary
Modifier and TypeMethodDescriptionstatic PreviewModel
empty()
boolean
void
setShowDebugTools
(boolean showDebugTools) void
setStateName
(String stateName) void
setUserGroupName
(String userGroupName)
-
Constructor Details
-
PreviewModel
Creates a new POJO with the given initial data.- Parameters:
stateName
- Value returned bygetStateName()
.userGroupName
- Value returned bygetUserGroupName()
.
-
-
Method Details
-
getStateName
- Returns:
- The name of the state for which to render the preview. Different states may result in different form elements being visible. No state when empty.
-
getUserGroupName
- Returns:
- The name of the user group for which to render the preview. Different user groups may see different form elements. No user group when empty.
-
isShowDebugTools
public boolean isShowDebugTools()- Returns:
- Whether the debug tools are shown initially when the preview is opened.
-
setShowDebugTools
public void setShowDebugTools(boolean showDebugTools) - Parameters:
showDebugTools
- Whether the debug tools are shown initially when the preview is opened.
-
setStateName
- Parameters:
stateName
- The name of the state for which to render the preview. Different states may result in different form elements being visible. No state when empty.
-
setUserGroupName
- Parameters:
userGroupName
- The name of the user group for which to render the preview. Different user groups may see different form elements. No user group when empty.
-
empty
- Returns:
- A new empty preview model with no state and no user group.
-