瀏覽代碼

Add javadoc clarification for DataProivder.refreshItem (#8585)

* Add javadoc clarification for DataProivder.refreshItem
tags/8.1.0.alpha1
Leif Åstrand 7 年之前
父節點
當前提交
3841ea1f73
共有 1 個檔案被更改,包括 8 行新增0 行删除
  1. 8
    0
      server/src/main/java/com/vaadin/data/provider/DataProvider.java

+ 8
- 0
server/src/main/java/com/vaadin/data/provider/DataProvider.java 查看文件

@@ -93,6 +93,14 @@ public interface DataProvider<T, F> extends Serializable {
* Refreshes the given item. This method should be used to inform all
* {@link DataProviderListener DataProviderListeners} that an item has been
* updated or replaced with a new instance.
* <p>
* For this to work properly, the item must either implement
* {@link #equals(Object)} and {@link #hashCode()} to consider both the old
* and the new item instances to be equal, or alternatively
* {@link #getId(Object)} should be implemented to return an appropriate
* identifier.
*
* @see #getId(Object)
*
* @param item
* the item to refresh

Loading…
取消
儲存