com.atlassian.jira.plugin.componentpanel.impl
Class GenericTabPanel
java.lang.Object
com.atlassian.jira.plugin.componentpanel.impl.GenericTabPanel
- All Implemented Interfaces:
- TabPanel<ComponentTabPanelModuleDescriptor,BrowseComponentContext>, ComponentTabPanel
- Direct Known Subclasses:
- PopularIssuesTabPanel
@PublicSpi
public class GenericTabPanel
- extends Object
- implements ComponentTabPanel
- Since:
- v3.10
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
descriptor
protected ComponentTabPanelModuleDescriptor descriptor
projectManager
protected final ProjectManager projectManager
authenticationContext
protected final JiraAuthenticationContext authenticationContext
GenericTabPanel
public GenericTabPanel(ProjectManager projectManager,
JiraAuthenticationContext authenticationContext)
- Deprecated. Use
GenericTabPanel(com.atlassian.jira.project.ProjectManager, com.atlassian.jira.security.JiraAuthenticationContext, com.atlassian.jira.web.FieldVisibilityManager)
instead. Since v4.4.
- Deprecated constructor.
- Parameters:
projectManager
- the ProjectManagerauthenticationContext
- the JiraAuthenticationContext
GenericTabPanel
public GenericTabPanel(ProjectManager projectManager,
JiraAuthenticationContext authenticationContext,
FieldVisibilityManager fieldVisibilityManager)
init
public void init(ComponentTabPanelModuleDescriptor descriptor)
- Description copied from interface:
TabPanel
- Initialize the tab panel panel with the plugins ProjectTabPanelModuleDescriptor. This is usually used for
rendering velocity views.
- Specified by:
init
in interface TabPanel<ComponentTabPanelModuleDescriptor,BrowseComponentContext>
- Parameters:
descriptor
- the descriptor for this module as defined in the plugin xml descriptor.
getHtml
public String getHtml(BrowseComponentContext context)
- Description copied from interface:
TabPanel
- Used to render the tab.
- Specified by:
getHtml
in interface TabPanel<ComponentTabPanelModuleDescriptor,BrowseComponentContext>
- Parameters:
context
- The current context the tab is rendering in.
- Returns:
- Escaped string with the required html.
showPanel
public boolean showPanel(BrowseComponentContext context)
- Description copied from interface:
TabPanel
- Determine whether or not to show this.
- Specified by:
showPanel
in interface TabPanel<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
protected Map<String,Object> createVelocityParams(BrowseComponentContext context)
Copyright © 2002-2012 Atlassian. All Rights Reserved.