newObjects. If the current selected
- * object {@link EntityIdentityComparator#representSameEntity(Object, Object) represent the same entity} as an
- * object from newObjects it will be reselected. All others are de-selected. That means a selected
- * object is not contained in newObjects the object wouldn't be selected anymore. If this selection
- * model has no {@link EntityIdentityComparator} set, this method will use the {@link #equals(Object)} method to
- * compare. If an object is reselected it will be replaced with the new version of it.
+ * Refreshes the {@link RefreshableSingleSelectionModel} with the newObjects. If the currently selected
+ * object {@link EntityIdentityComparator#representSameEntity(Object, Object) represents the same entity} as an
+ * object from newObjects it will be reselected. All others are de-selected. That means if a selected
+ * object is not contained (based on {@link EntityIdentityComparator#representSameEntity(Object, Object)}) in
+ * newObjects the object wouldn't be selected anymore. If this selection model has no
+ * {@link EntityIdentityComparator} set, this method will use the {@link #equals(Object)} method to compare. If an
+ * object is reselected it will be replaced with the new version of it.
* * * When the selection is refreshed this method triggers a diff --git a/java/com.sap.sse.gwt/src/com/sap/sse/gwt/client/panels/AbstractFilterablePanel.java b/java/com.sap.sse.gwt/src/com/sap/sse/gwt/client/panels/AbstractFilterablePanel.java index e2865578afa..b4e22c98d2f 100644 --- a/java/com.sap.sse.gwt/src/com/sap/sse/gwt/client/panels/AbstractFilterablePanel.java +++ b/java/com.sap.sse.gwt/src/com/sap/sse/gwt/client/panels/AbstractFilterablePanel.java @@ -19,10 +19,7 @@ import com.sap.sse.common.Util; import com.sap.sse.common.filter.AbstractKeywordFilter; import com.sap.sse.common.filter.AbstractListFilter; import com.sap.sse.common.filter.Filter; -import com.sap.sse.gwt.client.celltable.EntityIdentityComparator; -import com.sap.sse.gwt.client.celltable.RefreshableMultiSelectionModel; import com.sap.sse.gwt.client.celltable.RefreshableSelectionModel; -import com.sap.sse.gwt.client.celltable.RefreshableSingleSelectionModel; /** * This Panel contains a text box. Text entered into the text box filters the {@link CellTable} passed to the @@ -37,7 +34,11 @@ import com.sap.sse.gwt.client.celltable.RefreshableSingleSelectionModel; * * Note that this panel does not contain the table that it filters. With this, this class's clients are free to * position the table wherever they want, not necessarily related to the text box provided by this panel in any specific - * way. + * way.
+ *
+ * It is recommended to use the {@link #getAllListDataProvider()} as the data provider for the table's selection model.
+ * This way, when the filter reduces the elements displayed in the table the selection will still refer to all elements
+ * and will not be modified solely by the act of filtering.
*
* @param true when the {@link RefreshableSelectionModel selection model} should be a
- * {@link RefreshableMultiSelectionModel}. When it's set false the
- * {@link RefreshableSelectionModel selection model} will be a {@link RefreshableSingleSelectionModel}.
- */
- public RefreshableSelectionModel