Package 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 tree
- All Implemented Interfaces:
java.io.Serializable
public static class Tree.ItemClick<T> extends ConnectorEvent
Tree item click event.- Since:
- 8.1
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetItem()Returns the clicked item.com.vaadin.shared.MouseEventDetailsgetMouseEventDetails()Returns the mouse event details.Tree<T>getSource()-
Methods inherited from class com.vaadin.event.ConnectorEvent
getConnector
-
-
-
-
Constructor Detail
-
ItemClick
protected ItemClick(Tree<T> source, T item, com.vaadin.shared.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
-
getMouseEventDetails
public com.vaadin.shared.MouseEventDetails getMouseEventDetails()
Returns the mouse event details.- Returns:
- the mouse event details
-
-