Interface ViewContainer
- All Known Implementing Classes:
TabViewContainer
@NullMarked
public interface ViewContainer
Represents a container that can hold
views and breadcrumbs,
providing functionality to interact with and manipulate them dynamically.-
Method Summary
Modifier and TypeMethodDescription@Nullable ViewBreadcrumbsReturns theViewBreadcrumbsassociated with this container.@Nullable View<?> getView()Returns theViewcontained in this container.voidRemoves the breadcrumbs from this container.voidRemoves theViewcontained in this container.voidsetBreadcrumbs(@Nullable ViewBreadcrumbs breadcrumbs) Sets theViewBreadcrumbsfor this container.voidSets the specifiedViewin this container.
-
Method Details
-
getBreadcrumbs
@Nullable ViewBreadcrumbs getBreadcrumbs()Returns theViewBreadcrumbsassociated with this container.- Returns:
- the
ViewBreadcrumbsinstance if set, ornullif no breadcrumbs are associated
-
setBreadcrumbs
Sets theViewBreadcrumbsfor this container.- Parameters:
breadcrumbs- theViewBreadcrumbsinstance to associate with this container, ornullto remove any currently associated breadcrumbs
-
removeBreadcrumbs
void removeBreadcrumbs()Removes the breadcrumbs from this container. -
getView
@Nullable View<?> getView()Returns theViewcontained in this container.- Returns:
- the current
Viewif present, or null if no view is set
-
setView
Sets the specifiedViewin this container.- Parameters:
view- theViewto set in this container, ornullto remove
-
removeView
void removeView()Removes theViewcontained in this container.
-