Package com.vaadin.event
Class ItemClickEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.event.ConnectorEvent
-
- com.vaadin.ui.Component.Event
-
- com.vaadin.event.MouseEvents.ClickEvent
-
- com.vaadin.event.ItemClickEvent
-
- All Implemented Interfaces:
Serializable
public class ItemClickEvent extends MouseEvents.ClickEvent implements Serializable
Click event fired by aComponent
implementingContainer
interface. ItemClickEvents happens on anItem
rendered somehow on terminal. Event may also contain a specificProperty
on which the click event happened.- Since:
- 5.3
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ItemClickEvent.ItemClickListener
static interface
ItemClickEvent.ItemClickNotifier
The interface for adding and removingItemClickEvent
listeners.
-
Field Summary
Fields Modifier and Type Field Description static Method
ITEM_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 ItemClickEvent(Component source, Item item, Object itemId, Object propertyId, MouseEventDetails details)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Item
getItem()
Gets the item on which the click event occurred.Object
getItemId()
Gets a possible identifier in source for clicked ItemObject
getPropertyId()
Returns property on which click event occurred.-
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.ui.Component.Event
getComponent
-
Methods inherited from class com.vaadin.event.ConnectorEvent
getConnector
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Field Detail
-
ITEM_CLICK_METHOD
public static final Method ITEM_CLICK_METHOD
-
-
Constructor Detail
-
ItemClickEvent
public ItemClickEvent(Component source, Item item, Object itemId, Object propertyId, MouseEventDetails details)
-
-
Method Detail
-
getItem
public Item getItem()
Gets the item on which the click event occurred.- Returns:
- item which was clicked
-
getItemId
public Object getItemId()
Gets a possible identifier in source for clicked Item- Returns:
-
getPropertyId
public Object getPropertyId()
Returns property on which click event occurred. Returns null if source cannot be resolved at property level. For example if clicked a cell in table, the "column id" is returned.- Returns:
- a property id of clicked property or null if click didn't occur on any distinct property.
-
-