Class EventUtil

java.lang.Object
com.vaadin.featurepack.desktop.events.EventUtil

public class EventUtil extends Object
Utility class to propagate UI events to relevant event handling methods.
Author:
Vaadin Ltd
  • Constructor Details

    • EventUtil

      public EventUtil()
  • Method Details

    • addKeyListener

      public static void addKeyListener(com.vaadin.flow.component.Component c, KeyListener kl)
      Adds key listeners and propagates events to a combined event handling component, KeyListener.
      Parameters:
      c - Component
      kl - KeyListener
    • addComponentEventListener

      public static void addComponentEventListener(com.vaadin.flow.component.Component c, com.vaadin.flow.component.ComponentEventListener cel)
      Registers a ComponentEventListener for the given Component.
      Parameters:
      c - Component
      cel - ComponentEventListener
    • invokeLater

      public static void invokeLater(Runnable runnable)
      A Replacement for SwintUtilites.invokeLater()
      Parameters:
      runnable -
    • invokeAndWait

      public static void invokeAndWait(Runnable runnable) throws InvocationTargetException, InterruptedException
      A Replacement for SwintUtilites.invokeAndWait()
      Parameters:
      runnable -
      Throws:
      InvocationTargetException
      InterruptedException