Package io.jmix.flowui.view.navigation
Class DetailViewClassNavigator<E,V extends View<?>>
java.lang.Object
io.jmix.flowui.view.navigation.AbstractViewNavigator
io.jmix.flowui.view.navigation.DetailViewNavigator<E>
io.jmix.flowui.view.navigation.DetailViewClassNavigator<E,V>
- All Implemented Interfaces:
SupportsAfterViewNavigationHandler<V>
public class DetailViewClassNavigator<E,V extends View<?>>
extends DetailViewNavigator<E>
implements SupportsAfterViewNavigationHandler<V>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.flowui.view.navigation.SupportsAfterViewNavigationHandler
SupportsAfterViewNavigationHandler.AfterViewNavigationEvent<V>
-
Field Summary
Modifier and TypeFieldDescriptionFields inherited from class io.jmix.flowui.view.navigation.DetailViewNavigator
editedEntity, entityClass, mode, readOnly
Fields inherited from class io.jmix.flowui.view.navigation.AbstractViewNavigator
backwardNavigation, handler, origin, queryParameters, routeParameters, viewId
-
Constructor Summary
ModifierConstructorDescriptionprotected
DetailViewClassNavigator
(DetailViewNavigator<E> viewNavigator, Class<V> viewClass) DetailViewClassNavigator
(View<?> origin, Class<E> entityClass, Consumer<? extends DetailViewNavigator<E>> handler, Class<V> viewClass) DetailViewClassNavigator
(Class<E> entityClass, Consumer<? extends DetailViewNavigator<E>> handler, Class<V> viewClass) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptioneditEntity
(E entity) withAfterNavigationHandler
(Consumer<SupportsAfterViewNavigationHandler.AfterViewNavigationEvent<V>> handler) Adds a handler that will be invoked if navigation to a view actually happened.withBackwardNavigation
(boolean backwardNavigation) Sets whether the current URL should be navigated to when the opened view is closed.withQueryParameters
(com.vaadin.flow.router.QueryParameters queryParameters) Sets URL query parameters.withReadOnly
(boolean readOnly) withRouteParameters
(com.vaadin.flow.router.RouteParameters routeParameters) Sets URL route parameters.withViewId
(String viewId) Sets the opened view by id.Methods inherited from class io.jmix.flowui.view.navigation.DetailViewNavigator
getEditedEntity, getEntityClass, getMode, isReadOnly, withViewClass
Methods inherited from class io.jmix.flowui.view.navigation.AbstractViewNavigator
getOrigin, getQueryParameters, getRouteParameters, getViewId, isBackwardNavigation, navigate
-
Field Details
-
viewClass
-
-
Constructor Details
-
DetailViewClassNavigator
@Deprecated(since="2.3", forRemoval=true) public DetailViewClassNavigator(Class<E> entityClass, Consumer<? extends DetailViewNavigator<E>> handler, Class<V> viewClass) Deprecated, for removal: This API element is subject to removal in a future version. -
DetailViewClassNavigator
-
-
Method Details
-
newEntity
- Overrides:
newEntity
in classDetailViewNavigator<E>
-
editEntity
- Overrides:
editEntity
in classDetailViewNavigator<E>
-
withViewId
Description copied from class:AbstractViewNavigator
Sets the opened view by id.- Overrides:
withViewId
in classDetailViewNavigator<E>
- Parameters:
viewId
- identifier of the view as specified in theViewController
annotation- Returns:
- this instance for chaining
-
withRouteParameters
public DetailViewClassNavigator<E,V> withRouteParameters(@Nullable com.vaadin.flow.router.RouteParameters routeParameters) Description copied from class:AbstractViewNavigator
Sets URL route parameters.- Overrides:
withRouteParameters
in classDetailViewNavigator<E>
- Parameters:
routeParameters
- route parameters- Returns:
- this instance for chaining
-
withQueryParameters
public DetailViewClassNavigator<E,V> withQueryParameters(@Nullable com.vaadin.flow.router.QueryParameters queryParameters) Description copied from class:AbstractViewNavigator
Sets URL query parameters.- Overrides:
withQueryParameters
in classDetailViewNavigator<E>
- Parameters:
queryParameters
- query parameters- Returns:
- this instance for chaining
-
withReadOnly
- Overrides:
withReadOnly
in classDetailViewNavigator<E>
-
getViewClass
- Overrides:
getViewClass
in classAbstractViewNavigator
- Returns:
- opened view class
-