com.atlassian.jira.plugin.projectpanel.impl
Class LabelsHeatmapProjectTabPanel

java.lang.Object
  extended by com.atlassian.jira.plugin.projectpanel.impl.AbstractProjectTabPanel
      extended by com.atlassian.jira.plugin.projectpanel.impl.LabelsHeatmapProjectTabPanel
All Implemented Interfaces:
TabPanel<ProjectTabPanelModuleDescriptor,BrowseContext>, ProjectTabPanel

public class LabelsHeatmapProjectTabPanel
extends AbstractProjectTabPanel

Implements a heatmap project tab panel modeled after the one found in Confluence labels. The tab has a number of different views including:

Popular view (alphabetic or heatmap) View All Index.


Field Summary
 
Fields inherited from class com.atlassian.jira.plugin.projectpanel.impl.AbstractProjectTabPanel
authenticationContext, descriptor
 
Constructor Summary
LabelsHeatmapProjectTabPanel(JiraAuthenticationContext jiraAuthenticationContext, CustomFieldManager customFieldManager, FieldVisibilityManager fieldVisibilityManager, FieldManager fieldManager, LabelUtil labelUtil, AlphabeticalLabelRenderer alphabeticalLabelRenderer)
           
 
Method Summary
 String getHtml(BrowseContext browseContext)
          Returns HTML for the project tab.
 List<Field> getLabelFields(Long projectId)
           
 boolean showPanel(BrowseContext browseContext)
          Determine whether or not to show this.
 
Methods inherited from class com.atlassian.jira.plugin.projectpanel.impl.AbstractProjectTabPanel
createVelocityParams, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelsHeatmapProjectTabPanel

public LabelsHeatmapProjectTabPanel(JiraAuthenticationContext jiraAuthenticationContext,
                                    CustomFieldManager customFieldManager,
                                    FieldVisibilityManager fieldVisibilityManager,
                                    FieldManager fieldManager,
                                    LabelUtil labelUtil,
                                    AlphabeticalLabelRenderer alphabeticalLabelRenderer)
Method Detail

getHtml

public String getHtml(BrowseContext browseContext)
Returns HTML for the project tab. This is overriden here to test for the view type process the proper velocity template and set appropriate velocity context parameters.

Specified by:
getHtml in interface TabPanel<ProjectTabPanelModuleDescriptor,BrowseContext>
Overrides:
getHtml in class AbstractProjectTabPanel
Parameters:
browseContext - The current context the tab is rendering in.
Returns:
Escaped string with the required html.

showPanel

public boolean showPanel(BrowseContext browseContext)
Description copied from interface: TabPanel
Determine whether or not to show this.

Parameters:
browseContext - The current context the tab is rendering in.
Returns:
True if the conditions are right to display tab, otherwise false.

getLabelFields

public List<Field> getLabelFields(Long projectId)


Copyright © 2002-2012 Atlassian. All Rights Reserved.