public abstract class WebPanelTab extends Object implements ProjectConfigTab
Modifier and Type | Field and Description |
---|---|
static String |
CURRENT_PROJECT |
static String |
CURRENT_TAB_NAME |
static String |
EXTRA_URL_PARAM |
Constructor and Description |
---|
WebPanelTab(com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager,
VelocityContextFactory factory,
String id,
String linkId) |
Modifier and Type | Method and Description |
---|---|
void |
addResourceForProject(ProjectConfigTabRenderContext context)
Add any webresource that the tab needs to render itself.
|
protected Map<String,Object> |
createVelocityContext(ProjectConfigTabRenderContext context) |
protected com.atlassian.plugin.web.model.WebPanel |
getBodyWebPanel(Map<String,Object> velocityContext) |
protected com.atlassian.plugin.web.model.WebPanel |
getHeaderWebPanel(Map<String,Object> velocityContext) |
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.
|
protected com.atlassian.plugin.web.model.WebPanel |
getWebPanel(String location,
Map<String,Object> velocityContext,
boolean logWarns) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTitle
public static final String CURRENT_PROJECT
public static final String CURRENT_TAB_NAME
public static final String EXTRA_URL_PARAM
public WebPanelTab(com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager, VelocityContextFactory factory, String id, String linkId)
public String getId()
ProjectConfigTab
getId
in interface ProjectConfigTab
public String getLinkId()
ProjectConfigTab
getLinkId
in interface ProjectConfigTab
public String getTab(ProjectConfigTabRenderContext context)
ProjectConfigTab
getTab
in interface ProjectConfigTab
context
- contains information that may be useful for tab renderering.protected Map<String,Object> createVelocityContext(ProjectConfigTabRenderContext context)
public void addResourceForProject(ProjectConfigTabRenderContext context)
ProjectConfigTab
addResourceForProject
in interface ProjectConfigTab
context
- contains information that may be useful for tab renderering.protected com.atlassian.plugin.web.model.WebPanel getBodyWebPanel(Map<String,Object> velocityContext)
protected com.atlassian.plugin.web.model.WebPanel getHeaderWebPanel(Map<String,Object> velocityContext)
Copyright © 2002-2023 Atlassian. All Rights Reserved.