Interface CustomTab
-
- All Superinterfaces:
ExtensionAvailability
,PageExtension
- All Known Implementing Classes:
AdminPage
,AgentDetailsTab
,ArtifactsViewTab
,BuildTab
,BuildTypeTab
,EditProjectTab
,ProjectTab
,SimpleCustomTab
,ViewBuildTab
,ViewLogTab
@UserImplemented(adapterClass=SimpleCustomTab.class) public interface CustomTab extends PageExtension, ExtensionAvailability
Represents custom tab, seeSimpleCustomTab
UseSimpleCustomTab
as base class
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
fillModel(java.util.Map<java.lang.String,java.lang.Object> model, javax.servlet.http.HttpServletRequest request)
This method is called if this tab is selected.java.lang.String
getTabId()
Returns tab identifierjava.lang.String
getTabTitle()
Returns title to use as custom tab namejava.lang.String
getTabTitle(javax.servlet.http.HttpServletRequest request)
Returns title to use as custom tab nameboolean
isVisible()
Return false if the tab should be active (i.e.-
Methods inherited from interface jetbrains.buildServer.web.openapi.ExtensionAvailability
isAvailable
-
Methods inherited from interface jetbrains.buildServer.web.openapi.PageExtension
getCssPaths, getDisplayName, getIncludeUrl, getJsPaths, getPluginName, isAvailable
-
-
-
-
Method Detail
-
getTabId
@NotNull java.lang.String getTabId()
Returns tab identifier- Returns:
- tab identifier
-
getTabTitle
@NotNull java.lang.String getTabTitle()
Returns title to use as custom tab name- Returns:
- tab title
-
getTabTitle
@NotNull java.lang.String getTabTitle(@NotNull javax.servlet.http.HttpServletRequest request)
Returns title to use as custom tab name- Parameters:
request
- to get information from. Can be used to customize title- Returns:
- tab title for given request
- Since:
- 8.0
-
isVisible
boolean isVisible()
Return false if the tab should be active (i.e. handle requests) but not visible for some reason- Returns:
- see above
-
fillModel
void fillModel(@NotNull java.util.Map<java.lang.String,java.lang.Object> model, @NotNull javax.servlet.http.HttpServletRequest request)
This method is called if this tab is selected. See alsoPageExtension.fillModel(java.util.Map, javax.servlet.http.HttpServletRequest)
- Specified by:
fillModel
in interfacePageExtension
- Parameters:
model
- model to modifyrequest
- HTTP request
-
-