aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorAleksi Hietanen <aleksi@vaadin.com>2017-05-11 08:31:48 +0300
committerHenri Sara <henri.sara@gmail.com>2017-05-16 15:35:17 +0300
commit0a3ce51e2caf597596f0426d0e59b8de33827b29 (patch)
treed424351168dbb2426473495e1746be7e68fc0b71 /client
parentd9ce1e8fb70e9cd6937a3174eeea3a244e52b770 (diff)
downloadvaadin-framework-0a3ce51e2caf597596f0426d0e59b8de33827b29.tar.gz
vaadin-framework-0a3ce51e2caf597596f0426d0e59b8de33827b29.zip
Rename BodyRowContainer.setNewEscalatorRowCallback to setNewRowCallback
Diffstat (limited to 'client')
-rw-r--r--client/src/main/java/com/vaadin/client/connectors/grid/GridDragSourceConnector.java6
-rw-r--r--client/src/main/java/com/vaadin/client/widget/escalator/RowContainer.java2
-rw-r--r--client/src/main/java/com/vaadin/client/widgets/Escalator.java2
3 files changed, 5 insertions, 5 deletions
diff --git a/client/src/main/java/com/vaadin/client/connectors/grid/GridDragSourceConnector.java b/client/src/main/java/com/vaadin/client/connectors/grid/GridDragSourceConnector.java
index 1a96c1ea66..5e83fef651 100644
--- a/client/src/main/java/com/vaadin/client/connectors/grid/GridDragSourceConnector.java
+++ b/client/src/main/java/com/vaadin/client/connectors/grid/GridDragSourceConnector.java
@@ -104,8 +104,8 @@ public class GridDragSourceConnector extends DragSourceExtensionConnector {
}
// Set newly added rows draggable
- getGridBody().setNewEscalatorRowCallback(
- rows -> rows.forEach(this::addDraggable));
+ getGridBody()
+ .setNewRowCallback(rows -> rows.forEach(this::addDraggable));
// Add drag listeners to body element
addDragListeners(getGridBody().getElement());
@@ -363,7 +363,7 @@ public class GridDragSourceConnector extends DragSourceExtensionConnector {
removeDragListeners(getGridBody().getElement());
// Remove callback for newly added rows
- getGridBody().setNewEscalatorRowCallback(null);
+ getGridBody().setNewRowCallback(null);
if (touchScrollDelayUsed) {
gridConnector.getWidget().getEscalator()
diff --git a/client/src/main/java/com/vaadin/client/widget/escalator/RowContainer.java b/client/src/main/java/com/vaadin/client/widget/escalator/RowContainer.java
index d3247605b3..3a87296b2f 100644
--- a/client/src/main/java/com/vaadin/client/widget/escalator/RowContainer.java
+++ b/client/src/main/java/com/vaadin/client/widget/escalator/RowContainer.java
@@ -129,7 +129,7 @@ public interface RowContainer {
* row elements.
* @since 8.1
*/
- public void setNewEscalatorRowCallback(
+ public void setNewRowCallback(
Consumer<List<TableRowElement>> consumer);
}
diff --git a/client/src/main/java/com/vaadin/client/widgets/Escalator.java b/client/src/main/java/com/vaadin/client/widgets/Escalator.java
index 543808cb18..5239fa9636 100644
--- a/client/src/main/java/com/vaadin/client/widgets/Escalator.java
+++ b/client/src/main/java/com/vaadin/client/widgets/Escalator.java
@@ -4037,7 +4037,7 @@ public class Escalator extends Widget
}
@Override
- public void setNewEscalatorRowCallback(
+ public void setNewRowCallback(
Consumer<List<TableRowElement>> callback) {
newEscalatorRowCallback = callback;
}