com.atlassian.jira.plugin.versionpanel.impl
Class GenericTabPanel

java.lang.Object
  extended by com.atlassian.jira.plugin.versionpanel.impl.GenericTabPanel
All Implemented Interfaces:
TabPanel<VersionTabPanelModuleDescriptor,BrowseVersionContext>, VersionTabPanel
Direct Known Subclasses:
PopularIssuesTabPanel

public class GenericTabPanel
extends java.lang.Object
implements VersionTabPanel

Since:
v3.10

Field Summary
protected  JiraAuthenticationContext authenticationContext
           
protected  SearchProvider searchProvider
           
 
Constructor Summary
GenericTabPanel(JiraAuthenticationContext authenticationContext, SearchProvider searchProvider)
           
 
Method Summary
protected  StatisticAccessorBean createStatisticAccessorBean(BrowseVersionContext context, boolean limitToUnresolved)
           
protected  java.util.Map<java.lang.String,java.lang.Object> createVelocityParams(BrowseVersionContext context)
           
 java.lang.String getHtml(BrowseVersionContext context)
          Used to render the tab.
 void init(VersionTabPanelModuleDescriptor descriptor)
          Initialize the tab panel panel with the plugins ProjectTabPanelModuleDescriptor.
 boolean showPanel(BrowseVersionContext context)
          Returns true if fix for version field is visible, false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

authenticationContext

protected final JiraAuthenticationContext authenticationContext

searchProvider

protected final SearchProvider searchProvider
Constructor Detail

GenericTabPanel

public GenericTabPanel(JiraAuthenticationContext authenticationContext,
                       SearchProvider searchProvider)
Method Detail

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 java.lang.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 java.util.Map<java.lang.String,java.lang.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-2010 Atlassian. All Rights Reserved.