Class UIUtils


  • public class UIUtils
    extends Object
    • Constructor Detail

      • UIUtils

        public UIUtils()
    • Method Detail

      • createPrimaryButton

        public static com.vaadin.flow.component.button.Button createPrimaryButton​(String text)
      • createPrimaryButton

        public static com.vaadin.flow.component.button.Button createPrimaryButton​(com.vaadin.flow.component.icon.VaadinIcon icon)
      • createPrimaryButton

        public static com.vaadin.flow.component.button.Button createPrimaryButton​(String text,
                                                                                  com.vaadin.flow.component.icon.VaadinIcon icon)
      • createTertiaryButton

        public static com.vaadin.flow.component.button.Button createTertiaryButton​(String text)
      • createTertiaryButton

        public static com.vaadin.flow.component.button.Button createTertiaryButton​(com.vaadin.flow.component.icon.VaadinIcon icon)
      • createTertiaryButton

        public static com.vaadin.flow.component.button.Button createTertiaryButton​(String text,
                                                                                   com.vaadin.flow.component.icon.VaadinIcon icon)
      • createTertiaryInlineButton

        public static com.vaadin.flow.component.button.Button createTertiaryInlineButton​(String text)
      • createTertiaryInlineButton

        public static com.vaadin.flow.component.button.Button createTertiaryInlineButton​(com.vaadin.flow.component.icon.VaadinIcon icon)
      • createTertiaryInlineButton

        public static com.vaadin.flow.component.button.Button createTertiaryInlineButton​(String text,
                                                                                         com.vaadin.flow.component.icon.VaadinIcon icon)
      • createSuccessButton

        public static com.vaadin.flow.component.button.Button createSuccessButton​(String text)
      • createSuccessButton

        public static com.vaadin.flow.component.button.Button createSuccessButton​(com.vaadin.flow.component.icon.VaadinIcon icon)
      • createSuccessButton

        public static com.vaadin.flow.component.button.Button createSuccessButton​(String text,
                                                                                  com.vaadin.flow.component.icon.VaadinIcon icon)
      • createSuccessPrimaryButton

        public static com.vaadin.flow.component.button.Button createSuccessPrimaryButton​(String text)
      • createSuccessPrimaryButton

        public static com.vaadin.flow.component.button.Button createSuccessPrimaryButton​(com.vaadin.flow.component.icon.VaadinIcon icon)
      • createSuccessPrimaryButton

        public static com.vaadin.flow.component.button.Button createSuccessPrimaryButton​(String text,
                                                                                         com.vaadin.flow.component.icon.VaadinIcon icon)
      • createErrorButton

        public static com.vaadin.flow.component.button.Button createErrorButton​(String text)
      • createErrorButton

        public static com.vaadin.flow.component.button.Button createErrorButton​(com.vaadin.flow.component.icon.VaadinIcon icon)
      • createErrorButton

        public static com.vaadin.flow.component.button.Button createErrorButton​(String text,
                                                                                com.vaadin.flow.component.icon.VaadinIcon icon)
      • createErrorPrimaryButton

        public static com.vaadin.flow.component.button.Button createErrorPrimaryButton​(String text)
      • createErrorPrimaryButton

        public static com.vaadin.flow.component.button.Button createErrorPrimaryButton​(com.vaadin.flow.component.icon.VaadinIcon icon)
      • createErrorPrimaryButton

        public static com.vaadin.flow.component.button.Button createErrorPrimaryButton​(String text,
                                                                                       com.vaadin.flow.component.icon.VaadinIcon icon)
      • createContrastButton

        public static com.vaadin.flow.component.button.Button createContrastButton​(String text)
      • createContrastButton

        public static com.vaadin.flow.component.button.Button createContrastButton​(com.vaadin.flow.component.icon.VaadinIcon icon)
      • createContrastButton

        public static com.vaadin.flow.component.button.Button createContrastButton​(String text,
                                                                                   com.vaadin.flow.component.icon.VaadinIcon icon)
      • createContrastPrimaryButton

        public static com.vaadin.flow.component.button.Button createContrastPrimaryButton​(String text)
      • createContrastPrimaryButton

        public static com.vaadin.flow.component.button.Button createContrastPrimaryButton​(com.vaadin.flow.component.icon.VaadinIcon icon)
      • createContrastPrimaryButton

        public static com.vaadin.flow.component.button.Button createContrastPrimaryButton​(String text,
                                                                                          com.vaadin.flow.component.icon.VaadinIcon icon)
      • createSmallButton

        public static com.vaadin.flow.component.button.Button createSmallButton​(String text)
      • createSmallButton

        public static com.vaadin.flow.component.button.Button createSmallButton​(com.vaadin.flow.component.icon.VaadinIcon icon)
      • createSmallButton

        public static com.vaadin.flow.component.button.Button createSmallButton​(String text,
                                                                                com.vaadin.flow.component.icon.VaadinIcon icon)
      • createLargeButton

        public static com.vaadin.flow.component.button.Button createLargeButton​(String text)
      • createLargeButton

        public static com.vaadin.flow.component.button.Button createLargeButton​(com.vaadin.flow.component.icon.VaadinIcon icon)
      • createLargeButton

        public static com.vaadin.flow.component.button.Button createLargeButton​(String text,
                                                                                com.vaadin.flow.component.icon.VaadinIcon icon)
      • createButton

        public static com.vaadin.flow.component.button.Button createButton​(String text,
                                                                           com.vaadin.flow.component.button.ButtonVariant... variants)
      • createButton

        public static com.vaadin.flow.component.button.Button createButton​(com.vaadin.flow.component.icon.VaadinIcon icon,
                                                                           com.vaadin.flow.component.button.ButtonVariant... variants)
      • createButton

        public static com.vaadin.flow.component.button.Button createButton​(String text,
                                                                           com.vaadin.flow.component.icon.VaadinIcon icon,
                                                                           com.vaadin.flow.component.button.ButtonVariant... variants)
      • createSmallTextField

        public static com.vaadin.flow.component.textfield.TextField createSmallTextField()
      • createLabel

        public static com.vaadin.flow.component.html.Label createLabel​(FontSize size,
                                                                       TextColor color,
                                                                       String text)
      • createLabel

        public static com.vaadin.flow.component.html.Label createLabel​(FontSize size,
                                                                       String text)
      • createLabel

        public static com.vaadin.flow.component.html.Label createLabel​(TextColor color,
                                                                       String text)
      • createH1Label

        public static com.vaadin.flow.component.html.Label createH1Label​(String text)
      • createH2Label

        public static com.vaadin.flow.component.html.Label createH2Label​(String text)
      • createH3Label

        public static com.vaadin.flow.component.html.Label createH3Label​(String text)
      • createH4Label

        public static com.vaadin.flow.component.html.Label createH4Label​(String text)
      • createH5Label

        public static com.vaadin.flow.component.html.Label createH5Label​(String text)
      • createH6Label

        public static com.vaadin.flow.component.html.Label createH6Label​(String text)
      • createFloatingActionButton

        public static com.vaadin.flow.component.button.Button createFloatingActionButton​(com.vaadin.flow.component.icon.VaadinIcon icon)
      • createPhoneLayout

        public static com.vaadin.flow.component.orderedlayout.FlexLayout createPhoneLayout()
      • formatAmount

        public static String formatAmount​(Double amount)
      • formatAmount

        public static String formatAmount​(int amount)
      • createAmountLabel

        public static com.vaadin.flow.component.html.Label createAmountLabel​(double amount)
      • formatUnits

        public static String formatUnits​(int units)
      • createUnitsLabel

        public static com.vaadin.flow.component.html.Label createUnitsLabel​(int units)
      • createPrimaryIcon

        public static com.vaadin.flow.component.icon.Icon createPrimaryIcon​(com.vaadin.flow.component.icon.VaadinIcon icon)
      • createSecondaryIcon

        public static com.vaadin.flow.component.icon.Icon createSecondaryIcon​(com.vaadin.flow.component.icon.VaadinIcon icon)
      • createTertiaryIcon

        public static com.vaadin.flow.component.icon.Icon createTertiaryIcon​(com.vaadin.flow.component.icon.VaadinIcon icon)
      • createDisabledIcon

        public static com.vaadin.flow.component.icon.Icon createDisabledIcon​(com.vaadin.flow.component.icon.VaadinIcon icon)
      • createSuccessIcon

        public static com.vaadin.flow.component.icon.Icon createSuccessIcon​(com.vaadin.flow.component.icon.VaadinIcon icon)
      • createErrorIcon

        public static com.vaadin.flow.component.icon.Icon createErrorIcon​(com.vaadin.flow.component.icon.VaadinIcon icon)
      • createSmallIcon

        public static com.vaadin.flow.component.icon.Icon createSmallIcon​(com.vaadin.flow.component.icon.VaadinIcon icon)
      • createLargeIcon

        public static com.vaadin.flow.component.icon.Icon createLargeIcon​(com.vaadin.flow.component.icon.VaadinIcon icon)
      • createIcon

        public static com.vaadin.flow.component.icon.Icon createIcon​(IconSize size,
                                                                     TextColor color,
                                                                     com.vaadin.flow.component.icon.VaadinIcon icon)
      • showNotification

        public static void showNotification​(String text)
      • setAlignSelf

        public static void setAlignSelf​(AlignSelf alignSelf,
                                        com.vaadin.flow.component.Component... components)
      • setBackgroundColor

        public static void setBackgroundColor​(String backgroundColor,
                                              com.vaadin.flow.component.Component... components)
      • setBorderRadius

        public static void setBorderRadius​(BorderRadius borderRadius,
                                           com.vaadin.flow.component.Component... components)
      • setBoxSizing

        public static void setBoxSizing​(BoxSizing boxSizing,
                                        com.vaadin.flow.component.Component... components)
      • setColSpan

        public static void setColSpan​(int span,
                                      com.vaadin.flow.component.Component... components)
      • setFontSize

        public static void setFontSize​(FontSize fontSize,
                                       com.vaadin.flow.component.Component... components)
      • setFontWeight

        public static void setFontWeight​(FontWeight fontWeight,
                                         com.vaadin.flow.component.Component... components)
      • setLineHeight

        public static void setLineHeight​(LineHeight lineHeight,
                                         com.vaadin.flow.component.Component... components)
      • setLineHeight

        public static void setLineHeight​(String value,
                                         com.vaadin.flow.component.Component... components)
      • setMaxWidth

        public static void setMaxWidth​(String value,
                                       com.vaadin.flow.component.Component... components)
      • setOverflow

        public static void setOverflow​(Overflow overflow,
                                       com.vaadin.flow.component.Component... components)
      • setPointerEvents

        public static void setPointerEvents​(PointerEvents pointerEvents,
                                            com.vaadin.flow.component.Component... components)
      • setShadow

        public static void setShadow​(Shadow shadow,
                                     com.vaadin.flow.component.Component... components)
      • setTextAlign

        public static void setTextAlign​(TextAlign textAlign,
                                        com.vaadin.flow.component.Component... components)
      • setTextColor

        public static void setTextColor​(TextColor textColor,
                                        com.vaadin.flow.component.Component... components)
      • setTextOverflow

        public static void setTextOverflow​(TextOverflow textOverflow,
                                           com.vaadin.flow.component.Component... components)
      • setTheme

        public static void setTheme​(String theme,
                                    com.vaadin.flow.component.Component... components)
      • setTooltip

        public static void setTooltip​(String tooltip,
                                      com.vaadin.flow.component.Component... components)
      • setWhiteSpace

        public static void setWhiteSpace​(WhiteSpace whiteSpace,
                                         com.vaadin.flow.component.Component... components)
      • setWidth

        public static void setWidth​(String value,
                                    com.vaadin.flow.component.Component... components)
      • setAriaLabel

        public static void setAriaLabel​(String value,
                                        com.vaadin.flow.component.Component... components)