Package hudson.views
Class MyViewsTabBar
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<MyViewsTabBar>
-
- hudson.views.MyViewsTabBar
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<MyViewsTabBar>
- Direct Known Subclasses:
DefaultMyViewsTabBar
public abstract class MyViewsTabBar extends AbstractDescribableImpl<MyViewsTabBar> implements ExtensionPoint
Extension point for adding a MyViewsTabBar header to ProjectsMyViewsProperty
.This object must have the
myViewTabs.jelly
. This view is called once when the My 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 My Views TabBar in the default configuration.
- Since:
- 1.378
- Author:
- Winston Prakash
- See Also:
MyViewsTabBarDescriptor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MyViewsTabBar.GlobalConfigurationImpl
ConfiguresViewsTabBar
in the system configuration.-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description MyViewsTabBar()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DescriptorExtensionList<MyViewsTabBar,Descriptor<MyViewsTabBar>>
all()
Returns all the registeredListViewColumn
descriptors.MyViewsTabBarDescriptor
getDescriptor()
By default looks for a nested class (conventionally namedDescriptorImpl
) implementingDescriptor
and marked withExtension
.List<View>
sort(List<? extends View> views)
Sorts the views byView.getDisplayName()
.
-
-
-
Method Detail
-
all
public static DescriptorExtensionList<MyViewsTabBar,Descriptor<MyViewsTabBar>> all()
Returns all the registeredListViewColumn
descriptors.
-
getDescriptor
public MyViewsTabBarDescriptor getDescriptor()
Description copied from class:AbstractDescribableImpl
By default looks for a nested class (conventionally namedDescriptorImpl
) implementingDescriptor
and marked withExtension
.Gets the descriptor for this instance.
Descriptor
is a singleton for every concreteDescribable
implementation, 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:
getDescriptor
in interfaceDescribable<MyViewsTabBar>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<MyViewsTabBar>
-
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
-
-