Class GenericTabPanel
java.lang.Object
com.atlassian.jira.plugin.componentpanel.impl.GenericTabPanel
- All Implemented Interfaces:
TabPanel<ComponentTabPanelModuleDescriptor,,BrowseComponentContext> ComponentTabPanel
- Since:
- v3.10
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final JiraAuthenticationContextprotected ComponentTabPanelModuleDescriptorprotected final ProjectManager -
Constructor Summary
ConstructorsConstructorDescriptionGenericTabPanel(ProjectManager projectManager, JiraAuthenticationContext authenticationContext, FieldVisibilityManager fieldVisibilityManager) -
Method Summary
Modifier and TypeMethodDescriptiongetHtml(BrowseComponentContext context) Used to render the tab.voidinit(ComponentTabPanelModuleDescriptor descriptor) Initialize the tab panel panel with the plugins ProjectTabPanelModuleDescriptor.booleanshowPanel(BrowseComponentContext context) Determine whether or not to show this.
-
Field Details
-
descriptor
-
projectManager
-
authenticationContext
-
-
Constructor Details
-
GenericTabPanel
public GenericTabPanel(ProjectManager projectManager, 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<ComponentTabPanelModuleDescriptor,BrowseComponentContext> - 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<ComponentTabPanelModuleDescriptor,BrowseComponentContext> - Parameters:
context- The current context the tab is rendering in.- Returns:
- Escaped string with the required html.
-
showPanel
Description copied from interface:TabPanelDetermine whether or not to show this.- Specified by:
showPanelin interfaceTabPanel<ComponentTabPanelModuleDescriptor,BrowseComponentContext> - Parameters:
context- The current context the tab is rendering in.- Returns:
- True if the conditions are right to display tab, otherwise false.
-
createVelocityParams
-