Package coop.intergal.ui.util
Class UIUtils
- java.lang.Object
-
- coop.intergal.ui.util.UIUtils
-
public class UIUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description UIUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.vaadin.flow.component.html.LabelcreateAmountLabel(double amount)static com.vaadin.flow.component.button.ButtoncreateButton(com.vaadin.flow.component.icon.VaadinIcon icon, com.vaadin.flow.component.button.ButtonVariant... variants)static com.vaadin.flow.component.button.ButtoncreateButton(String text, com.vaadin.flow.component.button.ButtonVariant... variants)static com.vaadin.flow.component.button.ButtoncreateButton(String text, com.vaadin.flow.component.icon.VaadinIcon icon, com.vaadin.flow.component.button.ButtonVariant... variants)static com.vaadin.flow.component.button.ButtoncreateContrastButton(com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.button.ButtoncreateContrastButton(String text)static com.vaadin.flow.component.button.ButtoncreateContrastButton(String text, com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.button.ButtoncreateContrastPrimaryButton(com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.button.ButtoncreateContrastPrimaryButton(String text)static com.vaadin.flow.component.button.ButtoncreateContrastPrimaryButton(String text, com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.icon.IconcreateDisabledIcon(com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.button.ButtoncreateErrorButton(com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.button.ButtoncreateErrorButton(String text)static com.vaadin.flow.component.button.ButtoncreateErrorButton(String text, com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.icon.IconcreateErrorIcon(com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.button.ButtoncreateErrorPrimaryButton(com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.button.ButtoncreateErrorPrimaryButton(String text)static com.vaadin.flow.component.button.ButtoncreateErrorPrimaryButton(String text, com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.button.ButtoncreateFloatingActionButton(com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.html.LabelcreateH1Label(String text)static com.vaadin.flow.component.html.LabelcreateH2Label(String text)static com.vaadin.flow.component.html.LabelcreateH3Label(String text)static com.vaadin.flow.component.html.LabelcreateH4Label(String text)static com.vaadin.flow.component.html.LabelcreateH5Label(String text)static com.vaadin.flow.component.html.LabelcreateH6Label(String text)static com.vaadin.flow.component.icon.IconcreateIcon(IconSize size, TextColor color, com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.html.LabelcreateLabel(FontSize size, TextColor color, String text)static com.vaadin.flow.component.html.LabelcreateLabel(FontSize size, String text)static com.vaadin.flow.component.html.LabelcreateLabel(TextColor color, String text)static com.vaadin.flow.component.button.ButtoncreateLargeButton(com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.button.ButtoncreateLargeButton(String text)static com.vaadin.flow.component.button.ButtoncreateLargeButton(String text, com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.icon.IconcreateLargeIcon(com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.orderedlayout.FlexLayoutcreatePhoneLayout()static com.vaadin.flow.component.button.ButtoncreatePrimaryButton(com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.button.ButtoncreatePrimaryButton(String text)static com.vaadin.flow.component.button.ButtoncreatePrimaryButton(String text, com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.icon.IconcreatePrimaryIcon(com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.icon.IconcreateSecondaryIcon(com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.button.ButtoncreateSmallButton(com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.button.ButtoncreateSmallButton(String text)static com.vaadin.flow.component.button.ButtoncreateSmallButton(String text, com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.icon.IconcreateSmallIcon(com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.textfield.TextFieldcreateSmallTextField()static com.vaadin.flow.component.button.ButtoncreateSuccessButton(com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.button.ButtoncreateSuccessButton(String text)static com.vaadin.flow.component.button.ButtoncreateSuccessButton(String text, com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.icon.IconcreateSuccessIcon(com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.button.ButtoncreateSuccessPrimaryButton(com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.button.ButtoncreateSuccessPrimaryButton(String text)static com.vaadin.flow.component.button.ButtoncreateSuccessPrimaryButton(String text, com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.button.ButtoncreateTertiaryButton(com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.button.ButtoncreateTertiaryButton(String text)static com.vaadin.flow.component.button.ButtoncreateTertiaryButton(String text, com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.icon.IconcreateTertiaryIcon(com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.button.ButtoncreateTertiaryInlineButton(com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.button.ButtoncreateTertiaryInlineButton(String text)static com.vaadin.flow.component.button.ButtoncreateTertiaryInlineButton(String text, com.vaadin.flow.component.icon.VaadinIcon icon)static com.vaadin.flow.component.html.LabelcreateUnitsLabel(int units)static StringformatAmount(int amount)static StringformatAmount(Double amount)static StringformatDate(LocalDate date)static StringformatUnits(int units)static voidsetAlignSelf(AlignSelf alignSelf, com.vaadin.flow.component.Component... components)static voidsetAriaLabel(String value, com.vaadin.flow.component.Component... components)static voidsetBackgroundColor(String backgroundColor, com.vaadin.flow.component.Component... components)static voidsetBorderRadius(BorderRadius borderRadius, com.vaadin.flow.component.Component... components)static voidsetBoxSizing(BoxSizing boxSizing, com.vaadin.flow.component.Component... components)static voidsetColSpan(int span, com.vaadin.flow.component.Component... components)static voidsetFontSize(FontSize fontSize, com.vaadin.flow.component.Component... components)static voidsetFontWeight(FontWeight fontWeight, com.vaadin.flow.component.Component... components)static voidsetLineHeight(LineHeight lineHeight, com.vaadin.flow.component.Component... components)static voidsetLineHeight(String value, com.vaadin.flow.component.Component... components)static voidsetMaxWidth(String value, com.vaadin.flow.component.Component... components)static voidsetOverflow(Overflow overflow, com.vaadin.flow.component.Component... components)static voidsetPointerEvents(PointerEvents pointerEvents, com.vaadin.flow.component.Component... components)static voidsetShadow(Shadow shadow, com.vaadin.flow.component.Component... components)static voidsetTextAlign(TextAlign textAlign, com.vaadin.flow.component.Component... components)static voidsetTextColor(TextColor textColor, com.vaadin.flow.component.Component... components)static voidsetTextOverflow(TextOverflow textOverflow, com.vaadin.flow.component.Component... components)static voidsetTheme(String theme, com.vaadin.flow.component.Component... components)static voidsetTooltip(String tooltip, com.vaadin.flow.component.Component... components)static voidsetWhiteSpace(WhiteSpace whiteSpace, com.vaadin.flow.component.Component... components)static voidsetWidth(String value, com.vaadin.flow.component.Component... components)static voidshowNotification(String text)
-
-
-
Field Detail
-
IMG_PATH
public static final String IMG_PATH
- See Also:
- Constant Field Values
-
-
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(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)
-
-