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 String
castToNumber
(String value) static void
configureEditor
(com.vaadin.flow.component.grid.Grid<?> grid) static de.f0rce.ace.AceEditor
static com.vaadin.flow.component.icon.Icon
createMenuBarIcon
(com.vaadin.flow.component.icon.VaadinIcon icon) static com.vaadin.flow.component.button.Button
createPrimaryButton
(String name) 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) static com.vaadin.flow.component.html.Span
static TabSheet
static String
formatDateTime
(Date dateTime) static String
formatDuration
(long timeInMs) static String[]
getHeaderCaptions
(com.vaadin.flow.component.grid.Grid<?> grid) static String
getJdbcTypeValue
(String type) static Object
static com.vaadin.flow.component.notification.Notification
static com.vaadin.flow.component.notification.Notification
static com.vaadin.flow.component.notification.Notification
static com.vaadin.flow.component.notification.Notification
static com.vaadin.flow.component.notification.Notification
static com.vaadin.flow.component.notification.Notification
notifyError
(String message) static com.vaadin.flow.component.notification.Notification
notifyError
(String message, Consumer<Boolean> shortcutToggler) static com.vaadin.flow.component.notification.Notification
notifyError
(Consumer<Boolean> shortcutToggler) putResultsInGrid
(ColumnVisibilityToggler columnVisibilityToggler, ResultSet rs, int maxResultSize, boolean showRowNumbers, String... excludeValues) static void
styleTabSheet
(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 com.vaadin.flow.component.notification.Notification 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)
-