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

java.lang.Object
  extended by com.atlassian.jira.plugin.componentpanel.impl.GenericTabPanel
All Implemented Interfaces:
ComponentTabPanel
Direct Known Subclasses:
AbstractSummaryTabPanel, PopularIssuesTabPanel

public class GenericTabPanel
extends Object
implements ComponentTabPanel

Since:
v3.10

Field Summary
protected  JiraAuthenticationContext authenticationContext
           
protected  ProjectManager projectManager
           
 
Constructor Summary
GenericTabPanel(ProjectManager projectManager, JiraAuthenticationContext authenticationContext)
           
 
Method Summary
protected  StatisticAccessorBean createStatisticAccessorBean(ProjectComponent component)
           
protected  Map createVelocityParams(ComponentContext context)
           
 String getHtml(ComponentContext context)
          Run this tab panel for a given Component Browser action.
 void init(ComponentTabPanelModuleDescriptor descriptor)
           
 boolean showPanel(ComponentContext context)
          Whether or not to show this panel for the given action, project and version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

projectManager

protected final ProjectManager projectManager

authenticationContext

protected final JiraAuthenticationContext authenticationContext
Constructor Detail

GenericTabPanel

public GenericTabPanel(ProjectManager projectManager,
                       JiraAuthenticationContext authenticationContext)
Method Detail

init

public void init(ComponentTabPanelModuleDescriptor descriptor)
Specified by:
init in interface ComponentTabPanel
Parameters:
descriptor - component tab panel descriptor

getHtml

public String getHtml(ComponentContext context)
Description copied from interface: ComponentTabPanel
Run this tab panel for a given Component Browser action.

Specified by:
getHtml in interface ComponentTabPanel
Parameters:
context - the component to render html for
Returns:
HTML result of the tab panel.

showPanel

public boolean showPanel(ComponentContext context)
Description copied from interface: ComponentTabPanel
Whether or not to show this panel for the given action, project and version.

Specified by:
showPanel in interface ComponentTabPanel
Parameters:
context - component
Returns:
true if panel should be shown, false otherwise

createStatisticAccessorBean

protected StatisticAccessorBean createStatisticAccessorBean(ProjectComponent component)

createVelocityParams

protected Map createVelocityParams(ComponentContext context)


Copyright © 2002-2007 Atlassian. All Rights Reserved.