com.atlassian.jira.plugin.versionpanel.impl
Class GenericTabPanel
java.lang.Object
com.atlassian.jira.plugin.versionpanel.impl.GenericTabPanel
- All Implemented Interfaces:
- TabPanel<VersionTabPanelModuleDescriptor,BrowseVersionContext>, VersionTabPanel
- Direct Known Subclasses:
- PopularIssuesTabPanel
@PublicSpi
public class GenericTabPanel
- extends Object
- implements VersionTabPanel
- Since:
- v3.10
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
authenticationContext
protected final JiraAuthenticationContext authenticationContext
searchProvider
protected final SearchProvider searchProvider
GenericTabPanel
public GenericTabPanel(JiraAuthenticationContext authenticationContext,
SearchProvider searchProvider,
FieldVisibilityManager fieldVisibilityManager)
GenericTabPanel
@Deprecated
public GenericTabPanel(JiraAuthenticationContext authenticationContext,
SearchProvider searchProvider)
- Deprecated. Use
GenericTabPanel(com.atlassian.jira.security.JiraAuthenticationContext, com.atlassian.jira.issue.search.SearchProvider, com.atlassian.jira.web.FieldVisibilityManager)
instead. Since 4.4.
init
public void init(VersionTabPanelModuleDescriptor 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<VersionTabPanelModuleDescriptor,BrowseVersionContext>
- Parameters:
descriptor
- the descriptor for this module as defined in the plugin xml descriptor.
getHtml
public String getHtml(BrowseVersionContext context)
- Description copied from interface:
TabPanel
- Used to render the tab.
- Specified by:
getHtml
in interface TabPanel<VersionTabPanelModuleDescriptor,BrowseVersionContext>
- Parameters:
context
- The current context the tab is rendering in.
- Returns:
- Escaped string with the required html.
createStatisticAccessorBean
protected StatisticAccessorBean createStatisticAccessorBean(BrowseVersionContext context,
boolean limitToUnresolved)
createVelocityParams
protected Map<String,Object> createVelocityParams(BrowseVersionContext context)
showPanel
public boolean showPanel(BrowseVersionContext context)
- Returns true if fix for version field is visible, false otherwise.
- Specified by:
showPanel
in interface TabPanel<VersionTabPanelModuleDescriptor,BrowseVersionContext>
- Parameters:
context
- version context
- Returns:
- true if fix for version field is visible, false otherwise
Copyright © 2002-2012 Atlassian. All Rights Reserved.