Class ElementPropertiesBean
java.lang.Object
de.xima.fc.workflow.designer.bean.ElementPropertiesBean
- All Implemented Interfaces:
- Serializable
Bean for the properties panel to the right, that may contain node or trigger properties. Everything not specific to
 nodes or triggers goes in here, such as whether the panel is expanded, collapsed etc.
- Author:
- XIMA MEDIA GmbH
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidonModelUpdate(ModelUpdateEvent event) Invoked via a remote command when the flowchart process model was updated.voidonNodeSelect(org.primefaces.event.SelectEvent<IElementWithTask<NodeModel>> event) Called when a flowchart node is selected.voidonNodeUnselect(org.primefaces.event.UnselectEvent<IElementWithTask<NodeModel>> event) Called when a flowchart node was unselected.voidAction listener for when the refresh button of the element properties panel was clicked.voidonTriggerSelect(org.primefaces.event.SelectEvent<IElementWithTask<TriggerModel>> event) Called when a flowchart trigger is selected.voidonTriggerUnselect(org.primefaces.event.UnselectEvent<IElementWithTask<TriggerModel>> event) Called when a flowchart trigger was unselected.voidBean method that may be called to store the current properties that are being edited, and to transmit those changes to the flowchart.
- 
Constructor Details- 
ElementPropertiesBeanpublic ElementPropertiesBean()
 
- 
- 
Method Details- 
getElementHelp- Returns:
- The help page that should be shown in the properties panel. When no element is selected, nullis returned.
 
- 
getElementModel- Returns:
- If a trigger is selected, the currently selected TriggerModel. If a node is selected ,the currently selectedNodeModel. When no workflow element is selected, returnsnull.
 
- 
getLabelOfSelectedElement- Returns:
- The label of the currently selected workflow element, if any.
 
- 
getLabelOfSelectedTask- Returns:
- The label of the currently selected workflow element, if any.
 
- 
getPropertiesModel- Returns:
- The properties model used by the node or trigger that is currently selected. The properties are stored as JSON, but each handler can choose a class and have the JSON deserialized automatically. This properties model is then passed to the XHTML view.
 
- 
getPropertiesView- Returns:
- The XHTML page that should be shown in the properties panel. If no node is selected, an empty page is shown.
 
- 
onModelUpdateInvoked via a remote command when the flowchart process model was updated.- Parameters:
- event- Event from the flowchart.
 
- 
onNodeSelectCalled when a flowchart node is selected. Brings up the corresponding properties editors in the panel to the right.- Parameters:
- event- The select event that occurred.
 
- 
onNodeUnselectCalled when a flowchart node was unselected. Makes sure the property editors are not shown anymore to the right.- Parameters:
- event- The unselect event that occurred.
 
- 
onRefreshClickedpublic void onRefreshClicked()Action listener for when the refresh button of the element properties panel was clicked. Adds the current selection to the interactive elements so that validation errors are shown the next time a server validation is performed; and triggers a server validation to show the errors.
- 
onTriggerSelectCalled when a flowchart trigger is selected. Brings up the corresponding properties editors in the panel to the right.- Parameters:
- event- The select event that occurred.
 
- 
onTriggerUnselectpublic void onTriggerUnselect(org.primefaces.event.UnselectEvent<IElementWithTask<TriggerModel>> event) Called when a flowchart trigger was unselected. Makes sure the property editors are not shown anymore to the right.- Parameters:
- event- The unselect event that occurred.
 
- 
storeCurrentpublic void storeCurrent()Bean method that may be called to store the current properties that are being edited, and to transmit those changes to the flowchart.
 
-