Package de.xima.fc.gui.model.placeholder
Class PlaceholderContextModel
- java.lang.Object
- 
- de.xima.fc.gui.model.placeholder.PlaceholderContextModel
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class PlaceholderContextModel extends Object implements Serializable Model for thePlaceholderBean. Contains the data for the placeholders to be shown.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description PlaceholderContextModel()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PlaceholderContextModelempty()Set<IPlaceholderGroup>getActiveGroups()FormVersiongetSelectedFormVersion()PlaceHoldergetSelectedPlaceholder()ProjektgetSelectedProject()WorkflowVersiongetSelectedWorkflowVersion()List<FormVariable>getVariables()Collection<XItem>getXItems()booleanisShowProjectSelection()Whether 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)
 
- 
- 
- 
Method Detail- 
getActiveGroupspublic Set<IPlaceholderGroup> getActiveGroups() - Returns:
- The set of groups of placeholder which are currently shown in the dialog.
 
 - 
getSelectedFormVersionpublic FormVersion getSelectedFormVersion() - Returns:
- The currently active form version in the UI, if any.
 
 - 
getSelectedPlaceholderpublic PlaceHolder getSelectedPlaceholder() - Returns:
- The currently selected placeholder in the placeholder list.
 
 - 
getSelectedProjectpublic Projekt getSelectedProject() - Returns:
- The project for which form placeholders are shown.
 
 - 
getSelectedWorkflowVersionpublic WorkflowVersion getSelectedWorkflowVersion() - Returns:
- The currently active workflow version in the UI, if any.
 
 - 
getVariablespublic List<FormVariable> getVariables() - Returns:
- List of variables from the form designer.
 
 - 
getXItemspublic Collection<XItem> getXItems() - Returns:
- The current active set of form items (e.g. when editing a form in the form designer), if any.
 
 - 
isShowProjectSelectionpublic 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.
 
 - 
setSelectedFormVersionpublic void setSelectedFormVersion(FormVersion selectedFormVersion) 
 - 
setSelectedPlaceholderpublic void setSelectedPlaceholder(PlaceHolder selectedPlaceholder) - Parameters:
- selectedPlaceholder- The currently selected placeholder in the placeholder list.
 
 - 
setSelectedProjectpublic void setSelectedProject(Projekt selectedProject) - Parameters:
- selectedProject- The project for which form placeholders are shown.
 
 - 
setSelectedWorkflowVersionpublic void setSelectedWorkflowVersion(WorkflowVersion selectedWorkflowVersion) 
 - 
setShowProjectSelectionpublic void setShowProjectSelection(boolean showProjectSelection) 
 - 
setVariablespublic void setVariables(com.alibaba.fastjson.JSONArray variables) - Parameters:
- variables- List of variables from the form designer.
 
 - 
setVariablespublic void setVariables(List<FormVariable> variables) - Parameters:
- variables- List of variables from the form designer.
 
 - 
setXItemspublic void setXItems(Collection<XItem> xItems) 
 - 
emptypublic static PlaceholderContextModel empty() 
 
- 
 
-