Class GenericTabPanel
java.lang.Object
com.atlassian.jira.plugin.versionpanel.impl.GenericTabPanel
- All Implemented Interfaces:
TabPanel<VersionTabPanelModuleDescriptor,,BrowseVersionContext> VersionTabPanel
- Since:
- v3.10
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGenericTabPanel(JiraAuthenticationContext authenticationContext, FieldVisibilityManager fieldVisibilityManager) -
Method Summary
Modifier and TypeMethodDescriptioncreateVelocityParams(BrowseVersionContext context) getHtml(BrowseVersionContext context) Used to render the tab.voidinit(VersionTabPanelModuleDescriptor descriptor) Initialize the tab panel panel with the plugins ProjectTabPanelModuleDescriptor.booleanshowPanel(BrowseVersionContext context) Returns true if fix for version field is visible, false otherwise.
-
Field Details
-
authenticationContext
-
-
Constructor Details
-
GenericTabPanel
public GenericTabPanel(JiraAuthenticationContext authenticationContext, FieldVisibilityManager fieldVisibilityManager)
-
-
Method Details
-
init
Description copied from interface:TabPanelInitialize the tab panel panel with the plugins ProjectTabPanelModuleDescriptor. This is usually used for rendering velocity views.- Specified by:
initin interfaceTabPanel<VersionTabPanelModuleDescriptor,BrowseVersionContext> - Parameters:
descriptor- the descriptor for this module as defined in the plugin xml descriptor.
-
getHtml
Description copied from interface:TabPanelUsed to render the tab.- Specified by:
getHtmlin interfaceTabPanel<VersionTabPanelModuleDescriptor,BrowseVersionContext> - Parameters:
context- The current context the tab is rendering in.- Returns:
- Escaped string with the required html.
-
createVelocityParams
-
showPanel
Returns true if fix for version field is visible, false otherwise.- Specified by:
showPanelin interfaceTabPanel<VersionTabPanelModuleDescriptor,BrowseVersionContext> - Parameters:
context- version context- Returns:
- true if fix for version field is visible, false otherwise
-