diff options
author | Adam Wagner <wbadam@users.noreply.github.com> | 2017-02-28 09:41:04 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-04-12 14:58:11 +0300 |
commit | c4f8524ea881e6a946ac9e9e1911fd2873f484e9 (patch) | |
tree | 05a175054cd7e3728b8ce6d80a2d6954a6494cc8 /shared | |
parent | 8b94b1aeca0e8d7cdd2d13d2f9ba32264b310ac2 (diff) | |
download | vaadin-framework-c4f8524ea881e6a946ac9e9e1911fd2873f484e9.tar.gz vaadin-framework-c4f8524ea881e6a946ac9e9e1911fd2873f484e9.zip |
Make Grid rows draggable (#8690)
It is possible to customize the drag data for each row. (#8706)
Fixes #8396
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/ui/grid/GridDragSourceExtensionState.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/grid/GridDragSourceExtensionState.java b/shared/src/main/java/com/vaadin/shared/ui/grid/GridDragSourceExtensionState.java new file mode 100644 index 0000000000..39a5917146 --- /dev/null +++ b/shared/src/main/java/com/vaadin/shared/ui/grid/GridDragSourceExtensionState.java @@ -0,0 +1,38 @@ +/* + * Copyright 2000-2016 Vaadin Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.vaadin.shared.ui.grid; + +import com.vaadin.shared.ui.dnd.DragSourceState; + +/** + * State class containing parameters for GridDragSourceExtension. + * + * @author Vaadin Ltd + * @since + */ +public class GridDragSourceExtensionState extends DragSourceState { + + /** + * Data type for storing the dragged row's data. + */ + public static final String DATA_TYPE_DRAG_DATA = "grid-drag-data"; + + /** + * Json key for storing data for a dragged row. + */ + public static final String JSONKEY_DRAG_DATA = "drag-data"; + +} |