Package com.vaadin.ui

Class Tree.ItemClick<T>

  • Type Parameters:
    T - the data type of tree
    All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    Tree<T>

    public static class Tree.ItemClick<T>
    extends ConnectorEvent
    Tree item click event.
    Since:
    8.1
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ItemClick​(Tree<T> source, T item, com.vaadin.shared.MouseEventDetails mouseEventDetails)
      Constructs a new item click.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T getItem()
      Returns the clicked item.
      com.vaadin.shared.MouseEventDetails getMouseEventDetails()
      Returns the mouse event details.
      Tree<T> getSource()  
      • Methods inherited from class java.util.EventObject

        toString
      • Methods inherited from class java.lang.Object

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

      • ItemClick

        protected ItemClick​(Tree<T> source,
                            T item,
                            com.vaadin.shared.MouseEventDetails mouseEventDetails)
        Constructs a new item click.
        Parameters:
        source - the tree component
        item - the clicked item
        mouseEventDetails - information about the original mouse event (mouse button clicked, coordinates if available etc.)
    • Method Detail

      • getItem

        public T getItem()
        Returns the clicked item.
        Returns:
        the clicked item
      • getSource

        public Tree<T> getSource()
        Overrides:
        getSource in class java.util.EventObject
      • getMouseEventDetails

        public com.vaadin.shared.MouseEventDetails getMouseEventDetails()
        Returns the mouse event details.
        Returns:
        the mouse event details