com.itmill.toolkit.event
Class ItemClickEvent
java.lang.Object
java.util.EventObject
com.itmill.toolkit.ui.Component.Event
com.itmill.toolkit.event.ItemClickEvent
- All Implemented Interfaces:
- Serializable
public class ItemClickEvent
- extends Component.Event
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.
ClickEvents are rather terminal dependent events. Correct values in event
details cannot be guaranteed.
EXPERIMENTAL FEATURE, user input is welcome
- Since:
- 5.3
TODO extract generic super class/interfaces if we implement some other
click events.
- See Also:
- Serialized Form
BUTTON_LEFT
public static final int BUTTON_LEFT
- See Also:
- Constant Field Values
BUTTON_MIDDLE
public static final int BUTTON_MIDDLE
- See Also:
- Constant Field Values
BUTTON_RIGHT
public static final int BUTTON_RIGHT
- See Also:
- Constant Field Values
ITEM_CLICK_METHOD
public static final Method ITEM_CLICK_METHOD
ItemClickEvent
public ItemClickEvent(Component source,
Item item,
Object itemId,
Object propertyId,
MouseEventDetails details)
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 leve. 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.
getButton
public int getButton()
getClientX
public int getClientX()
getClientY
public int getClientY()
isDoubleClick
public boolean isDoubleClick()
isAltKey
public boolean isAltKey()
isCtrlKey
public boolean isCtrlKey()
isMetaKey
public boolean isMetaKey()
isShiftKey
public boolean isShiftKey()
Copyright © 2000-2009 IT Mill Ltd. All Rights Reserved.