Class ViewControllerUtils

java.lang.Object
io.jmix.flowui.view.ViewControllerUtils

public final class ViewControllerUtils extends Object
  • Method Details

    • getPageTitle

      public static String getPageTitle(@Nullable com.vaadin.flow.component.Component component)
    • 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

      public static String getPackage(Class<?> controllerClass)
    • getViewData

      public static ViewData getViewData(View<?> view)
    • setViewData

      public static void setViewData(View<?> view, ViewData viewData)
    • getViewActions

      public static ViewActions getViewActions(View<?> view)
    • setViewActions

      public static void setViewActions(View<?> view, ViewActions viewActions)
    • getViewFacets

      public static ViewFacets getViewFacets(View<?> view)
    • getViewFacet

      @Nullable public static <T extends Facet> T getViewFacet(View<?> view, Class<T> facetClass)
    • setViewFacets

      public static void setViewFacets(View<?> view, ViewFacets viewFacets)
    • fireEvent

      public static void fireEvent(View<?> view, com.vaadin.flow.component.ComponentEvent<?> event)
    • isSaveActionPerformed

      public static boolean isSaveActionPerformed(StandardDetailView<?> detailView)
    • 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)
    • addValidationEventListener

      public static com.vaadin.flow.shared.Registration addValidationEventListener(StandardDetailView<?> view, com.vaadin.flow.component.ComponentEventListener<StandardDetailView.ValidationEvent> listener)