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.GenericProjectTabPanel
          extended by com.atlassian.jira.plugin.projectpanel.impl.LabelsHeatmapProjectTabPanel
All Implemented Interfaces:
TabPanel<ProjectTabPanelModuleDescriptor,BrowseContext>, ProjectTabPanel

public class LabelsHeatmapProjectTabPanel
extends GenericProjectTabPanel

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)
           
 
Method Summary
 java.lang.String getHtml(BrowseContext browseContext)
          Returns HTML for the project tab.
 java.util.List<Field> getLabelFields(java.lang.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)
Method Detail

getHtml

public java.lang.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 GenericProjectTabPanel
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.

Specified by:
showPanel in interface TabPanel<ProjectTabPanelModuleDescriptor,BrowseContext>
Overrides:
showPanel in class GenericProjectTabPanel
Parameters:
browseContext - The current context the tab is rendering in.
Returns:
True if the conditions are right to display tab, otherwise false.

getLabelFields

public java.util.List<Field> getLabelFields(java.lang.Long projectId)


Copyright © 2002-2010 Atlassian. All Rights Reserved.