com.vaadin.ui.

Class Tree.ItemClick<T>

  • Type Parameters:

    T - the data type of tree

    All Implemented Interfaces:

    Serializable

    Enclosing class:

    Tree<T>

    public static class Tree.ItemClick<T>
    extends ConnectorEvent

    Tree item click event.

    Since:

    8.1

    See Also:

    Serialized Form

    • Constructor Detail

      • ItemClick

        protected ItemClick​(Tree<T> source,
                            T item,
                            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

      • getMouseEventDetails

        public MouseEventDetails getMouseEventDetails()

        Returns the mouse event details.

        Returns:

        the mouse event details