Class ActivePropertiesModel<TModel,TBean>
java.lang.Object
de.xima.fc.workflow.designer.model.ActivePropertiesModel<TModel,TBean>
- Type Parameters:
TModel
- Type of the workflow element's properties model.TBean
- Type of the bean for the workflow element.
- All Implemented Interfaces:
Serializable
Model for when a trigger or node is selected and its details need to be shown in the properties panel.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <TModel,
TBean>
ActivePropertiesModel<TModel,TBean> empty()
static <TModel,
TBean>
ActivePropertiesModel<TModel,TBean> of
(String propertiesView, TBean bean, IElementWithTask<TModel> element, Object customProps, IElementHelpLocation elementHelp) void
updateCustomProps
(Object newData) withTaskUuid
(UUID taskUuid)
-
Method Details
-
getBeanForSelectedElement
- Returns:
- Bean for controlling the XHTML page.
-
getCustomProps
- Returns:
- Custom properties of the workflow element.
-
getElementHelp
- Returns:
- Help page for the selected element.
-
getPropertiesView
- Returns:
- Path to the XHTML page with the configuration UI.
-
getSelectedElementModel
- Returns:
- Selected element to be edited.
-
updateCustomProps
- Parameters:
newData
- Updates thegetCustomProps()
with the given new data.
-
withTaskUuid
- Parameters:
taskUuid
- Task UUID to set.- Returns:
- A copy of this model, with the task UUID changed to the given UUID.
-
empty
- Type Parameters:
TModel
- Type of the wrapped model instance.TBean
- Type of the wrapped bean instance.- Returns:
- A new empty properties model with no selected element.
-
of
public static <TModel,TBean> ActivePropertiesModel<TModel,TBean> of(String propertiesView, TBean bean, IElementWithTask<TModel> element, Object customProps, IElementHelpLocation elementHelp) - Type Parameters:
TModel
- Type of the wrapped model instance.TBean
- Type of the wrapped bean instance.- Parameters:
propertiesView
- Path to the XHTML page with the configuration UI.bean
- Bean for controlling the XHTML page.element
- Selected element to be edited.customProps
- Custom properties of the workflow element.elementHelp
- Help page for the selected element.- Returns:
- A new properties model with the given data.
-