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
FieldsModifier and TypeFieldDescriptionFields inherited from class io.jmix.flowui.view.navigation.DetailViewNavigator
editedEntity, entityClass, mode, readOnlyFields inherited from class io.jmix.flowui.view.navigation.AbstractViewNavigator
backwardNavigation, handler, origin, queryParameters, routeParameters, viewId -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDetailViewClassNavigator(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, withViewClassMethods 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:
newEntityin classDetailViewNavigator<E>
-
editEntity
- Overrides:
editEntityin classDetailViewNavigator<E>
-
withViewId
Description copied from class:AbstractViewNavigatorSets the opened view by id.- Overrides:
withViewIdin classDetailViewNavigator<E>- Parameters:
viewId- identifier of the view as specified in theViewControllerannotation- Returns:
- this instance for chaining
-
withRouteParameters
public DetailViewClassNavigator<E,V> withRouteParameters(@Nullable com.vaadin.flow.router.RouteParameters routeParameters) Description copied from class:AbstractViewNavigatorSets URL route parameters.- Overrides:
withRouteParametersin 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:AbstractViewNavigatorSets URL query parameters.- Overrides:
withQueryParametersin classDetailViewNavigator<E>- Parameters:
queryParameters- query parameters- Returns:
- this instance for chaining
-
withReadOnly
- Overrides:
withReadOnlyin classDetailViewNavigator<E>
-
getViewClass
- Overrides:
getViewClassin classAbstractViewNavigator- Returns:
- opened view class
-