com.vaadin.flow.router.internal.
Class RouteTarget
All Implemented Interfaces:
Direct Known Subclasses:
Route target stores the target component and parent layouts.
For internal use only. May be renamed or removed in a future release.
Since:
1.0
See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRouteTarget
(Class<? extends Component> target) Create a new Route target holder with the given target registered and empty parent layouts.
RouteTarget
(Class<? extends Component> target, List<Class<? extends RouterLayout>> parents) Create a new Route target holder with the given target registered.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsTarget
(Class<? extends Component> target) Check if navigation target is present in current target.
List<Class<? extends RouterLayout>>
Get the parent layout chain.
Get the component route target.
-
Constructor Details
-
RouteTarget
Create a new Route target holder with the given target registered.
Parameters:
target
- navigation targetparents
- parent layout chain -
RouteTarget
Create a new Route target holder with the given target registered and empty parent layouts.
Parameters:
target
- navigation target
-
-
Method Details
-
getTarget
Get the component route target.
Returns:
component navigation target.
-
containsTarget
Check if navigation target is present in current target.
Parameters:
target
- navigation target to check forReturns:
true if navigation target is present in current target.
-
getParentLayouts
Get the parent layout chain.
Returns:
parent layout chain
-