Package de.xima.fc.gui.model.placeholder
Class PlaceholderContextModel
java.lang.Object
de.xima.fc.gui.model.placeholder.PlaceholderContextModel
- All Implemented Interfaces:
Serializable
Model for the
PlaceholderBean. Contains the data for the placeholders to be shown.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PlaceholderContextModelempty()booleanWhether the user can select a project in the placeholder dialog.voidsetSelectedFormVersion(FormVersion selectedFormVersion) voidsetSelectedPlaceholder(PlaceHolder selectedPlaceholder) voidsetSelectedProject(Projekt selectedProject) voidsetSelectedWorkflowVersion(WorkflowVersion selectedWorkflowVersion) voidsetShowProjectSelection(boolean showProjectSelection) voidsetVariables(com.alibaba.fastjson.JSONArray variables) voidsetVariables(List<FormVariable> variables) voidsetXItems(Collection<XItem> xItems)
-
Constructor Details
-
PlaceholderContextModel
public PlaceholderContextModel()
-
-
Method Details
-
getActiveGroups
- Returns:
- The set of groups of placeholder which are currently shown in the dialog.
-
getSelectedFormVersion
- Returns:
- The currently active form version in the UI, if any.
-
getSelectedPlaceholder
- Returns:
- The currently selected placeholder in the placeholder list.
-
getSelectedProject
- Returns:
- The project for which form placeholders are shown.
-
getSelectedWorkflowVersion
- Returns:
- The currently active workflow version in the UI, if any.
-
getVariables
- Returns:
- List of variables from the form designer.
-
getXItems
- Returns:
- The current active set of form items (e.g. when editing a form in the form designer), if any.
-
isShowProjectSelection
public boolean isShowProjectSelection()Whether the user can select a project in the placeholder dialog. If the user is editing the workflow of a project, they cannot use placeholders of other projects. When they are editing a template, they can.- Returns:
- Whether the current context allows selecting the project for which form placeholders are displayed.
-
setSelectedFormVersion
-
setSelectedPlaceholder
- Parameters:
selectedPlaceholder- The currently selected placeholder in the placeholder list.
-
setSelectedProject
- Parameters:
selectedProject- The project for which form placeholders are shown.
-
setSelectedWorkflowVersion
-
setShowProjectSelection
public void setShowProjectSelection(boolean showProjectSelection) -
setVariables
public void setVariables(com.alibaba.fastjson.JSONArray variables) - Parameters:
variables- List of variables from the form designer.
-
setVariables
- Parameters:
variables- List of variables from the form designer.
-
setXItems
-
empty
-