Package com.vaadin.ui
Class Table.TableContextClickEvent
- 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.Table.TableContextClickEvent
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Table
public static class Table.TableContextClickEvent extends ContextClickEvent
ContextClickEvent for the Table 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 TableContextClickEvent​(Table source, MouseEventDetails mouseEventDetails, Object itemId, Object propertyId, TableConstants.Section section)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Table
getComponent()
Gets the component where the event occurred.Object
getItemId()
Returns the item id of context clicked row.Object
getPropertyId()
Returns the property id of context clicked column.TableConstants.Section
getSection()
Returns the clicked section of Table.-
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
-
TableContextClickEvent
public TableContextClickEvent​(Table source, MouseEventDetails mouseEventDetails, Object itemId, Object propertyId, TableConstants.Section section)
-
-
Method Detail
-
getItemId
public Object getItemId()
Returns the item id of context clicked row.- Returns:
- item id of clicked row;
null
if header, footer or empty area of Table
-
getPropertyId
public Object getPropertyId()
Returns the property id of context clicked column.- Returns:
- property id; or
null
if we've clicked on the empty area of the Table
-
getSection
public TableConstants.Section getSection()
Returns the clicked section of Table.- Returns:
- section of Table
-
getComponent
public Table 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
-
-