com.vaadin.ui
Class Table.TableContextClickEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.vaadin.event.ConnectorEvent
          extended by com.vaadin.ui.Component.Event
              extended by com.vaadin.event.MouseEvents.ClickEvent
                  extended by com.vaadin.event.ContextClickEvent
                      extended by com.vaadin.ui.Table.TableContextClickEvent
All Implemented Interfaces:
java.io.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
Table.TableContextClickEvent(Table source, com.vaadin.shared.MouseEventDetails mouseEventDetails, java.lang.Object itemId, java.lang.Object propertyId, com.vaadin.shared.ui.table.TableConstants.Section section)
           
 
Method Summary
 Table getComponent()
          Gets the component where the event occurred.
 java.lang.Object getItemId()
          Returns the item id of context clicked row.
 java.lang.Object getPropertyId()
          Returns the property id of context clicked column.
 com.vaadin.shared.ui.table.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Table.TableContextClickEvent

public Table.TableContextClickEvent(Table source,
                                    com.vaadin.shared.MouseEventDetails mouseEventDetails,
                                    java.lang.Object itemId,
                                    java.lang.Object propertyId,
                                    com.vaadin.shared.ui.table.TableConstants.Section section)
Method Detail

getItemId

public java.lang.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 java.lang.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 com.vaadin.shared.ui.table.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 class Component.Event
Returns:
the source component of the event


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.