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 Summary
Constructors Constructor Description PlaceholderContextModel() 
- 
Method Summary
All 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
- 
getActiveGroups
public Set<IPlaceholderGroup> getActiveGroups()
- Returns:
 - The set of groups of placeholder which are currently shown in the dialog.
 
 
- 
getSelectedFormVersion
public FormVersion getSelectedFormVersion()
- Returns:
 - The currently active form version in the UI, if any.
 
 
- 
getSelectedPlaceholder
public PlaceHolder getSelectedPlaceholder()
- Returns:
 - The currently selected placeholder in the placeholder list.
 
 
- 
getSelectedProject
public Projekt getSelectedProject()
- Returns:
 - The project for which form placeholders are shown.
 
 
- 
getSelectedWorkflowVersion
public WorkflowVersion getSelectedWorkflowVersion()
- Returns:
 - The currently active workflow version in the UI, if any.
 
 
- 
getVariables
public List<FormVariable> getVariables()
- Returns:
 - List of variables from the form designer.
 
 
- 
getXItems
public Collection<XItem> 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
public void setSelectedFormVersion(FormVersion selectedFormVersion)
 
- 
setSelectedPlaceholder
public void setSelectedPlaceholder(PlaceHolder selectedPlaceholder)
- Parameters:
 selectedPlaceholder- The currently selected placeholder in the placeholder list.
 
- 
setSelectedProject
public void setSelectedProject(Projekt selectedProject)
- Parameters:
 selectedProject- The project for which form placeholders are shown.
 
- 
setSelectedWorkflowVersion
public void setSelectedWorkflowVersion(WorkflowVersion selectedWorkflowVersion)
 
- 
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
public void setVariables(List<FormVariable> variables)
- Parameters:
 variables- List of variables from the form designer.
 
- 
setXItems
public void setXItems(Collection<XItem> xItems)
 
- 
empty
public static PlaceholderContextModel empty()
 
 - 
 
 -