Class 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

    public class ActivePropertiesModel<TModel,​TBean>
    extends Object
    implements 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:
    Serialized Form
    • Method Detail

      • getBeanForSelectedElement

        @Nullable
        public TBean getBeanForSelectedElement()
        Returns:
        Bean for controlling the XHTML page.
      • getCustomProps

        public Object getCustomProps()
        Returns:
        Custom properties of the workflow element.
      • getElementHelp

        public IElementHelpLocation getElementHelp()
        Returns:
        Help page for the selected element.
      • getPropertiesView

        public String getPropertiesView()
        Returns:
        Path to the XHTML page with the configuration UI.
      • getSelectedElementModel

        public IElementWithTask<TModel> getSelectedElementModel()
        Returns:
        Selected element to be edited.
      • updateCustomProps

        public void updateCustomProps​(Object newData)
        Parameters:
        newData - Updates the getCustomProps() with the given new data.
      • withTaskUuid

        public ActivePropertiesModel<TModel,​TBean> withTaskUuid​(UUID taskUuid)
        Parameters:
        taskUuid - Task UUID to set.
        Returns:
        A copy of this model, with the task UUID changed to the given UUID.
      • empty

        public static <TModel,​TBean> ActivePropertiesModel<TModel,​TBean> 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.