public abstract class MyViewsTabBar extends AbstractDescribableImpl<MyViewsTabBar> implements ExtensionPoint
MyViewsProperty
.
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.
MyViewsTabBarDescriptor
Modifier and Type | Class and Description |
---|---|
static class |
MyViewsTabBar.GlobalConfigurationImpl
Configures
ViewsTabBar in the system configuration. |
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
MyViewsTabBar() |
Modifier and Type | Method and Description |
---|---|
static DescriptorExtensionList<MyViewsTabBar,Descriptor<MyViewsTabBar>> |
all()
Returns all the registered
ListViewColumn descriptors. |
MyViewsTabBarDescriptor |
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<MyViewsTabBar,Descriptor<MyViewsTabBar>> all()
ListViewColumn
descriptors.public MyViewsTabBarDescriptor 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<MyViewsTabBar>
getDescriptor
in class AbstractDescribableImpl<MyViewsTabBar>
@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.