public class DefaultFolderViewHolder extends AbstractFolderViewHolder
AbstractFolderViewHolder which allows all the elements to be modified.| Constructor and Description |
|---|
DefaultFolderViewHolder(Collection<? extends hudson.model.View> views,
String primaryView,
hudson.views.ViewsTabBar tabBar)
Our constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPrimaryView()
Returns the
View.getViewName() of the primary view or null if the first view should be primary. |
hudson.views.ViewsTabBar |
getTabBar()
Returns the
ViewsTabBar. |
List<hudson.model.View> |
getViews()
Returns the list of views.
|
void |
setPrimaryView(String primaryView)
Changes the primary
View. |
void |
setTabBar(hudson.views.ViewsTabBar tabBar)
Changes the
ViewsTabBar. |
void |
setViews(List<? extends hudson.model.View> views)
Changes the list of
Views. |
invalidateCaches, isPrimaryModifiable, isTabBarModifiable, isViewsModifiable@DataBoundConstructor
public DefaultFolderViewHolder(@NonNull
Collection<? extends hudson.model.View> views,
@CheckForNull
String primaryView,
@NonNull
hudson.views.ViewsTabBar tabBar)
views - the inital views.primaryView - the initial primary view.tabBar - the initial ViewsTabBar.public List<hudson.model.View> getViews()
AbstractFolderViewHolder.isViewsModifiable() then this list is modifiable.getViews in class AbstractFolderViewHolderpublic void setViews(List<? extends hudson.model.View> views)
Views. May be a no-op if AbstractFolderViewHolder.isViewsModifiable() returns false.setViews in class AbstractFolderViewHolderviews - the new list of Views.AbstractFolderViewHolder.isViewsModifiable()public String getPrimaryView()
View.getViewName() of the primary view or null if the first view should be primary.getPrimaryView in class AbstractFolderViewHolderView.getViewName() of the primary view or null if the first view should be primary.public void setPrimaryView(String primaryView)
View. May be a no-op if AbstractFolderViewHolder.isPrimaryModifiable() returns false.setPrimaryView in class AbstractFolderViewHolderprimaryView - the View.getViewName() of the primary View of null to use the first view.AbstractFolderViewHolder.isPrimaryModifiable()public hudson.views.ViewsTabBar getTabBar()
ViewsTabBar.getTabBar in class AbstractFolderViewHolderViewsTabBar.public void setTabBar(hudson.views.ViewsTabBar tabBar)
ViewsTabBar. May be a no-op if AbstractFolderViewHolder.isTabBarModifiable() returns false.setTabBar in class AbstractFolderViewHoldertabBar - the new ViewsTabBar.AbstractFolderViewHolder.isTabBarModifiable()Copyright © 2016–2017. All rights reserved.