Class DefaultFolderViewHolder
java.lang.Object
com.cloudbees.hudson.plugins.folder.views.AbstractFolderViewHolder
com.cloudbees.hudson.plugins.folder.views.DefaultFolderViewHolder
The default implementation of
AbstractFolderViewHolder which allows all the elements to be modified.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultFolderViewHolder(Collection<? extends View> views, String primaryView, ViewsTabBar tabBar) Our constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns theView.getViewName()of the primary view ornullif the first view should be primary.Returns theViewsTabBar.getViews()Returns the list of views.voidsetPrimaryView(String primaryView) Changes the primaryView.voidsetTabBar(ViewsTabBar tabBar) Changes theViewsTabBar.voidChanges the list ofViews.Methods inherited from class com.cloudbees.hudson.plugins.folder.views.AbstractFolderViewHolder
invalidateCaches, isPrimaryModifiable, isTabBarModifiable, isViewsModifiable
-
Constructor Details
-
DefaultFolderViewHolder
@DataBoundConstructor public DefaultFolderViewHolder(@NonNull Collection<? extends View> views, @CheckForNull String primaryView, @NonNull ViewsTabBar tabBar) Our constructor.- Parameters:
views- the initial views.primaryView- the initial primary view.tabBar- the initialViewsTabBar.
-
-
Method Details
-
getViews
Returns the list of views. IfAbstractFolderViewHolder.isViewsModifiable()then this list is modifiable.- Specified by:
getViewsin classAbstractFolderViewHolder- Returns:
- the list of views.
-
setViews
Changes the list ofViews. May be a no-op ifAbstractFolderViewHolder.isViewsModifiable()returnsfalse.- Specified by:
setViewsin classAbstractFolderViewHolder- Parameters:
views- the new list ofViews.- See Also:
-
getPrimaryView
Returns theView.getViewName()of the primary view ornullif the first view should be primary.- Specified by:
getPrimaryViewin classAbstractFolderViewHolder- Returns:
- the
View.getViewName()of the primary view ornullif the first view should be primary.
-
setPrimaryView
Changes the primaryView. May be a no-op ifAbstractFolderViewHolder.isPrimaryModifiable()returnsfalse.- Specified by:
setPrimaryViewin classAbstractFolderViewHolder- Parameters:
primaryView- theView.getViewName()of the primaryViewofnullto use the first view.- See Also:
-
getTabBar
Returns theViewsTabBar.- Specified by:
getTabBarin classAbstractFolderViewHolder- Returns:
- the
ViewsTabBar.
-
setTabBar
Changes theViewsTabBar. May be a no-op ifAbstractFolderViewHolder.isTabBarModifiable()returnsfalse.- Specified by:
setTabBarin classAbstractFolderViewHolder- Parameters:
tabBar- the newViewsTabBar.- See Also:
-