public class DefaultFolderViewHolder extends AbstractFolderViewHolder
AbstractFolderViewHolder
which allows all the elements to be modified.Constructor and Description |
---|
DefaultFolderViewHolder(Collection<? extends View> views,
String primaryView,
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. |
ViewsTabBar |
getTabBar()
Returns the
ViewsTabBar . |
List<View> |
getViews()
Returns the list of views.
|
static String |
migrateLegacyPrimaryAllViewLocalizedName(List<View> views,
String primaryView) |
void |
setPrimaryView(String primaryView)
Changes the primary
View . |
void |
setTabBar(ViewsTabBar tabBar)
Changes the
ViewsTabBar . |
void |
setViews(List<? extends View> views)
Changes the list of
View s. |
invalidateCaches, isPrimaryModifiable, isTabBarModifiable, isViewsModifiable
@DataBoundConstructor public DefaultFolderViewHolder(@NonNull Collection<? extends View> views, @CheckForNull String primaryView, @NonNull ViewsTabBar tabBar)
views
- the initial views.primaryView
- the initial primary view.tabBar
- the initial ViewsTabBar
.public List<View> getViews()
AbstractFolderViewHolder.isViewsModifiable()
then this list is modifiable.getViews
in class AbstractFolderViewHolder
public void setViews(List<? extends View> views)
View
s. May be a no-op if AbstractFolderViewHolder.isViewsModifiable()
returns false
.setViews
in class AbstractFolderViewHolder
views
- the new list of View
s.AbstractFolderViewHolder.isViewsModifiable()
public String getPrimaryView()
View.getViewName()
of the primary view or null
if the first view should be primary.getPrimaryView
in class AbstractFolderViewHolder
View.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 AbstractFolderViewHolder
primaryView
- the View.getViewName()
of the primary View
of null
to use the first view.AbstractFolderViewHolder.isPrimaryModifiable()
public ViewsTabBar getTabBar()
ViewsTabBar
.getTabBar
in class AbstractFolderViewHolder
ViewsTabBar
.public void setTabBar(ViewsTabBar tabBar)
ViewsTabBar
. May be a no-op if AbstractFolderViewHolder.isTabBarModifiable()
returns false
.setTabBar
in class AbstractFolderViewHolder
tabBar
- the new ViewsTabBar
.AbstractFolderViewHolder.isTabBarModifiable()
Copyright © 2016–2020. All rights reserved.