Package hudson.views
Class ViewsTabBar
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<ViewsTabBar>
-
- hudson.views.ViewsTabBar
-
- All Implemented Interfaces:
ExtensionPoint,Describable<ViewsTabBar>
- Direct Known Subclasses:
DefaultViewsTabBar
public abstract class ViewsTabBar extends AbstractDescribableImpl<ViewsTabBar> implements ExtensionPoint
Extension point for adding a ViewsTabBar header to ProjectsListView.This object must have the
viewTabs.jelly. This view is called once when the project views main panel is built. The "views" attribute is set to the "Collection of views".There also must be a default constructor, which is invoked to create a Views TabBar in the default configuration.
- Since:
- 1.381
- Author:
- Winston Prakash
- See Also:
ViewsTabBarDescriptor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classViewsTabBar.GlobalConfigurationImplConfiguresViewsTabBarin the system configuration.-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description ViewsTabBar()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DescriptorExtensionList<ViewsTabBar,Descriptor<ViewsTabBar>>all()Returns all the registeredViewsTabBardescriptors.ViewsTabBarDescriptorgetDescriptor()By default looks for a nested class (conventionally namedDescriptorImpl) implementingDescriptorand marked withExtension.List<View>sort(List<? extends View> views)Sorts the views byView.getDisplayName().
-
-
-
Method Detail
-
all
public static DescriptorExtensionList<ViewsTabBar,Descriptor<ViewsTabBar>> all()
Returns all the registeredViewsTabBardescriptors.
-
getDescriptor
public ViewsTabBarDescriptor getDescriptor()
Description copied from class:AbstractDescribableImplBy default looks for a nested class (conventionally namedDescriptorImpl) implementingDescriptorand marked withExtension.Gets the descriptor for this instance.
Descriptoris a singleton for every concreteDescribableimplementation, so ifa.getClass() == b.getClass()then by defaulta.getDescriptor() == b.getDescriptor()as well. (In rare cases a single implementation class may be used for instances with distinct descriptors.)- Specified by:
getDescriptorin interfaceDescribable<ViewsTabBar>- Overrides:
getDescriptorin classAbstractDescribableImpl<ViewsTabBar>
-
sort
@NonNull @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public List<View> sort(@NonNull List<? extends View> views)
Sorts the views byView.getDisplayName().- Parameters:
views- the views.- Returns:
- the sorted views
- Since:
- 2.37
-
-