Package io.jmix.flowui.view
Class ViewControllerUtils
java.lang.Object
io.jmix.flowui.view.ViewControllerUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.vaadin.flow.shared.Registration
addAfterCloseListener
(View<?> view, com.vaadin.flow.component.ComponentEventListener<View.AfterCloseEvent> listener) static com.vaadin.flow.shared.Registration
addBeforeShowEvent
(View<?> view, com.vaadin.flow.component.ComponentEventListener<View.BeforeShowEvent> listener) Deprecated, for removal: This API element is subject to removal in a future version.static com.vaadin.flow.shared.Registration
addBeforeShowEventListener
(View<?> view, com.vaadin.flow.component.ComponentEventListener<View.BeforeShowEvent> listener) static com.vaadin.flow.shared.Registration
addDetachListener
(View<?> view, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.DetachEvent> listener) static <T> com.vaadin.flow.shared.Registration
addInitEntityEvent
(StandardDetailView<T> view, com.vaadin.flow.component.ComponentEventListener<StandardDetailView.InitEntityEvent<T>> listener) Deprecated, for removal: This API element is subject to removal in a future version.static <T> com.vaadin.flow.shared.Registration
addInitEntityEventListener
(StandardDetailView<T> view, com.vaadin.flow.component.ComponentEventListener<StandardDetailView.InitEntityEvent<T>> listener) static com.vaadin.flow.shared.Registration
addQueryParametersChangeListener
(View<?> view, com.vaadin.flow.component.ComponentEventListener<View.QueryParametersChangeEvent> listener) static com.vaadin.flow.shared.Registration
addValidationEventListener
(StandardDetailView<?> view, com.vaadin.flow.component.ComponentEventListener<StandardDetailView.ValidationEvent> listener) static <A extends Annotation>
Optional<A>findAnnotation
(com.vaadin.flow.component.Component component, Class<A> annotationClass) static <A extends Annotation>
Optional<A>findAnnotation
(Class<? extends com.vaadin.flow.component.Component> componentClass, Class<A> annotationClass) static void
static String
getPackage
(Class<?> controllerClass) static String
getPageTitle
(com.vaadin.flow.component.Component component) static ViewActions
getViewActions
(View<?> view) static ViewData
getViewData
(View<?> view) static <T extends Facet>
TgetViewFacet
(View<?> view, Class<T> facetClass) static ViewFacets
getViewFacets
(View<?> view) static boolean
isSaveActionPerformed
(StandardDetailView<?> detailView) static void
setAfterNavigationHandler
(View<?> view, Runnable operation) static void
setViewActions
(View<?> view, ViewActions viewActions) static void
setViewData
(View<?> view, ViewData viewData) static void
setViewFacets
(View<?> view, ViewFacets viewFacets)
-
Method Details
-
getPageTitle
-
findAnnotation
public static <A extends Annotation> Optional<A> findAnnotation(com.vaadin.flow.component.Component component, Class<A> annotationClass) -
findAnnotation
public static <A extends Annotation> Optional<A> findAnnotation(Class<? extends com.vaadin.flow.component.Component> componentClass, Class<A> annotationClass) -
getPackage
-
getViewData
-
setViewData
-
getViewActions
-
setViewActions
-
getViewFacets
-
getViewFacet
-
setViewFacets
-
fireEvent
-
isSaveActionPerformed
-
addQueryParametersChangeListener
public static com.vaadin.flow.shared.Registration addQueryParametersChangeListener(View<?> view, com.vaadin.flow.component.ComponentEventListener<View.QueryParametersChangeEvent> listener) -
addInitEntityEventListener
public static <T> com.vaadin.flow.shared.Registration addInitEntityEventListener(StandardDetailView<T> view, com.vaadin.flow.component.ComponentEventListener<StandardDetailView.InitEntityEvent<T>> listener) -
addBeforeShowEventListener
public static com.vaadin.flow.shared.Registration addBeforeShowEventListener(View<?> view, com.vaadin.flow.component.ComponentEventListener<View.BeforeShowEvent> listener) -
addDetachListener
public static com.vaadin.flow.shared.Registration addDetachListener(View<?> view, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.DetachEvent> listener) -
addAfterCloseListener
public static com.vaadin.flow.shared.Registration addAfterCloseListener(View<?> view, com.vaadin.flow.component.ComponentEventListener<View.AfterCloseEvent> listener) -
addValidationEventListener
public static com.vaadin.flow.shared.Registration addValidationEventListener(StandardDetailView<?> view, com.vaadin.flow.component.ComponentEventListener<StandardDetailView.ValidationEvent> listener) -
addInitEntityEvent
@Deprecated(since="2.2", forRemoval=true) public static <T> com.vaadin.flow.shared.Registration addInitEntityEvent(StandardDetailView<T> view, com.vaadin.flow.component.ComponentEventListener<StandardDetailView.InitEntityEvent<T>> listener) Deprecated, for removal: This API element is subject to removal in a future version. -
addBeforeShowEvent
@Deprecated(since="2.2", forRemoval=true) public static com.vaadin.flow.shared.Registration addBeforeShowEvent(View<?> view, com.vaadin.flow.component.ComponentEventListener<View.BeforeShowEvent> listener) Deprecated, for removal: This API element is subject to removal in a future version.
-
addBeforeShowEventListener(View, ComponentEventListener)
instead