com.atlassian.jira.projectconfig.tab
Class WebPanelTab

java.lang.Object
  extended by com.atlassian.jira.projectconfig.tab.WebPanelTab
All Implemented Interfaces:
ProjectConfigTab
Direct Known Subclasses:
ComponentsTab, FieldsTab, IssuePermissionsTab, IssueSecurityTab, IssueTypesTab, NotificationsTab, PeopleTab, PermissionsTab, ScreensTab, SummaryTab, VersionsTab, WorkflowsTab

public abstract class WebPanelTab
extends Object
implements ProjectConfigTab

A tab panel on the project configuration page that is rendered using a webpanel.

It will construct the tab contents from two web panels:

Since:
v4.4

Field Summary
static String CURRENT_PROJECT
           
static String CURRENT_TAB_NAME
           
 
Constructor Summary
WebPanelTab(com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager, VelocityContextFactory factory, String id, String linkId)
           
 
Method Summary
 void addResourceForProject(ProjectConfigTabRenderContext context)
          Add any webresource that the tab needs to render itself.
 String getId()
          Get the ID for the panel.
 String getLinkId()
          Return the ID of the tab link that opens this tab.
 String getTab(ProjectConfigTabRenderContext context)
          Return the tab content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.projectconfig.tab.ProjectConfigTab
getTitle
 

Field Detail

CURRENT_PROJECT

public static final String CURRENT_PROJECT
See Also:
Constant Field Values

CURRENT_TAB_NAME

public static final String CURRENT_TAB_NAME
See Also:
Constant Field Values
Constructor Detail

WebPanelTab

public WebPanelTab(com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager,
                   VelocityContextFactory factory,
                   String id,
                   String linkId)
Method Detail

getId

public String getId()
Description copied from interface: ProjectConfigTab
Get the ID for the panel.

Specified by:
getId in interface ProjectConfigTab
Returns:
the ID of the panel.

getLinkId

public String getLinkId()
Description copied from interface: ProjectConfigTab
Return the ID of the tab link that opens this tab.

Specified by:
getLinkId in interface ProjectConfigTab
Returns:
the ID of the tab link that opens this tab.

getTab

public String getTab(ProjectConfigTabRenderContext context)
Description copied from interface: ProjectConfigTab
Return the tab content.

Specified by:
getTab in interface ProjectConfigTab
Parameters:
context - contains information that may be useful for tab renderering.
Returns:
the HTML of the tab.

addResourceForProject

public void addResourceForProject(ProjectConfigTabRenderContext context)
Description copied from interface: ProjectConfigTab
Add any webresource that the tab needs to render itself.

Specified by:
addResourceForProject in interface ProjectConfigTab
Parameters:
context - contains information that may be useful for tab renderering.


Copyright © 2002-2012 Atlassian. All Rights Reserved.