Interface IFormExtension
public interface IFormExtension
Interface of form extension - that means a panel which can be displayed in the form of persistent object in Polarion UI.
See example com.polarion.example.formextension in Polarion SDK.
- Since:
- 3.6.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
Returns the icon to be used in the title of the extension on work item form.default String
Returns the label to be used in the title of the extension on work item form.default String
render
(IFormExtensionContext context) Polarion calls this method to get the HTML content that should be displayed in the Form or Sidebar of an object.default String
Deprecated.Deprecated since 3.21.2.
-
Method Details
-
render
Deprecated.Deprecated since 3.21.2. This method is kept for backward compatibility. New extensions should implementrender(IFormExtensionContext)
Older versions of Polarion called this method to get the HTML content that should be displayed in the Form or Sidebar of an object. New versions of Polarion call therender(IFormExtensionContext)
.- Parameters:
object
- The object that the extension should render the content for, never null.attributes
- The attributes of the XML configuration tag from the form layout configuration except for the ID attribute- Returns:
- html string, may return null.
-
render
Polarion calls this method to get the HTML content that should be displayed in the Form or Sidebar of an object.- Parameters:
context
- The object containing the contextual information that the extension should use to render the content, never null.- Returns:
- html string, may return null.
- Since:
- 3.21.2
-
getIcon
Returns the icon to be used in the title of the extension on work item form.- Parameters:
object
- The object for which the extension should render the content, never null.attributes
- The attributes of the xml configuration tag from the form layout configuration except the id attribute- Returns:
- file name string, may return null.
- Since:
- 3.18.2
-
getLabel
@Nullable default String getLabel(@NotNull IPObject object, @Nullable Map<String, String> attributes) Returns the label to be used in the title of the extension on work item form.- Parameters:
object
- The object for which the extension should render the content, never null.attributes
- The attributes of the xml configuration tag from the form layout configuration except the id attribute- Returns:
- html string, may return null.
- Since:
- 3.18.2
-