summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorAdam Wagner <wbadam@users.noreply.github.com>2017-04-07 13:03:09 +0300
committerHenri Sara <henri.sara@gmail.com>2017-04-12 14:58:11 +0300
commitc1ecea9aa4729b1c8c3d00ebefa1a2a08a352ebf (patch)
treeaee8256add23044f63a40fa5891fe1eaec8f0eea /client
parenta773c8c7b365e4041db87b5d9ddaad0bdc244a91 (diff)
downloadvaadin-framework-c1ecea9aa4729b1c8c3d00ebefa1a2a08a352ebf.tar.gz
vaadin-framework-c1ecea9aa4729b1c8c3d00ebefa1a2a08a352ebf.zip
Remove Extension suffix from Grid DND classes (#9035)
Diffstat (limited to 'client')
-rw-r--r--client/src/main/java/com/vaadin/client/connectors/grid/GridDragSourceConnector.java (renamed from client/src/main/java/com/vaadin/client/connectors/grid/GridDragSourceExtensionConnector.java)27
-rw-r--r--client/src/main/java/com/vaadin/client/connectors/grid/GridDropTargetConnector.java (renamed from client/src/main/java/com/vaadin/client/connectors/grid/GridDropTargetExtensionConnector.java)18
2 files changed, 21 insertions, 24 deletions
diff --git a/client/src/main/java/com/vaadin/client/connectors/grid/GridDragSourceExtensionConnector.java b/client/src/main/java/com/vaadin/client/connectors/grid/GridDragSourceConnector.java
index 40eb80621c..74f9f14d4f 100644
--- a/client/src/main/java/com/vaadin/client/connectors/grid/GridDragSourceExtensionConnector.java
+++ b/client/src/main/java/com/vaadin/client/connectors/grid/GridDragSourceConnector.java
@@ -29,10 +29,10 @@ import com.vaadin.client.widgets.Grid;
import com.vaadin.shared.Range;
import com.vaadin.shared.ui.Connect;
import com.vaadin.shared.ui.dnd.DropEffect;
-import com.vaadin.shared.ui.grid.GridDragSourceExtensionRpc;
-import com.vaadin.shared.ui.grid.GridDragSourceExtensionState;
+import com.vaadin.shared.ui.grid.GridDragSourceRpc;
+import com.vaadin.shared.ui.grid.GridDragSourceState;
import com.vaadin.shared.ui.grid.GridState;
-import com.vaadin.ui.GridDragSourceExtension;
+import com.vaadin.ui.GridDragSource;
import elemental.events.Event;
import elemental.json.Json;
@@ -41,14 +41,13 @@ import elemental.json.JsonObject;
/**
* Adds HTML5 drag and drop functionality to a {@link com.vaadin.client.widgets.Grid
- * Grid}'s rows. This is the client side counterpart of {@link
- * GridDragSourceExtension}.
+ * Grid}'s rows. This is the client side counterpart of {@link GridDragSource}.
*
* @author Vaadin Ltd
* @since
*/
-@Connect(GridDragSourceExtension.class)
-public class GridDragSourceExtensionConnector extends
+@Connect(GridDragSource.class)
+public class GridDragSourceConnector extends
DragSourceExtensionConnector {
private GridConnector gridConnector;
@@ -93,8 +92,7 @@ public class GridDragSourceExtensionConnector extends
protected void sendDragStartEventToServer(Event dragStartEvent) {
// Start server RPC with dragged item keys
- getRpcProxy(GridDragSourceExtensionRpc.class)
- .dragStart(draggedItemKeys);
+ getRpcProxy(GridDragSourceRpc.class).dragStart(draggedItemKeys);
}
private List<JsonObject> getDraggedRows(Event dragStartEvent) {
@@ -130,7 +128,7 @@ public class GridDragSourceExtensionConnector extends
DropEffect dropEffect) {
// Send server RPC with dragged item keys
- getRpcProxy(GridDragSourceExtensionRpc.class)
+ getRpcProxy(GridDragSourceRpc.class)
.dragEnd(dropEffect, draggedItemKeys);
}
@@ -204,9 +202,8 @@ public class GridDragSourceExtensionConnector extends
* @return Drag data if present or row data otherwise.
*/
private JsonObject getDragData(JsonObject row) {
- return row.hasKey(GridDragSourceExtensionState.JSONKEY_DRAG_DATA)
- ? row.getObject(GridDragSourceExtensionState.JSONKEY_DRAG_DATA)
- : row;
+ return row.hasKey(GridDragSourceState.JSONKEY_DRAG_DATA)
+ ? row.getObject(GridDragSourceState.JSONKEY_DRAG_DATA) : row;
}
@Override
@@ -239,7 +236,7 @@ public class GridDragSourceExtensionConnector extends
}
@Override
- public GridDragSourceExtensionState getState() {
- return (GridDragSourceExtensionState) super.getState();
+ public GridDragSourceState getState() {
+ return (GridDragSourceState) super.getState();
}
}
diff --git a/client/src/main/java/com/vaadin/client/connectors/grid/GridDropTargetExtensionConnector.java b/client/src/main/java/com/vaadin/client/connectors/grid/GridDropTargetConnector.java
index dacc8316ad..34a2c6750f 100644
--- a/client/src/main/java/com/vaadin/client/connectors/grid/GridDropTargetExtensionConnector.java
+++ b/client/src/main/java/com/vaadin/client/connectors/grid/GridDropTargetConnector.java
@@ -30,23 +30,23 @@ import com.vaadin.client.widgets.Escalator;
import com.vaadin.shared.ui.Connect;
import com.vaadin.shared.ui.grid.DropLocation;
import com.vaadin.shared.ui.grid.DropMode;
-import com.vaadin.shared.ui.grid.GridDropTargetExtensionRpc;
-import com.vaadin.shared.ui.grid.GridDropTargetExtensionState;
+import com.vaadin.shared.ui.grid.GridDropTargetRpc;
+import com.vaadin.shared.ui.grid.GridDropTargetState;
import com.vaadin.shared.ui.grid.GridState;
-import com.vaadin.ui.GridDropTargetExtension;
+import com.vaadin.ui.GridDropTarget;
import elemental.events.Event;
import elemental.json.JsonObject;
/**
* Makes Grid an HTML5 drop target. This is the client side counterpart of
- * {@link GridDropTargetExtension}.
+ * {@link GridDropTarget}.
*
* @author Vaadin Ltd
* @since
*/
-@Connect(GridDropTargetExtension.class)
-public class GridDropTargetExtensionConnector extends
+@Connect(GridDropTarget.class)
+public class GridDropTargetConnector extends
DropTargetExtensionConnector {
// Drag over class name suffixes
@@ -89,7 +89,7 @@ public class GridDropTargetExtensionConnector extends
(NativeEvent) dropEvent);
}
- getRpcProxy(GridDropTargetExtensionRpc.class)
+ getRpcProxy(GridDropTargetRpc.class)
.drop(dataTransferText, rowKey, dropLocation);
}
@@ -190,7 +190,7 @@ public class GridDropTargetExtensionConnector extends
}
@Override
- public GridDropTargetExtensionState getState() {
- return (GridDropTargetExtensionState) super.getState();
+ public GridDropTargetState getState() {
+ return (GridDropTargetState) super.getState();
}
}