Class CommonGUI
java.lang.Object
com.truebubo.maniflow.commongui.CommonGUI
Common UI components used throughout the application
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.vaadin.flow.component.combobox.ComboBox
<CurrencyDesignation> getCurrencyBox
(String typeOfExchange) static <T extends MoneyExchange>
com.vaadin.flow.component.html.DivgetExchangesDiv
(String prefixOperation, List<T> exchanges, MoneyExchangeService<T> service, Runnable refresher) static com.vaadin.flow.component.formlayout.FormLayout
getFormLayout
(com.vaadin.flow.component.button.Button submitButton, com.vaadin.flow.component.Component... components) static <T extends MoneyExchange>
com.vaadin.flow.component.html.DivgetMoneyExchangeRow
(T exchange, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.icon.Icon>> onDelete) static com.vaadin.flow.component.textfield.IntegerField
getRepeatsAfterDaysField
(String typeOfExchange) static com.vaadin.flow.component.button.Button
getSubmitButton
(String typeOfExchange) static com.vaadin.flow.component.textfield.TextField
getTextField
(String typeOfExchange, String label) 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) static com.vaadin.flow.component.textfield.BigDecimalField
getValueField
(String typeOfExchange, String label, Predicate<BigDecimal> validator) static com.vaadin.flow.component.textfield.BigDecimalField
getValueField
(String typeOfExchange, Predicate<BigDecimal> validator) static void
setUpFormFieldListeners
(com.vaadin.flow.component.button.Button submitButton, com.vaadin.flow.component.AbstractSinglePropertyField<?, ?>... fields)
-
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
-
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
-
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)
-