Package io.jmix.ui.component.impl
Class WrapperUtils
java.lang.Object
io.jmix.ui.component.impl.WrapperUtils
Convenient class for methods that converts values from Vaadin to Jmix instances and vice versa.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AggregationContainer.Type
convertAggregationType
(AggregationInfo.Type function) static com.vaadin.v7.ui.Table.Align
convertColumnAlignment
(Table.ColumnAlignment alignment) static com.vaadin.shared.ui.datefield.DateResolution
convertDateResolution
(DatePicker.Resolution resolution) static com.vaadin.shared.ui.datefield.DateResolution
convertDateTimeResolution
(DateField.Resolution resolution) static DataGrid.ColumnResizeMode
convertToDataGridColumnResizeMode
(com.vaadin.shared.ui.grid.ColumnResizeMode mode) static DataGrid.SortDirection
convertToDataGridSortDirection
(com.vaadin.shared.data.sort.SortDirection sortDirection) static com.vaadin.shared.ui.grid.ColumnResizeMode
static com.vaadin.shared.ui.grid.ScrollDestination
convertToGridScrollDestination
(DataGrid.ScrollDestination destination) static com.vaadin.shared.data.sort.SortDirection
convertToGridSortDirection
(DataGrid.SortDirection sortDirection) static HasOrientation.Orientation
convertToOrientation
(com.vaadin.shared.ui.Orientation orientation) static com.vaadin.shared.ui.Orientation
convertToVaadinOrientation
(HasOrientation.Orientation orientation) fromVaadinColumnsValue
(JmixResponsiveGridLayout.ColumnsValue columnsValue) fromVaadinContainerType
(JmixResponsiveGridLayout.ContainerType containerType) static Form.CaptionAlignment
fromVaadinJustifyContent
(JmixResponsiveGridLayout.JustifyContent justifyContent) static PopupView.PopupPosition
fromVaadinPopupPosition
(PopupPosition popupPosition) static String
fromVaadinSize
(String size) static HasOrientation.Orientation
fromVaadinSliderOrientation
(com.vaadin.shared.ui.slider.SliderOrientation orientation) static TimeField.TimeMode
fromVaadinTimeMode
(TimeMode timeMode) static TimeField.Resolution
fromVaadinTimeResolution
(TimeResolution timeResolution) static WindowMode
fromVaadinWindowMode
(com.vaadin.shared.ui.window.WindowMode windowMode) static ContentMode
toContentMode
(com.vaadin.shared.ui.ContentMode contentMode) toDataGridStaticCellType
(com.vaadin.shared.ui.grid.GridStaticCellType cellType) toDependencyType
(com.vaadin.ui.Dependency.Type type) static HasFilterMode.FilterMode
toFilterMode
(com.vaadin.v7.shared.ui.combobox.FilteringMode filterMode) static LogicalCondition.Type
toMouseButton
(com.vaadin.shared.MouseEventDetails.MouseButton mouseButton) static MouseEventDetails
toMouseEventDetails
(com.vaadin.event.MouseEvents.ClickEvent event) static MouseEventDetails
toMouseEventDetails
(com.vaadin.shared.MouseEventDetails vMouseEventDetails) toPopupOpenDirection
(com.vaadin.ui.Alignment alignment) toResizeDirection
(ResizeDirection direction) static SizeUnit
toSizeUnit
(com.vaadin.server.Sizeable.Unit units) toTextChangeEventMode
(com.vaadin.shared.ui.ValueChangeMode mode) toTextChangeEventMode
(com.vaadin.v7.ui.AbstractTextField.TextChangeEventMode mode) toVaadinAlignItems
(ResponsiveGridLayout.AlignItems alignItems) static com.vaadin.ui.Alignment
toVaadinAlignment
(Component.Alignment alignment) static com.vaadin.ui.Alignment
toVaadinAlignment
(PopupButton.PopupOpenDirection direction) toVaadinBreakpoint
(ResponsiveGridLayout.Breakpoint breakpoint) toVaadinColumnsValue
(ResponsiveGridLayout.ColumnsValue columnsValue) toVaadinContainerType
(ResponsiveGridLayout.ContainerType containerType) static com.vaadin.shared.ui.ContentMode
toVaadinContentMode
(ContentMode contentMode) static com.vaadin.ui.Dependency.Type
static CaptionAlignment
static com.vaadin.v7.shared.ui.combobox.FilteringMode
toVaadinFilterMode
(HasFilterMode.FilterMode filterMode) toVaadinJustifyContent
(ResponsiveGridLayout.JustifyContent justifyContent) toVaadinOffsetValue
(ResponsiveGridLayout.OffsetValue offsetValue) toVaadinOrderValue
(ResponsiveGridLayout.OrderValue orderValue) static PopupPosition
toVaadinPopupPosition
(PopupView.PopupPosition popupPosition) static ResizeDirection
toVaadinRowColumnsValue
(ResponsiveGridLayout.RowColumnsValue columnsValue) static String
toVaadinSize
(String size) static com.vaadin.shared.ui.slider.SliderOrientation
toVaadinSliderOrientation
(HasOrientation.Orientation orientation) static com.vaadin.v7.ui.AbstractTextField.TextChangeEventMode
static TimeMode
toVaadinTimeMode
(TimeField.TimeMode timeMode) static TimeResolution
toVaadinTimeResolution
(DateField.Resolution resolution) static TimeResolution
toVaadinTimeResolution
(TimeField.Resolution resolution) static com.vaadin.server.Sizeable.Unit
toVaadinUnit
(SizeUnit sizeUnit) static com.vaadin.shared.ui.ValueChangeMode
static com.vaadin.shared.ui.window.WindowMode
toVaadinWindowMode
(WindowMode windowMode)
-
Field Details
-
AUTO_SIZE
- See Also:
-
-
Method Details
-
toVaadinContentMode
-
toVaadinFilterMode
@Nullable public static com.vaadin.v7.shared.ui.combobox.FilteringMode toVaadinFilterMode(@Nullable HasFilterMode.FilterMode filterMode) -
toVaadinAlignment
@Nullable public static com.vaadin.ui.Alignment toVaadinAlignment(@Nullable Component.Alignment alignment) -
toTextChangeEventMode
public static TextInputField.TextChangeEventMode toTextChangeEventMode(com.vaadin.v7.ui.AbstractTextField.TextChangeEventMode mode) -
toVaadinValueChangeEventMode
@Nullable public static com.vaadin.shared.ui.ValueChangeMode toVaadinValueChangeEventMode(@Nullable TextInputField.TextChangeEventMode mode) -
toVaadinTextChangeEventMode
@Nullable public static com.vaadin.v7.ui.AbstractTextField.TextChangeEventMode toVaadinTextChangeEventMode(@Nullable TextInputField.TextChangeEventMode mode) -
toMouseEventDetails
-
toVaadinResizeDirection
-
toResizeDirection
-
toVaadinUnit
-
toSizeUnit
-
toPopupOpenDirection
public static PopupButton.PopupOpenDirection toPopupOpenDirection(com.vaadin.ui.Alignment alignment) -
toVaadinAlignment
-
convertColumnAlignment
@Nullable public static com.vaadin.v7.ui.Table.Align convertColumnAlignment(@Nullable Table.ColumnAlignment alignment) -
convertAggregationType
-
convertDateResolution
public static com.vaadin.shared.ui.datefield.DateResolution convertDateResolution(DatePicker.Resolution resolution) -
convertDateTimeResolution
public static com.vaadin.shared.ui.datefield.DateResolution convertDateTimeResolution(DateField.Resolution resolution) -
toVaadinTimeResolution
-
toVaadinTimeResolution
-
fromVaadinTimeResolution
-
convertToGridColumnResizeMode
public static com.vaadin.shared.ui.grid.ColumnResizeMode convertToGridColumnResizeMode(DataGrid.ColumnResizeMode mode) -
convertToGridSortDirection
public static com.vaadin.shared.data.sort.SortDirection convertToGridSortDirection(DataGrid.SortDirection sortDirection) -
convertToGridScrollDestination
public static com.vaadin.shared.ui.grid.ScrollDestination convertToGridScrollDestination(DataGrid.ScrollDestination destination) -
convertToVaadinOrientation
public static com.vaadin.shared.ui.Orientation convertToVaadinOrientation(HasOrientation.Orientation orientation) -
toVaadinSliderOrientation
public static com.vaadin.shared.ui.slider.SliderOrientation toVaadinSliderOrientation(HasOrientation.Orientation orientation) -
toVaadinFieldGroupCaptionAlignment
-
fromVaadinFieldGroupCaptionAlignment
public static Form.CaptionAlignment fromVaadinFieldGroupCaptionAlignment(CaptionAlignment alignment) -
toDependencyType
@Nullable public static JavaScriptComponent.DependencyType toDependencyType(@Nullable com.vaadin.ui.Dependency.Type type) -
toVaadinDependencyType
@Nullable public static com.vaadin.ui.Dependency.Type toVaadinDependencyType(@Nullable JavaScriptComponent.DependencyType type) -
fromVaadinSize
-
toVaadinSize
-
toVaadinPopupPosition
@Nullable public static PopupPosition toVaadinPopupPosition(@Nullable PopupView.PopupPosition popupPosition) -
fromVaadinPopupPosition
@Nullable public static PopupView.PopupPosition fromVaadinPopupPosition(@Nullable PopupPosition popupPosition) -
toVaadinTimeMode
-
fromVaadinTimeMode
-
toVaadinContainerType
public static JmixResponsiveGridLayout.ContainerType toVaadinContainerType(ResponsiveGridLayout.ContainerType containerType) -
fromVaadinContainerType
public static ResponsiveGridLayout.ContainerType fromVaadinContainerType(JmixResponsiveGridLayout.ContainerType containerType) -
toVaadinBreakpoint
public static JmixResponsiveGridLayout.Breakpoint toVaadinBreakpoint(ResponsiveGridLayout.Breakpoint breakpoint) -
fromVaadinBreakpoint
public static ResponsiveGridLayout.Breakpoint fromVaadinBreakpoint(JmixResponsiveGridLayout.Breakpoint breakpoint) -
toVaadinAlignItems
public static JmixResponsiveGridLayout.AlignItems toVaadinAlignItems(ResponsiveGridLayout.AlignItems alignItems) -
fromVaadinAlignItems
public static ResponsiveGridLayout.AlignItems fromVaadinAlignItems(JmixResponsiveGridLayout.AlignItems alignItems) -
toVaadinJustifyContent
public static JmixResponsiveGridLayout.JustifyContent toVaadinJustifyContent(ResponsiveGridLayout.JustifyContent justifyContent) -
fromVaadinJustifyContent
public static ResponsiveGridLayout.JustifyContent fromVaadinJustifyContent(JmixResponsiveGridLayout.JustifyContent justifyContent) -
toVaadinRowColumnsValue
public static JmixResponsiveGridLayout.RowColumnsValue toVaadinRowColumnsValue(ResponsiveGridLayout.RowColumnsValue columnsValue) -
fromVaadinRowColumnsValue
public static ResponsiveGridLayout.RowColumnsValue fromVaadinRowColumnsValue(JmixResponsiveGridLayout.RowColumnsValue columnsValue) -
toVaadinResponsiveColumnAlignSelf
public static JmixResponsiveGridLayout.AlignSelf toVaadinResponsiveColumnAlignSelf(ResponsiveGridLayout.AlignSelf alignSelf) -
fromVaadinResponsiveColumnAlignSelf
public static ResponsiveGridLayout.AlignSelf fromVaadinResponsiveColumnAlignSelf(JmixResponsiveGridLayout.AlignSelf alignSelf) -
toVaadinColumnsValue
public static JmixResponsiveGridLayout.ColumnsValue toVaadinColumnsValue(ResponsiveGridLayout.ColumnsValue columnsValue) -
fromVaadinColumnsValue
public static ResponsiveGridLayout.ColumnsValue fromVaadinColumnsValue(JmixResponsiveGridLayout.ColumnsValue columnsValue) -
toVaadinOrderValue
public static JmixResponsiveGridLayout.OrderValue toVaadinOrderValue(ResponsiveGridLayout.OrderValue orderValue) -
fromVaadinOrderValue
public static ResponsiveGridLayout.OrderValue fromVaadinOrderValue(JmixResponsiveGridLayout.OrderValue orderValue) -
toVaadinOffsetValue
public static JmixResponsiveGridLayout.OffsetValue toVaadinOffsetValue(ResponsiveGridLayout.OffsetValue offsetValue) -
fromVaadinOffsetValue
public static ResponsiveGridLayout.OffsetValue fromVaadinOffsetValue(JmixResponsiveGridLayout.OffsetValue offsetValue) -
toVaadinWindowMode
-
toLogicalConditionType
public static LogicalCondition.Type toLogicalConditionType(LogicalFilterComponent.Operation operation) -
fromLogicalConditionType