Interface Section.PageBuilder
- Enclosing interface:
- Section
public static interface Section.PageBuilder
-
Method Summary
Modifier and TypeMethodDescriptionaddAssociatedResourceType
(ResourceType resourceType) If this page contains items that are resources that have aResourceTypeMeta
, invoke this to let these items be found via the gateway's search functionality.addTab
(String label, Consumer<Section.TabBuilder> builder) build()
enabled
(Predicate<GatewayContext> enabled) A context-aware predicate function to determine if this page is enabled.mount
(String url, WebUiComponent component) default Section.PageBuilder
default Section.PageBuilder
mount
(String url, String componentId, SystemJsModule module) position
(int position) requiredPermission
(PermissionType requiredPermission) searchDelegate
(ItemSearchDelegate searchDelegate) Add a custom search delegate that can be used to search for items that reside on this page.
-
Method Details
-
title
-
requiredPermission
-
mount
-
mount
-
position
-
addTab
-
searchDelegate
Add a custom search delegate that can be used to search for items that reside on this page. If your page contains items that are resources that have aResourceTypeMeta
, you should useaddAssociatedResourceType(ResourceType)
instead.Should only be used if this page mounts a component directly. If this page has sub-tabs, register search delegates for them instead.
-
addAssociatedResourceType
If this page contains items that are resources that have aResourceTypeMeta
, invoke this to let these items be found via the gateway's search functionality.Should only be used if this page mounts a component directly. If this page has sub-tabs, associate them instead.
May be invoked multiple times to associate multiple resource types with this page.
-
enabled
A context-aware predicate function to determine if this page is enabled. When not enabled, the page will not be included in the navigation model. -
build
Section.CategoryBuilder build()
-