public abstract class ViewsTabBar extends AbstractDescribableImpl<ViewsTabBar> implements ExtensionPoint
ListView
.
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.
ViewsTabBarDescriptor
Modifier and Type | Class and Description |
---|---|
static class |
ViewsTabBar.GlobalConfigurationImpl
Configures
ViewsTabBar in the system configuration. |
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
ViewsTabBar() |
Modifier and Type | Method and Description |
---|---|
static DescriptorExtensionList<ViewsTabBar,Descriptor<ViewsTabBar>> |
all()
Returns all the registered
ViewsTabBar descriptors. |
ViewsTabBarDescriptor |
getDescriptor()
By default looks for a nested class (conventionally named
DescriptorImpl ) implementing Descriptor and marked with Extension . |
List<View> |
sort(List<? extends View> views)
Sorts the views by
View.getDisplayName() . |
public static DescriptorExtensionList<ViewsTabBar,Descriptor<ViewsTabBar>> all()
ViewsTabBar
descriptors.public ViewsTabBarDescriptor getDescriptor()
AbstractDescribableImpl
DescriptorImpl
) implementing Descriptor
and marked with Extension
.
Gets the descriptor for this instance.
Descriptor
is a singleton for every concrete Describable
implementation, so if a.getClass() == b.getClass()
then by default
a.getDescriptor() == b.getDescriptor()
as well.
(In rare cases a single implementation class may be used for instances with distinct descriptors.)
getDescriptor
in interface Describable<ViewsTabBar>
getDescriptor
in class AbstractDescribableImpl<ViewsTabBar>
@NonNull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public List<View> sort(@NonNull List<? extends View> views)
View.getDisplayName()
.views
- the views.Copyright © 2004–2022. All rights reserved.