com.vaadin.flow.component.gridpro.
Class GridPro.ItemPropertyChangedEvent<E>
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.component.ComponentEvent<GridPro<E>>
-
- com.vaadin.flow.component.gridpro.GridPro.ItemPropertyChangedEvent<E>
-
Type Parameters:
E
- the bean typeAll Implemented Interfaces:
@DomEvent(value="item-property-changed") public static class GridPro.ItemPropertyChangedEvent<E> extends ComponentEvent<GridPro<E>>
Event fired when the user starts to edit an existing item.
See Also:
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor and Description ItemPropertyChangedEvent(GridPro<E> source, boolean fromClient, elemental.json.JsonObject item, String path)
Creates a new event using the given source and indicator whether the event originated from the client side or the server side.
-
Method Summary
All Methods Modifier and Type Method and Description E
getItem()
Gets an instance of edited item.
String
getPath()
Gets the key of the column where item was edited.
elemental.json.JsonObject
getSourceItem()
Gets an instance of edited item with the relations to the columns.
-
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
ItemPropertyChangedEvent
public ItemPropertyChangedEvent(GridPro<E> source, boolean fromClient, @EventData(value="event.detail.item") elemental.json.JsonObject item, @EventData(value="event.detail.path") String path)
Creates a new event using the given source and indicator whether the event originated from the client side or the server side.
Parameters:
source
- the source componentfromClient
-true
if the event originated from the clientitem
- the item to be edited, provided in JSON as internally represented in Gridpath
- item subproperty that was changed
-
-
Method Detail
-
getItem
public E getItem()
Gets an instance of edited item.
Returns:
the instance of edited item
-
getSourceItem
public elemental.json.JsonObject getSourceItem()
Gets an instance of edited item with the relations to the columns.
Returns:
the instance of edited item
-
getPath
public String getPath()
Gets the key of the column where item was edited.
Returns:
the key of the column
-
-