Interface IElementPrototypeDescriptor<TData>
-
- Type Parameters:
TData
- Type of the workflow element's properties model.
- All Known Subinterfaces:
INodePrototypeDescriptor<TData>
,ITriggerPrototypeDescriptor<TData>
- All Known Implementing Classes:
ElementPrototypeDescriptor
,NodePrototypeDescriptor
,TriggerPrototypeDescriptor
public interface IElementPrototypeDescriptor<TData>
A prototype for a workflow element (node or trigger) that is shown in the drawer panel in the workflow designer. The user can move a prototype via drag & drop into the design area in the center to create a new workflow element.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IGuiIcon
getIcon()
Gets the icon for this element prototype, as shown in the UI.String
getLabel()
Gets the localized name of the prototype item, as shown in the UI.IElementCategory
getMainCategory()
Gets the element's main category, which is used for grouping the elements.IElementPrototypeData<TData>
getPayload()
Gets the data for this element prototype that is used for creating a new workflow element.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.String
getSortKey()
Returns the sort key for element prototypes that are in the samegetSubCategory()
.IElementCategory
getSubCategory()
The optional sub category, which is used for grouping the element within the given main group.String
getSubLabel()
Gets the localized sub label of the prototype item.Set<EElementPrototypeTag>
getTags()
Gets the list of tags for this prototype that may affect when this prototype is visible etc.String
getTitle()
Gets the localized title for the this prototype.
-
-
-
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 samegetSubCategory()
. 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 theirgetSortKey()
.- 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 thelabel
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.
-
-