Class CommonUiUtils

java.lang.Object
org.jumpmind.vaadin.ui.common.CommonUiUtils

public final class CommonUiUtils extends Object
  • Field Details

  • Method Details

    • styleTabSheet

      public static void styleTabSheet(TabSheet tabSheet)
    • createTabSheet

      public static TabSheet createTabSheet()
    • createPrimaryButton

      public static com.vaadin.flow.component.button.Button createPrimaryButton(String name)
    • 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

      public static com.vaadin.flow.component.notification.Notification notify(String message)
    • notify

      public static com.vaadin.flow.component.notification.Notification notify(String message, Consumer<Boolean> shortcutToggler)
    • notify

      public static com.vaadin.flow.component.notification.Notification notify(String caption, String message)
    • notify

      public static com.vaadin.flow.component.notification.Notification notify(String caption, String message, Consumer<Boolean> shortcutToggler)
    • notifyError

      public static com.vaadin.flow.component.notification.Notification notifyError()
    • notifyError

      public static com.vaadin.flow.component.notification.Notification notifyError(Consumer<Boolean> shortcutToggler)
    • notifyError

      public static com.vaadin.flow.component.notification.Notification notifyError(String message)
    • notifyError

      public static com.vaadin.flow.component.notification.Notification notifyError(String message, Consumer<Boolean> shortcutToggler)
    • getObject

      public static Object getObject(ResultSet rs, int i) throws SQLException
      Throws:
      SQLException
    • getHeaderCaptions

      public static String[] getHeaderCaptions(com.vaadin.flow.component.grid.Grid<?> grid)
    • 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

      public static String castToNumber(String value)
    • formatDuration

      public static String formatDuration(long timeInMs)
    • formatDateTime

      public static String formatDateTime(Date dateTime)
    • getJdbcTypeValue

      public static String getJdbcTypeValue(String type)
    • 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)