Package org.jumpmind.vaadin.ui.common
Class CommonUiUtils
java.lang.Object
org.jumpmind.vaadin.ui.common.CommonUiUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcastToNumber(String value) static voidconfigureEditor(com.vaadin.flow.component.grid.Grid<?> grid) static de.f0rce.ace.AceEditorstatic com.vaadin.flow.component.icon.IconcreateMenuBarIcon(com.vaadin.flow.component.icon.VaadinIcon icon) static com.vaadin.flow.component.button.ButtoncreatePrimaryButton(String name) static com.vaadin.flow.component.button.ButtoncreatePrimaryButton(String name, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> listener) static com.vaadin.flow.component.html.Spanstatic TabSheetstatic StringformatDateTime(Date dateTime) static StringformatDuration(long timeInMs) static String[]getHeaderCaptions(com.vaadin.flow.component.grid.Grid<?> grid) static StringgetJdbcTypeValue(String type) static Objectstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidnotifyError(String message) static voidnotifyError(String message, Consumer<Boolean> shortcutToggler) static voidnotifyError(Consumer<Boolean> shortcutToggler) putResultsInGrid(ColumnVisibilityToggler columnVisibilityToggler, ResultSet rs, int maxResultSize, boolean showRowNumbers, String... excludeValues) static voidstyleTabSheet(TabSheet tabSheet)
-
Field Details
-
NULL_TEXT
- See Also:
-
-
Method Details
-
styleTabSheet
-
createTabSheet
-
createPrimaryButton
-
createPrimaryButton
public static com.vaadin.flow.component.button.Button createPrimaryButton(String name, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> listener) -
createAceEditor
public static de.f0rce.ace.AceEditor createAceEditor() -
notify
-
notify
-
notify
-
notify
-
notifyError
public static void notifyError() -
notifyError
-
notifyError
-
notifyError
-
getObject
- Throws:
SQLException
-
getHeaderCaptions
-
putResultsInGrid
public static com.vaadin.flow.component.grid.Grid<List<Object>> putResultsInGrid(ColumnVisibilityToggler columnVisibilityToggler, ResultSet rs, int maxResultSize, boolean showRowNumbers, String... excludeValues) throws SQLException - Throws:
SQLException
-
castToNumber
-
formatDuration
-
formatDateTime
-
getJdbcTypeValue
-
createSeparator
public static com.vaadin.flow.component.html.Span createSeparator() -
configureEditor
public static void configureEditor(com.vaadin.flow.component.grid.Grid<?> grid) -
createMenuBarIcon
public static com.vaadin.flow.component.icon.Icon createMenuBarIcon(com.vaadin.flow.component.icon.VaadinIcon icon)
-