Class WebPanelTab
java.lang.Object
com.atlassian.jira.projectconfig.tab.WebPanelTab
- All Implemented Interfaces:
ProjectConfigTab
- Direct Known Subclasses:
FieldsTab,IssuePermissionsTab,IssueSecurityTab,NotificationsTab,PermissionsTab,PrioritiesTab,RolesTab,ScreensTab,SummaryTab,WorkflowEditTab,WorkflowsTab
A tab panel on the project configuration page that is rendered using a webpanel.
It will construct the tab contents from two web panels:
- A header web-panel, assumed to be common for all inheriting tabs, located under 'tabs.admin.projectconfig.header'
- A body web-panel, specific to a given tab, located under 'tabs.admin.projectconfig.{tab ID}'
- Since:
- v4.4
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWebPanelTab(com.atlassian.plugin.web.api.DynamicWebInterfaceManager webInterfaceManager, VelocityContextFactory factory, String id, String linkId) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd any webresource that the tab needs to render itself.protected com.atlassian.plugin.web.api.model.WebPanelgetBodyWebPanel(Map<String, Object> velocityContext) protected com.atlassian.plugin.web.api.model.WebPanelgetHeaderWebPanel(Map<String, Object> velocityContext) getId()Get the ID for the panel.Return the ID of the tab link that opens this tab.getTab(ProjectConfigTabRenderContext context) Return the tab content.protected com.atlassian.plugin.web.api.model.WebPanelgetWebPanel(String location, Map<String, Object> velocityContext, boolean logWarns) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.projectconfig.tab.ProjectConfigTab
getTitle
-
Field Details
-
CURRENT_PROJECT
- See Also:
-
CURRENT_TAB_NAME
- See Also:
-
EXTRA_URL_PARAM
- See Also:
-
-
Constructor Details
-
WebPanelTab
public WebPanelTab(com.atlassian.plugin.web.api.DynamicWebInterfaceManager webInterfaceManager, VelocityContextFactory factory, String id, String linkId)
-
-
Method Details
-
getId
Description copied from interface:ProjectConfigTabGet the ID for the panel.- Specified by:
getIdin interfaceProjectConfigTab- Returns:
- the ID of the panel.
-
getLinkId
Description copied from interface:ProjectConfigTabReturn the ID of the tab link that opens this tab.- Specified by:
getLinkIdin interfaceProjectConfigTab- Returns:
- the ID of the tab link that opens this tab.
-
getTab
Description copied from interface:ProjectConfigTabReturn the tab content.- Specified by:
getTabin interfaceProjectConfigTab- Parameters:
context- contains information that may be useful for tab renderering.- Returns:
- the HTML of the tab.
-
createVelocityContext
-
addResourceForProject
Description copied from interface:ProjectConfigTabAdd any webresource that the tab needs to render itself.- Specified by:
addResourceForProjectin interfaceProjectConfigTab- Parameters:
context- contains information that may be useful for tab renderering.
-
getBodyWebPanel
-
getHeaderWebPanel
-
getWebPanel
-