public static class Table.TableContextClickEvent extends ContextClickEvent
ContextClickEvent.ContextClickListener, ContextClickEvent.ContextClickNotifier
CONTEXT_CLICK_METHOD
BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT
source
Constructor and Description |
---|
TableContextClickEvent(Table source,
MouseEventDetails mouseEventDetails,
Object itemId,
Object propertyId,
TableConstants.Section section) |
Modifier and Type | Method and 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.
|
getButton, getButtonName, getClientX, getClientY, getRelativeX, getRelativeY, isAltKey, isCtrlKey, isDoubleClick, isMetaKey, isShiftKey
getConnector
getSource, toString
public TableContextClickEvent(Table source, MouseEventDetails mouseEventDetails, Object itemId, Object propertyId, TableConstants.Section section)
public Object getItemId()
null
if header, footer
or empty area of Tablepublic Object getPropertyId()
null
if we've clicked on the
empty area of the Tablepublic TableConstants.Section getSection()
public Table getComponent()
Component.Event
getComponent
in class Component.Event
Copyright © 2019 Vaadin Ltd. All rights reserved.