com.atlassian.jira.plugin.componentpanel.impl
Class GenericTabPanel
java.lang.Object
com.atlassian.jira.plugin.componentpanel.impl.GenericTabPanel
- All Implemented Interfaces:
- TabPanel<ComponentTabPanelModuleDescriptor,BrowseComponentContext>, ComponentTabPanel
- Direct Known Subclasses:
- PopularIssuesTabPanel
public class GenericTabPanel
- extends java.lang.Object
- implements ComponentTabPanel
- Since:
- v3.10
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
descriptor
protected ComponentTabPanelModuleDescriptor descriptor
projectManager
protected final ProjectManager projectManager
authenticationContext
protected final JiraAuthenticationContext authenticationContext
GenericTabPanel
public GenericTabPanel(ProjectManager projectManager,
JiraAuthenticationContext authenticationContext)
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 java.lang.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 java.util.Map<java.lang.String,java.lang.Object> createVelocityParams(BrowseComponentContext context)
Copyright © 2002-2010 Atlassian. All Rights Reserved.