Package com.vaadin.ui
Class Tree.TreeContextClickEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.event.ConnectorEvent
-
- com.vaadin.ui.Component.Event
-
- com.vaadin.event.MouseEvents.ClickEvent
-
- com.vaadin.event.ContextClickEvent
-
- com.vaadin.ui.Tree.TreeContextClickEvent
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Tree
public static class Tree.TreeContextClickEvent extends ContextClickEvent
ContextClickEvent for the Tree Component.- Since:
- 7.6
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.event.ContextClickEvent
ContextClickEvent.ContextClickListener, ContextClickEvent.ContextClickNotifier
-
-
Field Summary
-
Fields inherited from class com.vaadin.event.ContextClickEvent
CONTEXT_CLICK_METHOD
-
Fields inherited from class com.vaadin.event.MouseEvents.ClickEvent
BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description TreeContextClickEvent​(Tree source, Object itemId, MouseEventDetails mouseEventDetails)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tree
getComponent()
Gets the component where the event occurred.Object
getItemId()
Returns the item id of context clicked row.-
Methods inherited from class com.vaadin.event.MouseEvents.ClickEvent
getButton, getButtonName, getClientX, getClientY, getRelativeX, getRelativeY, isAltKey, isCtrlKey, isDoubleClick, isMetaKey, isShiftKey
-
Methods inherited from class com.vaadin.event.ConnectorEvent
getConnector
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
TreeContextClickEvent
public TreeContextClickEvent​(Tree source, Object itemId, MouseEventDetails mouseEventDetails)
-
-
Method Detail
-
getComponent
public Tree getComponent()
Description copied from class:Component.Event
Gets the component where the event occurred.- Overrides:
getComponent
in classComponent.Event
- Returns:
- the source component of the event
-
getItemId
public Object getItemId()
Returns the item id of context clicked row.- Returns:
- item id of clicked row;
null
if no row is present at the location
-
-