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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
onModelUpdate
(ModelUpdateEvent event) Invoked via a remote command when the flowchart process model was updated.void
onNodeSelect
(org.primefaces.event.SelectEvent<IElementWithTask<NodeModel>> event) Called when a flowchart node is selected.void
onNodeUnselect
(org.primefaces.event.UnselectEvent<IElementWithTask<NodeModel>> event) Called when a flowchart node was unselected.void
Action listener for when the refresh button of the element properties panel was clicked.void
onTriggerSelect
(org.primefaces.event.SelectEvent<IElementWithTask<TriggerModel>> event) Called when a flowchart trigger is selected.void
onTriggerUnselect
(org.primefaces.event.UnselectEvent<IElementWithTask<TriggerModel>> event) Called when a flowchart trigger was unselected.void
Bean method that may be called to store the current properties that are being edited, and to transmit those changes to the flowchart.
-
Constructor Details
-
ElementPropertiesBean
public ElementPropertiesBean()
-
-
Method Details
-
getElementHelp
- Returns:
- The help page that should be shown in the properties panel. When no element is selected,
null
is 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.
-
onModelUpdate
Invoked via a remote command when the flowchart process model was updated.- Parameters:
event
- Event from the flowchart.
-
onNodeSelect
Called 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.
-
onNodeUnselect
Called 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.
-
onRefreshClicked
public 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. -
onTriggerSelect
Called 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.
-
onTriggerUnselect
public 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.
-
storeCurrent
public 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.
-