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

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

@PublicSpi
public class GenericTabPanel
extends Object
implements ComponentTabPanel

Since:
v3.10

Field Summary
protected  JiraAuthenticationContext authenticationContext
           
protected  ComponentTabPanelModuleDescriptor descriptor
           
protected  ProjectManager projectManager
           
 
Constructor Summary
GenericTabPanel(ProjectManager projectManager, JiraAuthenticationContext authenticationContext)
          Deprecated. Use GenericTabPanel(com.atlassian.jira.project.ProjectManager, com.atlassian.jira.security.JiraAuthenticationContext, com.atlassian.jira.web.FieldVisibilityManager) instead. Since v4.4.
GenericTabPanel(ProjectManager projectManager, JiraAuthenticationContext authenticationContext, FieldVisibilityManager fieldVisibilityManager)
           
 
Method Summary
protected  Map<String,Object> createVelocityParams(BrowseComponentContext context)
           
 String getHtml(BrowseComponentContext context)
          Used to render the tab.
 void init(ComponentTabPanelModuleDescriptor descriptor)
          Initialize the tab panel panel with the plugins ProjectTabPanelModuleDescriptor.
 boolean showPanel(BrowseComponentContext context)
          Determine whether or not to show this.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

descriptor

protected ComponentTabPanelModuleDescriptor descriptor

projectManager

protected final ProjectManager projectManager

authenticationContext

protected final JiraAuthenticationContext authenticationContext
Constructor Detail

GenericTabPanel

public GenericTabPanel(ProjectManager projectManager,
                       JiraAuthenticationContext authenticationContext)
Deprecated. Use GenericTabPanel(com.atlassian.jira.project.ProjectManager, com.atlassian.jira.security.JiraAuthenticationContext, com.atlassian.jira.web.FieldVisibilityManager) instead. Since v4.4.

Deprecated constructor.

Parameters:
projectManager - the ProjectManager
authenticationContext - the JiraAuthenticationContext

GenericTabPanel

public GenericTabPanel(ProjectManager projectManager,
                       JiraAuthenticationContext authenticationContext,
                       FieldVisibilityManager fieldVisibilityManager)
Method Detail

init

public void init(ComponentTabPanelModuleDescriptor 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<ComponentTabPanelModuleDescriptor,BrowseComponentContext>
Parameters:
descriptor - the descriptor for this module as defined in the plugin xml descriptor.

getHtml

public String getHtml(BrowseComponentContext context)
Description copied from interface: TabPanel
Used to render the tab.

Specified by:
getHtml in interface TabPanel<ComponentTabPanelModuleDescriptor,BrowseComponentContext>
Parameters:
context - The current context the tab is rendering in.
Returns:
Escaped string with the required html.

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

createVelocityParams

protected Map<String,Object> createVelocityParams(BrowseComponentContext context)


Copyright © 2002-2014 Atlassian. All Rights Reserved.