Package io.jmix.flowui.kit.component
Class ComponentUtils
java.lang.Object
io.jmix.flowui.kit.component.ComponentUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addComponentsToSlot
(com.vaadin.flow.dom.Element element, String slot, com.vaadin.flow.component.Component... components) Deprecated, for removal: This API element is subject to removal in a future version.static void
Deprecated, for removal: This API element is subject to removal in a future version.useSlotUtils.clearSlot(HasElement, String)
insteadstatic com.vaadin.flow.component.icon.Icon
convertToIcon
(com.vaadin.flow.component.icon.VaadinIcon icon) static int
findActionIndexById
(List<Action> actions, String actionId) static boolean
isAutoSize
(String size) static boolean
static com.vaadin.flow.component.icon.Icon
static void
setEnabled
(com.vaadin.flow.component.HasEnabled hasEnabled, boolean enabled) static <T> void
setItemsMap
(com.vaadin.flow.component.checkbox.CheckboxGroup<T> component, Map<T, String> items) static <T> void
setItemsMap
(com.vaadin.flow.component.combobox.ComboBox<T> component, Map<T, String> items) static <T> void
setItemsMap
(com.vaadin.flow.component.listbox.ListBox<T> component, Map<T, String> items) static <T> void
setItemsMap
(com.vaadin.flow.component.listbox.MultiSelectListBox<T> component, Map<T, String> items) static <T> void
setItemsMap
(com.vaadin.flow.component.radiobutton.RadioButtonGroup<T> component, Map<T, String> items) static <T> void
setItemsMap
(com.vaadin.flow.component.select.Select<T> component, Map<T, String> items) static void
setItemsMap
(EnhancedLoginForm component, Map<Locale, String> items) static void
setVisible
(com.vaadin.flow.component.Component component, boolean visible)
-
Method Details
-
parseIcon
-
convertToIcon
@Nullable public static com.vaadin.flow.component.icon.Icon convertToIcon(@Nullable com.vaadin.flow.component.icon.VaadinIcon icon) -
addComponentsToSlot
@Deprecated(since="2.1", forRemoval=true) public static void addComponentsToSlot(com.vaadin.flow.dom.Element element, String slot, com.vaadin.flow.component.Component... components) Deprecated, for removal: This API element is subject to removal in a future version.SlotUtils.addToSlot(HasElement, String, Component...)
instead- Parameters:
element
- the parent component element to add the components toslot
- the name of the slot inside the parentcomponents
- components to add to the specified slot.
-
clearSlot
@Deprecated(since="2.1", forRemoval=true) public static void clearSlot(com.vaadin.flow.dom.Element element, String slot) Deprecated, for removal: This API element is subject to removal in a future version.useSlotUtils.clearSlot(HasElement, String)
instead- Parameters:
element
- the component element to get children fromslot
- the name of the slot inside the parent
-
findActionIndexById
-
setItemsMap
-
setItemsMap
-
setItemsMap
-
setItemsMap
-
setItemsMap
-
setItemsMap
-
setItemsMap
-
isAutoSize
-
setVisible
public static void setVisible(com.vaadin.flow.component.Component component, boolean visible) -
setEnabled
public static void setEnabled(com.vaadin.flow.component.HasEnabled hasEnabled, boolean enabled) -
isVisible
-
SlotUtils.addToSlot(HasElement, String, Component...)
instead