We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.ui.
Class Tree.ItemClick<T>
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.event.ConnectorEvent
-
- com.vaadin.ui.Tree.ItemClick<T>
-
Type Parameters:
T
- the data type of treeAll Implemented Interfaces:
public static class Tree.ItemClick<T> extends ConnectorEvent
Tree item click event.
Since:
8.1
See Also:
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ItemClick(Tree<T> source, T item, MouseEventDetails mouseEventDetails)
Constructs a new item click.
-
Method Summary
All Methods Modifier and Type Method Description T
getItem()
Returns the clicked item.
MouseEventDetails
getMouseEventDetails()
Returns the mouse event details.
Tree<T>
getSource()
-
Methods inherited from class com.vaadin.event.ConnectorEvent
getConnector
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
ItemClick
protected ItemClick(Tree<T> source, T item, MouseEventDetails mouseEventDetails)
Constructs a new item click.
Parameters:
source
- the tree componentitem
- the clicked itemmouseEventDetails
- 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 classEventObject
-
getMouseEventDetails
public MouseEventDetails getMouseEventDetails()
Returns the mouse event details.
Returns:
the mouse event details
-
-