]> source.dussan.org Git - vaadin-framework.git/commit
Remove HasValue from Grid
authorPekka Hyvönen <pekka@vaadin.com>
Mon, 7 Nov 2016 07:16:37 +0000 (09:16 +0200)
committerIlia Motornyi <elmot@vaadin.com>
Thu, 10 Nov 2016 07:49:08 +0000 (07:49 +0000)
commit39c15034076015a16cd056adf9dc422335985543
tree8bb235b285e69cb48b83de067152f06d7c076e8d
parent0f42869ce1f81270141e94f169f1447febaff446
Remove HasValue from Grid

Extracts grid single selection into separate class, which
is an extension like in V7. Using an extension makes it
possible to easily add multiselect and no-select modes back,
and support custom selection models.

Adds Grid:asSingleSelect() SingleSelect so that grid can be
used as a Select in a binder.

Removes all remaining references to SelectionModels in Listings.
Renames SingleSelectionChangeEvent to SingleSelectionEvent, because
then it is unified with selection listener and MultiSelectionEvent.

Fixes vaadin/framework8-issues#424
Fixes vaadin/framework8-issues#425

Change-Id: Ie22bef29cfd4336c3f65d4e63531c578b8dd76a3
27 files changed:
client/src/main/java/com/vaadin/client/connectors/grid/GridConnector.java
client/src/main/java/com/vaadin/client/connectors/grid/SingleSelectionModelConnector.java [new file with mode: 0644]
client/src/main/java/com/vaadin/client/connectors/selection/AbstractSelectionConnector.java [deleted file]
client/src/main/java/com/vaadin/client/data/SelectionModel.java
server/src/main/java/com/vaadin/data/SelectionModel.java
server/src/main/java/com/vaadin/data/selection/AbstractSelectionModel.java [deleted file]
server/src/main/java/com/vaadin/event/selection/SingleSelectionChangeEvent.java [deleted file]
server/src/main/java/com/vaadin/event/selection/SingleSelectionEvent.java [new file with mode: 0644]
server/src/main/java/com/vaadin/event/selection/SingleSelectionListener.java
server/src/main/java/com/vaadin/ui/AbstractSingleSelect.java
server/src/main/java/com/vaadin/ui/ComboBox.java
server/src/main/java/com/vaadin/ui/Grid.java
server/src/main/java/com/vaadin/ui/components/colorpicker/ColorPickerSelect.java
server/src/main/java/com/vaadin/ui/components/grid/SingleSelectionModel.java [new file with mode: 0644]
server/src/test/java/com/vaadin/data/BinderSingleSelectTest.java
server/src/test/java/com/vaadin/data/GridAsSingleSelectInBinder.java [new file with mode: 0644]
server/src/test/java/com/vaadin/event/selection/SelectionEventTest.java
server/src/test/java/com/vaadin/tests/components/grid/GridSelectionTest.java [deleted file]
server/src/test/java/com/vaadin/tests/components/grid/GridSingleSelectionModelTest.java [new file with mode: 0644]
server/src/test/java/com/vaadin/ui/AbstractSingleSelectTest.java
server/src/test/java/com/vaadin/ui/RadioButtonGroupTest.java
uitest/src/main/java/com/vaadin/tests/components/abstractlisting/AbstractSingleSelectTestUI.java
uitest/src/main/java/com/vaadin/tests/components/combobox/ComboBoxSelectingWithNewItemsAllowed.java
uitest/src/main/java/com/vaadin/tests/components/grid/basics/GridBasics.java
uitest/src/main/java/com/vaadin/tests/components/nativeselect/NativeSelectInit.java
uitest/src/main/java/com/vaadin/tests/components/radiobutton/RadioButtonGroupTestUI.java
uitest/src/main/java/com/vaadin/tests/data/DummyData.java