@PublicSpi public abstract class AbstractProjectTabPanel extends Object implements ProjectTabPanel
Modifier and Type | Field and Description |
---|---|
protected JiraAuthenticationContext |
authenticationContext |
protected ProjectTabPanelModuleDescriptor |
descriptor |
Modifier | Constructor and Description |
---|---|
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.
|
protected |
AbstractProjectTabPanel(JiraAuthenticationContext jiraAuthenticationContext) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
createVelocityParams(BrowseContext ctx)
Creates new map of velocity parameters.
|
String |
getHtml(BrowseContext ctx)
Used to render the tab.
|
void |
init(ProjectTabPanelModuleDescriptor descriptor)
Initialize the tab panel panel with the plugins ProjectTabPanelModuleDescriptor.
|
protected ProjectTabPanelModuleDescriptor descriptor
protected final JiraAuthenticationContext authenticationContext
protected AbstractProjectTabPanel(JiraAuthenticationContext jiraAuthenticationContext)
protected AbstractProjectTabPanel()
public void init(ProjectTabPanelModuleDescriptor descriptor)
TabPanel
init
in interface TabPanel<ProjectTabPanelModuleDescriptor,BrowseContext>
descriptor
- the descriptor for this module as defined in the plugin xml descriptor.public String getHtml(BrowseContext ctx)
TabPanel
getHtml
in interface TabPanel<ProjectTabPanelModuleDescriptor,BrowseContext>
ctx
- The current context the tab is rendering in.protected Map<String,Object> createVelocityParams(BrowseContext ctx)
BrowseContext
. Note that it does not explicitly add the default velocity params or the i18n bean,
since these are added in JiraResourcedModuleDescriptor.getHtml(String, java.util.Map)
.
Extenders of AbstractProjectTabPanel should override this method to specify precise parameters required for their velocity template.
ctx
- browse contextCopyright © 2002-2019 Atlassian. All Rights Reserved.