Package io.jmix.flowui.component
Class WrapperUtils
java.lang.Object
io.jmix.flowui.component.WrapperUtils
Utility class for converting and mapping values that are used in framework components
into corresponding types used in other components or layouts.
This class is intended for internal use and should not be used directly in application code.
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep.LabelsPositionconvertToFormLayoutLabelsPosition(SupportsResponsiveSteps.ResponsiveStep.LabelsPosition labelsPosition) Converts aSupportsResponsiveSteps.ResponsiveStep.LabelsPositionvalue into a correspondingFormLayout.ResponsiveStep.LabelsPositionvalue.static List<com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep>convertToFormLayoutResponsiveStep(List<SupportsResponsiveSteps.ResponsiveStep> responsiveSteps) Converts a list ofSupportsResponsiveSteps.ResponsiveStepobjects to a list ofFormLayout.ResponsiveStepobjects.static LogicalCondition.TypeConverts aLogicalFilterComponent.Operationto its correspondingLogicalCondition.Type.
-
Method Details
-
convertToFormLayoutResponsiveStep
public static List<com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep> convertToFormLayoutResponsiveStep(List<SupportsResponsiveSteps.ResponsiveStep> responsiveSteps) Converts a list ofSupportsResponsiveSteps.ResponsiveStepobjects to a list ofFormLayout.ResponsiveStepobjects.- Parameters:
responsiveSteps- the list ofSupportsResponsiveSteps.ResponsiveStepobjects to convert; may be empty ornull- Returns:
- a list of
FormLayout.ResponsiveStepobjects; returns an empty list if the input isnullor empty
-
convertToFormLayoutLabelsPosition
@Nullable public static com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep.LabelsPosition convertToFormLayoutLabelsPosition(@Nullable SupportsResponsiveSteps.ResponsiveStep.LabelsPosition labelsPosition) Converts aSupportsResponsiveSteps.ResponsiveStep.LabelsPositionvalue into a correspondingFormLayout.ResponsiveStep.LabelsPositionvalue.- Parameters:
labelsPosition- theSupportsResponsiveSteps.ResponsiveStep.LabelsPositionvalue to convert; may benull- Returns:
- the corresponding
FormLayout.ResponsiveStep.LabelsPositionvalue, ornullif the input isnull - Throws:
IllegalArgumentException- if the provided label position is not recognized
-
convertToLogicalConditionType
public static LogicalCondition.Type convertToLogicalConditionType(LogicalFilterComponent.Operation operation) Converts aLogicalFilterComponent.Operationto its correspondingLogicalCondition.Type.- Parameters:
operation- theLogicalFilterComponent.Operationto be converted; must not benull- Returns:
- the corresponding
LogicalCondition.Typefor the given operation - Throws:
IllegalArgumentException- if the provided operation is not recognized
-