diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-07-20 09:21:39 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-07-21 14:48:36 +0300 |
commit | 925ea628e656de350abca5c9da06092a80c563bf (patch) | |
tree | 014ee3709ce4888aacaaff3bcc4779e084d3abbd /shared | |
parent | 7d83a080189cef947af94c34bd3212fd5bb03928 (diff) | |
download | vaadin-framework-925ea628e656de350abca5c9da06092a80c563bf.tar.gz vaadin-framework-925ea628e656de350abca5c9da06092a80c563bf.zip |
Fix DetailsRow communication use connector IDs (#18493)
Details are now initialized when they are made visible. The old way of
requesting when seen caused a lot of problems when moving stuff around.
Now uses less communication, but reserves a bit extra resources due to
all details components being in the hierarchy.
Change-Id: If94e8df76254816aeb2fd681624fc82e7718cbb8
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/com/vaadin/shared/ui/grid/GridClientRpc.java | 17 | ||||
-rw-r--r-- | shared/src/com/vaadin/shared/ui/grid/GridServerRpc.java | 17 |
2 files changed, 0 insertions, 34 deletions
diff --git a/shared/src/com/vaadin/shared/ui/grid/GridClientRpc.java b/shared/src/com/vaadin/shared/ui/grid/GridClientRpc.java index 3c6d993482..ac1b1d5a78 100644 --- a/shared/src/com/vaadin/shared/ui/grid/GridClientRpc.java +++ b/shared/src/com/vaadin/shared/ui/grid/GridClientRpc.java @@ -15,8 +15,6 @@ */ package com.vaadin.shared.ui.grid; -import java.util.Set; - import com.vaadin.shared.communication.ClientRpc; /** @@ -57,19 +55,4 @@ public interface GridClientRpc extends ClientRpc { * Command client Grid to recalculate column widths. */ public void recalculateColumnWidths(); - - /** - * Informs the GridConnector on how the indexing of details connectors has - * changed. - * - * @since 7.5.0 - * @param connectorChanges - * the indexing changes of details connectors - * @param fetchId - * the id of the request for fetching the changes. A negative - * number indicates a push (not requested by the client side) - */ - public void setDetailsConnectorChanges( - Set<DetailsConnectorChange> connectorChanges, int fetchId); - } diff --git a/shared/src/com/vaadin/shared/ui/grid/GridServerRpc.java b/shared/src/com/vaadin/shared/ui/grid/GridServerRpc.java index dca55c11c4..5c91f2b746 100644 --- a/shared/src/com/vaadin/shared/ui/grid/GridServerRpc.java +++ b/shared/src/com/vaadin/shared/ui/grid/GridServerRpc.java @@ -61,23 +61,6 @@ public interface GridServerRpc extends ServerRpc { List<String> oldColumnOrder); /** - * This is a trigger for Grid to send whatever has changed regarding the - * details components. - * <p> - * The components can't be sent eagerly, since they are generated as a side - * effect in - * {@link com.vaadin.data.RpcDataProviderExtension#beforeClientResponse(boolean)} - * , and that is too late to change the hierarchy. So we need this - * round-trip to work around that limitation. - * - * @since 7.5.0 - * @param fetchId - * an unique identifier for the request - * @see com.vaadin.ui.Grid#setDetailsVisible(Object, boolean) - */ - void sendDetailsComponents(int fetchId); - - /** * Informs the server that the column's visibility has been changed. * * @since 7.5.0 |