Interface IElementPrototypeDescriptor<TData>

    • Method Detail

      • getIcon

        IGuiIcon getIcon()
        Gets the icon for this element prototype, as shown in the UI.
        Returns:
        The icon for this element prototype.
      • getLabel

        String getLabel()
        Gets the localized name of the prototype item, as shown in the UI.
        Returns:
        The localized name of the prototype item.
      • getMainCategory

        IElementCategory getMainCategory()
        Gets the element's main category, which is used for grouping the elements.
        Returns:
        The element's main category.
      • getPayload

        IElementPrototypeData<TData> getPayload()
        Gets the data for this element prototype that is used for creating a new workflow element.
        Returns:
        The data for this element prototype.
      • getSearchText

        String getSearchText()
        Gets the search text that is never visible to the user, but only used when searching for an element, such as via a search input field in the UI.
        Returns:
        The search text for this prototype.
      • getSortKey

        String getSortKey()
        Returns the sort key for element prototypes that are in the same getSubCategory(). Each prototype belongs to a category and is shown in that category (which may be a tab, accordion panel etc.) When there are multiple element prototypes in the same category, they are sorted according to their getSortKey().
        Returns:
        The key for sorting items in the same getSubCategory().
      • getSubCategory

        IElementCategory getSubCategory()
        The optional sub category, which is used for grouping the element within the given main group.
        Returns:
        The element's sub category.
      • getSubLabel

        String getSubLabel()
        Gets the localized sub label of the prototype item. The sub label, when not empty, is shown below the label in a smaller font size and may provide additional details about the item.
        Returns:
        The localized sub label of the prototype item.
      • getTags

        Set<EElementPrototypeTag> getTags()
        Gets the list of tags for this prototype that may affect when this prototype is visible etc.
        Returns:
        List of tags for this prototype.
      • getTitle

        String getTitle()
        Gets the localized title for the this prototype. The title is the tooltip that shows up when the user hovers over the item with the mouse.
        Returns:
        The localized title for the prototype.