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.event.
Class ItemClickEvent
java.lang.Object
java.util.EventObject
com.vaadin.ui.Component.Event
com.vaadin.event.MouseEvents.ClickEvent
com.vaadin.event.ItemClickEvent
All Implemented Interfaces:
- extends MouseEvents.ClickEvent
- implements Serializable
public class ItemClickEvent
Click event fired by a 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.
Since:
5.3
See Also:
Nested Class Summary | |
---|---|
static interface |
ItemClickEvent.ItemClickListener
|
static interface |
ItemClickEvent.ItemClickNotifier
The interface for adding and removing ItemClickEvent
listeners. |
static interface |
ItemClickEvent.ItemClickSource
Deprecated. Use ItemClickEvent.ItemClickNotifier instead. ItemClickSource was
deprecated in version 6.5. |
Field Summary | |
---|---|
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 | |
---|---|
ItemClickEvent(Component source,
Item item,
Object itemId,
Object propertyId,
MouseEventDetails details)
|
Method Summary | |
---|---|
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. |
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 java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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()
- Returns:
- item which was clicked
Gets the item on which the click event occurred.
getItemId
public Object getItemId()
- Returns:
Gets a possible identifier in source for clicked Item
getPropertyId
public Object getPropertyId()
- Returns:
- a property id of clicked property or null if click didn't occur on any distinct property.
Returns property on which click event occurred. Returns null if source cannot be resolved at property leve. For example if clicked a cell in table, the "column id" is returned.