Class CommonGUI

java.lang.Object
com.truebubo.maniflow.commongui.CommonGUI

public class CommonGUI extends Object
Common UI components used throughout the application
  • Constructor Details

    • CommonGUI

      public CommonGUI()
  • Method Details

    • getFormLayout

      public static com.vaadin.flow.component.formlayout.FormLayout getFormLayout(com.vaadin.flow.component.button.Button submitButton, com.vaadin.flow.component.Component... components)
    • getValueField

      public static com.vaadin.flow.component.textfield.BigDecimalField getValueField(String typeOfExchange, String label, Predicate<BigDecimal> validator)
    • getValueField

      public static com.vaadin.flow.component.textfield.BigDecimalField getValueField(String typeOfExchange, Predicate<BigDecimal> validator)
    • getTextField

      public static com.vaadin.flow.component.textfield.TextField getTextField(String typeOfExchange, String label)
    • getCurrencyBox

      public static com.vaadin.flow.component.combobox.ComboBox<CurrencyDesignation> getCurrencyBox(String typeOfExchange)
    • getRepeatsAfterDaysField

      public static com.vaadin.flow.component.textfield.IntegerField getRepeatsAfterDaysField(String typeOfExchange)
    • getSubmitButton

      public static com.vaadin.flow.component.button.Button getSubmitButton(String typeOfExchange)
    • setUpFormFieldListeners

      public static void setUpFormFieldListeners(com.vaadin.flow.component.button.Button submitButton, com.vaadin.flow.component.AbstractSinglePropertyField<?,?>... fields)
    • getTrash

      public static com.vaadin.flow.component.icon.Icon getTrash(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.icon.Icon>> onClick)
    • getMoneyExchangeRow

      public static <T extends MoneyExchange> com.vaadin.flow.component.html.Div getMoneyExchangeRow(T exchange, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.icon.Icon>> onDelete)
    • getExchangesDiv

      public static <T extends MoneyExchange> com.vaadin.flow.component.html.Div getExchangesDiv(String prefixOperation, List<T> exchanges, MoneyExchangeService<T> service, Runnable refresher)