com.atlassian.jira.plugin.componentpanel.impl
Class PopularIssuesTabPanel

java.lang.Object
  extended by com.atlassian.jira.plugin.componentpanel.impl.GenericTabPanel
      extended by com.atlassian.jira.plugin.componentpanel.impl.PopularIssuesTabPanel
All Implemented Interfaces:
TabPanel<ComponentTabPanelModuleDescriptor,BrowseComponentContext>, ComponentTabPanel

public class PopularIssuesTabPanel
extends GenericTabPanel

Version tab panel that displayes popular issues sorted by number of votes.

TODO: refactor to somehow use PopularIssuesProjectTabPanel

Since:
v3.10

Field Summary
 
Fields inherited from class com.atlassian.jira.plugin.componentpanel.impl.GenericTabPanel
authenticationContext, descriptor, projectManager
 
Constructor Summary
PopularIssuesTabPanel(ProjectManager projectManager, JiraAuthenticationContext authenticationContext, SearchProvider searchProvider, ConstantsManager constantsManager, ApplicationProperties applicationProperties)
           
 
Method Summary
protected  Map<String,Object> createVelocityParams(BrowseComponentContext context)
           
 boolean showPanel(BrowseComponentContext context)
          Determine whether or not to show this.
 
Methods inherited from class com.atlassian.jira.plugin.componentpanel.impl.GenericTabPanel
getHtml, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopularIssuesTabPanel

public PopularIssuesTabPanel(ProjectManager projectManager,
                             JiraAuthenticationContext authenticationContext,
                             SearchProvider searchProvider,
                             ConstantsManager constantsManager,
                             ApplicationProperties applicationProperties)
Method Detail

createVelocityParams

protected Map<String,Object> createVelocityParams(BrowseComponentContext context)
Overrides:
createVelocityParams in class GenericTabPanel

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>
Overrides:
showPanel in class GenericTabPanel
Parameters:
context - The current context the tab is rendering in.
Returns:
True if the conditions are right to display tab, otherwise false.


Copyright © 2002-2011 Atlassian. All Rights Reserved.