Class UiComponentUtils

java.lang.Object
io.jmix.flowui.component.UiComponentUtils

public final class UiComponentUtils extends Object
  • Method Details

    • findOwnComponent

      public static Optional<com.vaadin.flow.component.Component> findOwnComponent(com.vaadin.flow.component.HasComponents container, String id)
    • findComponent

      public static Optional<com.vaadin.flow.component.Component> findComponent(com.vaadin.flow.component.HasComponents container, String id)
    • findComponent

      public static Optional<com.vaadin.flow.component.Component> findComponent(Screen<?> screen, String id)
    • findComponentOrElseThrow

      public static com.vaadin.flow.component.Component findComponentOrElseThrow(Screen<?> screen, String id)
    • findComponent

      public static Optional<com.vaadin.flow.component.Component> findComponent(com.vaadin.flow.component.applayout.AppLayout appLayout, String id)
    • getOwnComponents

      public static Collection<com.vaadin.flow.component.Component> getOwnComponents(com.vaadin.flow.component.HasComponents container)
    • getComponents

      public static Collection<com.vaadin.flow.component.Component> getComponents(com.vaadin.flow.component.HasComponents container)
    • sameId

      public static boolean sameId(com.vaadin.flow.component.Component component, String id)
    • findScreen

      @Nullable public static Screen<?> findScreen(com.vaadin.flow.component.Component component)
    • focusComponent

      public static void focusComponent(com.vaadin.flow.component.Component component)
      Focuses component (or its nearest focusable parent).
      Parameters:
      component - component to focus
    • isComponentVisible

      public static boolean isComponentVisible(com.vaadin.flow.component.Component child)
      Tests if component visible and its container visible.
      Parameters:
      child - component
      Returns:
      component visibility
    • isComponentEnabled

      public static boolean isComponentEnabled(com.vaadin.flow.component.Component child)
      Tests if component enabled and its container enabled.
      Parameters:
      child - component
      Returns:
      component enabled state
    • isComponentAttachedToDialog

      public static boolean isComponentAttachedToDialog(com.vaadin.flow.component.Component component)
    • getEmptyValue

      @Nullable public static <V> V getEmptyValue(com.vaadin.flow.component.Component component)