@@ -150,7 +150,7 @@ public enum Orientation {
150
150
private boolean explicitHeaderRow = true ;
151
151
152
152
private String layoutId ;
153
-
153
+
154
154
private static <T > ListDataProvider <T > emptyDataProvider () {
155
155
return DataProvider .ofCollection (new LinkedHashSet <>());
156
156
}
@@ -339,7 +339,7 @@ private String getLayoutId() {
339
339
return this .layoutId = "twincol-" + UUID .randomUUID ();
340
340
});
341
341
}
342
-
342
+
343
343
private HorizontalLayout createHorizontalContainer (boolean reverse ) {
344
344
buttonContainer = getVerticalButtonContainer ();
345
345
HorizontalLayout hl ;
@@ -928,12 +928,14 @@ public void setMoveItemsByDoubleClick(boolean value) {
928
928
side .moveItemsByDoubleClick =
929
929
side .grid .addItemDoubleClickListener (
930
930
ev -> {
931
- Set <T > item = Collections .singleton (ev .getItem ());
932
- if (side == available ) {
933
- updateSelection (item , Collections .emptySet (), true );
934
- }
935
- if (side == selection ) {
936
- updateSelection (Collections .emptySet (), item , true );
931
+ if (!isReadOnly ()) {
932
+ Set <T > item = Collections .singleton (ev .getItem ());
933
+ if (side == available ) {
934
+ updateSelection (item , Collections .emptySet (), true );
935
+ }
936
+ if (side == selection ) {
937
+ updateSelection (Collections .emptySet (), item , true );
938
+ }
937
939
}
938
940
});
939
941
}
0 commit comments