Class AbstractProjectTabPanel
java.lang.Object
com.atlassian.jira.plugin.projectpanel.impl.AbstractProjectTabPanel
- All Implemented Interfaces:
TabPanel<ProjectTabPanelModuleDescriptor,,BrowseContext> ProjectTabPanel
- Direct Known Subclasses:
ComponentsProjectTabPanel,ComponentsVersionsProjectTabPanel,GenericProjectTabPanel,ReferenceProjectTabPanel,ReportsProjectTabPanel
Abstract tab panel for browse project.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final JiraAuthenticationContextprotected ProjectTabPanelModuleDescriptor -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedThis constructor is for the benefit of plugins which may be expecting there to be a no-arg constructor for this and sub classes.protectedAbstractProjectTabPanel(JiraAuthenticationContext jiraAuthenticationContext) -
Method Summary
Modifier and TypeMethodDescriptionCreates new map of velocity parameters.getHtml(BrowseContext ctx) Used to render the tab.voidinit(ProjectTabPanelModuleDescriptor descriptor) Initialize the tab panel panel with the plugins ProjectTabPanelModuleDescriptor.
-
Field Details
-
descriptor
-
authenticationContext
-
-
Constructor Details
-
AbstractProjectTabPanel
-
AbstractProjectTabPanel
protected AbstractProjectTabPanel()This constructor is for the benefit of plugins which may be expecting there to be a no-arg constructor for this and sub classes.
-
-
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<ProjectTabPanelModuleDescriptor,BrowseContext> - 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<ProjectTabPanelModuleDescriptor,BrowseContext> - Parameters:
ctx- The current context the tab is rendering in.- Returns:
- Escaped string with the required html.
-
createVelocityParams
Creates new map of velocity parameters. By default this map contains the context params fromBrowseContext. Note that it does not explicitly add the default velocity params or the i18n bean, since these are added inJiraResourcedModuleDescriptor.getHtml(String, java.util.Map).Extenders of AbstractProjectTabPanel should override this method to specify precise parameters required for their velocity template.
- Parameters:
ctx- browse context- Returns:
- new velocity parameters map
-