Class SimpleCustomTab
- java.lang.Object
-
- jetbrains.buildServer.web.openapi.SimplePageExtension
-
- jetbrains.buildServer.web.openapi.SimpleCustomTab
-
- All Implemented Interfaces:
CustomTab
,ExtensionAvailability
,PageExtension
- Direct Known Subclasses:
AdminPage
,AgentDetailsTab
,BuildTab
,BuildTypeTab
,EditProjectTab
,ProjectTab
,ViewBuildTab
public class SimpleCustomTab extends SimplePageExtension implements CustomTab
CustomTab implementation
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.web.openapi.SimplePageExtension
myCssPaths, myJsPaths, myPagePlaces
-
-
Constructor Summary
Constructors Constructor Description SimpleCustomTab(PagePlaces pagePlaces)
SimpleCustomTab(PagePlaces pagePlaces, PlaceId placeId, java.lang.String tabId, java.lang.String includeUrl, java.lang.String title)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.void
setTabTitle(java.lang.String title)
Setter of the tab title text, may be used from spring context-
Methods inherited from class jetbrains.buildServer.web.openapi.SimplePageExtension
addCssFile, addJsFile, fillModel, getCssPaths, getIncludeUrl, getJsPaths, getPlaceId, getPluginName, isAvailable, isGet, isPost, register, setIncludeUrl, setPlaceId, setPluginName, setPosition, toString, unregister
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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
-
-
-
-
Constructor Detail
-
SimpleCustomTab
@Autowired public SimpleCustomTab(@NotNull PagePlaces pagePlaces)
-
SimpleCustomTab
public SimpleCustomTab(@NotNull PagePlaces pagePlaces, @NotNull PlaceId placeId, @NotNull java.lang.String tabId, @NotNull java.lang.String includeUrl, @NotNull java.lang.String title)
-
-
Method Detail
-
getTabId
@NotNull public final java.lang.String getTabId()
Description copied from interface:CustomTab
Returns tab identifier
-
getTabTitle
@NotNull public java.lang.String getTabTitle()
Description copied from interface:CustomTab
Returns title to use as custom tab name- Specified by:
getTabTitle
in interfaceCustomTab
- Returns:
- tab title
-
getTabTitle
@NotNull public java.lang.String getTabTitle(@NotNull javax.servlet.http.HttpServletRequest request)
Description copied from interface:CustomTab
Returns title to use as custom tab name- Specified by:
getTabTitle
in interfaceCustomTab
- Parameters:
request
- to get information from. Can be used to customize title- Returns:
- tab title for given request
-
isVisible
public boolean isVisible()
Description copied from interface:CustomTab
Return false if the tab should be active (i.e. handle requests) but not visible for some reason
-
setTabTitle
public void setTabTitle(@NotNull java.lang.String title)
Setter of the tab title text, may be used from spring context- Parameters:
title
- tab title
-
-