Package io.jmix.flowui.component
Class UiComponentUtils
java.lang.Object
io.jmix.flowui.component.UiComponentUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<com.vaadin.flow.component.Component>findComponent(com.vaadin.flow.component.applayout.AppLayout appLayout, String id) static Optional<com.vaadin.flow.component.Component>findComponent(com.vaadin.flow.component.HasComponents container, String id) static Optional<com.vaadin.flow.component.Component>findComponent(Screen<?> screen, String id) static com.vaadin.flow.component.ComponentfindComponentOrElseThrow(Screen<?> screen, String id) static Optional<com.vaadin.flow.component.Component>findOwnComponent(com.vaadin.flow.component.HasComponents container, String id) static Screen<?>findScreen(com.vaadin.flow.component.Component component) static voidfocusComponent(com.vaadin.flow.component.Component component) Focuses component (or its nearest focusable parent).static Collection<com.vaadin.flow.component.Component>getComponents(com.vaadin.flow.component.HasComponents container) static <V> VgetEmptyValue(com.vaadin.flow.component.Component component) static Collection<com.vaadin.flow.component.Component>getOwnComponents(com.vaadin.flow.component.HasComponents container) static booleanisComponentAttachedToDialog(com.vaadin.flow.component.Component component) static booleanisComponentEnabled(com.vaadin.flow.component.Component child) Tests if component enabled and its container enabled.static booleanisComponentVisible(com.vaadin.flow.component.Component child) Tests if component visible and its container visible.static boolean
-
Method Details
-
findOwnComponent
-
findComponent
-
findComponent
-
findComponentOrElseThrow
-
findComponent
-
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
-
findScreen
-
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)
-