jetbrains.buildServer.web.openapi
Class SimpleCustomTab

java.lang.Object
  extended by jetbrains.buildServer.web.openapi.SimplePageExtension
      extended by jetbrains.buildServer.web.openapi.SimpleCustomTab
All Implemented Interfaces:
CustomTab, PageExtension
Direct Known Subclasses:
AdminPage, AgentDetailsTab, BuildTab, BuildTypeTab, 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
SimpleCustomTab(PagePlaces pagePlaces)
           
SimpleCustomTab(PagePlaces pagePlaces, PlaceId placeId, java.lang.String tabId, java.lang.String includeUrl, java.lang.String title)
           
 
Method Summary
 java.lang.String getTabId()
          Returns tab identifier
 java.lang.String getTabTitle()
          Returns title to use as custom tab name
 java.lang.String getTabTitle(javax.servlet.http.HttpServletRequest request)
          Returns title to use as custom tab name
 boolean 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.CustomTab
fillModel, isAvailable
 
Methods inherited from interface jetbrains.buildServer.web.openapi.PageExtension
getCssPaths, getIncludeUrl, getJsPaths, getPluginName
 

Constructor Detail

SimpleCustomTab

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

Specified by:
getTabId in 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 interface CustomTab
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 interface CustomTab
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

Specified by:
isVisible in interface CustomTab
Returns:
see above

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