public class ItemClickEvent extends MouseEvents.ClickEvent implements Serializable
Component
implementing Container
interface. ItemClickEvents happens on an Item
rendered somehow on
terminal. Event may also contain a specific Property
on which the
click event happened.Modifier and Type | Class and Description |
---|---|
static interface |
ItemClickEvent.ItemClickListener |
static interface |
ItemClickEvent.ItemClickNotifier
The interface for adding and removing
ItemClickEvent
listeners. |
Modifier and Type | Field and Description |
---|---|
static Method |
ITEM_CLICK_METHOD |
BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT
source
Constructor and Description |
---|
ItemClickEvent(Component source,
Item item,
Object itemId,
Object propertyId,
MouseEventDetails details) |
Modifier and Type | Method and Description |
---|---|
Item |
getItem()
Gets the item on which the click event occurred.
|
Object |
getItemId()
Gets a possible identifier in source for clicked Item
|
Object |
getPropertyId()
Returns property on which click event occurred.
|
getButton, getButtonName, getClientX, getClientY, getRelativeX, getRelativeY, isAltKey, isCtrlKey, isDoubleClick, isMetaKey, isShiftKey
getComponent
getConnector
getSource, toString
public static final Method ITEM_CLICK_METHOD
public ItemClickEvent(Component source, Item item, Object itemId, Object propertyId, MouseEventDetails details)
public Item getItem()
public Object getItemId()
public Object getPropertyId()
Copyright © 2019 Vaadin Ltd. All rights reserved.