Class EventConv<T>

  • Type Parameters:
    T - Destination event type for the event type conversion.

    public class EventConv<T>
    extends java.lang.Object
    Author:
    rbo
    • Constructor Summary

      Constructors 
      Constructor Description
      EventConv​(org.zkoss.zk.ui.event.Event event)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T get()  
      T getSafely()
      Returns the event in the desired type and catches possible ClassCastExceptions.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EventConv

        public EventConv​(org.zkoss.zk.ui.event.Event event)
        Constructor.
        Parameters:
        event - Event
    • Method Detail

      • get

        public T get()
        Returns:
        Event
      • getSafely

        public T getSafely()
        Returns the event in the desired type and catches possible ClassCastExceptions. If an ClassCastException is thrown, null is returned.
        Returns:
        the event in the desired type or null.