aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/ui/AbstractSingleSelect.java
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year range (#12507)Anna Koskinen2022-01-111-1/+1
|
* Update copyright year range. (#12215)Anna Koskinen2021-03-041-1/+1
| | | | * Update copyright year range.
* Update since tags for 8.5.0.alpha1 (#10889)8.5.0.alpha1Teemu Suo-Anttila2018-05-071-2/+2
|
* Fix AbstractSingleSelect selection and state updates (#10796)Teemu Suo-Anttila2018-04-191-108/+94
|
* Update copyright year (#10761)Ilia Motornyi2018-03-271-1/+1
|
* Update to JSoup 1.11.2 (#10353)Leif Åstrand2017-11-231-1/+1
| | | | | Also update declarative writing to use true instead of "" for empty attributes because of changed defaults in JSoup. For v7, the tests are updated instead of touching the implementations.
* Fix RadioButtonGroup selection updates to client (#9749)Teemu Suo-Anttila2017-08-021-4/+2
| | | | | | | This patch provides a simple fix for the majority of issues. There are still issues that should be fixes by refactoring parts of the logic in AbstractSingleSelect. This patch does not unify the handling of empty values in the TestBench elements of various AbstractSingleSelects. Fixes #9494
* Refactor how DataCommunicator passes filters to its DataProvider (#8309)Leif Åstrand2017-01-251-4/+4
| | | | | | | The immediate benefit of this change is that ComboBox doesn't have to do any wrapping when a ListDataProvider is set. A secondary benefit is that a bunch of redundant type parameters and unsafe casts can be removed. This is one of many steps towards #8245
* Replace Listing with HasDataProvider and HasFilterableDataProvider (#8122)Leif Åstrand2017-01-131-6/+5
| | | | | | | | | | | | * Replace Listing with HasDataProvider and HasFilterableDataProvider The type parameters of the Listing interface does in practice mean that it isn't useful for anything. This patch replaces that interface with separate types for components that require filterable data providers and components that support any kind of data provider. The setItem methods are extracted to a common interface that is also directly implemented by AbstractListing.
* Include old value in ValueChangeEvent (#8229)Aleksi Hietanen2017-01-131-3/+9
| | | | * Include old value in ValueChangeEvent
* Correctly reset DataCommunicator when its DataProvider is changed (#8138)Aleksi Hietanen2017-01-101-3/+5
| | | | | | | | * Correctly reset DataCommunicator when its DataProvider is changed * Improve ReplaceDataProviderTest * Remove return type from AbstractListing.readItems
* Partial javadocs fix for vaadin-serverIlia Motornyi2017-01-021-9/+1
|
* Rename com.vaadin.server.data to com.vaadin.data.provider (#8004)Pekka Hyvönen2016-12-151-1/+1
| | | | | Renamed corresponding test packages too. Fixes vaadin/framework8-issues#110
* Remove usage of Consumer from event listeners (#7985)Pekka Hyvönen2016-12-141-9/+2
| | | | | | | | | | | | | Touched event listeners are: - SelectionListener - MultiSelectionListener - SingleSelectionListener - ValueChangeListener - ItemClickListener - BindingValidationStatusHandler - BinderValidationStatusHandler - StatusChangeListener Part of vaadin/framework8-issues#264
* Add a generic selection listener to Grid & SelectionModels (#105)Pekka Hyvönen2016-12-091-4/+4
| | | | | | | | * Add a generic selection listener to Grid & SelectionModels Fixes some inconsistent event naming and invalid javadocs. Fixes vaadin/framework8-issues#541
* Make it possible to reset single select valuesLeif Åstrand2016-11-291-0/+8
| | | Change-Id: I60c5d9f183d1955fbbd3341e3ac9f93aae755f80
* Add filter type to DataCommunicatorTeemu Suo-Anttila2016-11-281-1/+1
| | | | Change-Id: Id7948e2f81b6a9c593ce8b71bb3a61b578344af9
* Type Listing for DataProvider to allow custom filter typesTeemu Suo-Anttila2016-11-281-4/+7
| | | | | | | | | | Listing has been moved from AbstractListing to each individual Component. ComboBox is now typed to String filter. Fixes issues with declarative read of items. Change-Id: I6918f9f8c426dcbd81546150c2cf9ed49a02bf50
* Provide declarative support for listing components.Denis Anisimov2016-11-241-0/+66
| | | | | | | Fixes vaadin/framework8-issues#388 Change-Id: I4f8045bba51d308f4343a1f6d01b3f1ddca63e69
* Refactor listener registration creation to reduce boilerplateLeif Åstrand2016-11-231-6/+3
| | | | Change-Id: I9feaad000cb16351d281d1c0037330dfb76186ff
* Renaming DataSource -> DataProvider to avoid collisions with ↵elmot2016-11-111-2/+2
| | | | | | javax.sql.DataSource Change-Id: I6babcadc72f3f37feff98088eee23b153a080f11
* Remove HasValue from GridPekka Hyvönen2016-11-101-20/+8
| | | | | | | | | | | | | | | | | | | 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
* Create MultiSelect interface to replace Multi selection model.Denis Anisimov2016-11-041-183/+153
| | | | | | Fixes vaadin/framework8-issues#423 Change-Id: Ifd252b8feed323708a7ae73af2b836832570d192
* Make SelectionModel API only server side.Denis Anisimov2016-11-021-3/+3
| | | | | | | Client side doesn't use selection model anymore. Fixes vaadin/framework8-issues#421 Change-Id: If3ecb1c2f3a0024df9bfdfd182eaf8cf8625ac75
* Create SingleSelect semantic interface which extends HasValue.Denis Anisimov2016-11-021-1/+1
| | | | Change-Id: I132f814105ce97cf625e59f78731bea778ae2cfd
* Move setReadOnly from Component to HasValueTeemu Suo-Anttila2016-11-021-0/+10
| | | | Change-Id: Ib867b71cab4cf5cda89f272986930297b7a84ced
* Replace setRequired & HasRequired with setRequiredIndicatorPekka Hyvönen2016-11-011-2/+12
| | | | | | | | | | | Vaadin 7 compatiblity fields still use setRequired via AbstractField (legacy). Public setRequiredIndicator is added to AbstractField, AbstractMultiSelect and AbstractSingleSelect. Internally it is still handled on AbstractComponent & -Connector level. Changes the declarative syntax, required -> required-indicator-visible. Fixes vaadin/framework8-issue#419 Change-Id: I940dc66944d27584bd78e5452aee627ee3abd03a
* Update ValueChange API to use Component and HasValue<>.Denis Anisimov2016-10-251-12/+11
| | | | Change-Id: I785aa82d925cadee42cc1b17d345a8923f6dc8cc
* Derive Listing components from HasValue.Denis Anisimov2016-10-211-1/+46
| | | | | | | Single select components implement HasValue<T> and mutliselect components implements HasValue<Set<T>>. Change-Id: Ic280a43bf021efd7425cce04e75010b6745fd698
* Unify listeners on the server sideAleksi Hietanen2016-09-291-1/+0
| | | | | | | | | | | This patch updates server side add*Listener methods to return a registration object and deprecates their corresponding remove*Listener methods. Additionally this patch removes add/removeListener methods which were deprecated in 7.0. Change-Id: I26ac5f11882512288fbbf601c7cb2aaff653ec76
* Update @since tags for 8.0Henri Sara2016-09-141-1/+1
| | | | Change-Id: Iec8a81424e1cae9c3dc6c760732e0d48c4a38af2
* Convert ComboBox to inherit AbstractSingleSelectHenri Sara2016-09-141-16/+48
| | | | | | | ComboBoxState now inherits AbstractSingleSelectState, but still effectively communicates its selection via RPC. Change-Id: I47b6a73f275e0c4c63d70d2c2c8badc95a218157
* Implement support for binding single-select componentsJohannes Dahlström2016-09-141-0/+11
| | | | Change-Id: I340e802e5c8e6e036b54f81ec46beeb5e1c34329
* Add AbstractSingleSelection base classJohannes Dahlström2016-09-121-29/+129
| | | | | | | | Uses RPC for client-to-server but leaves server-to-client to implementation. SimpleSingleSelection uses shared state; lazy-loading implementations to pass selection info along with item data. Change-Id: I97c1dfa28eee39aef43eabbfbac56cd83fa5747c
* Add a simple non-connector single selection modelJohannes Dahlström2016-09-121-0/+166
To eventually replace SingleSelection. Change-Id: I623dfa962bce62067a5b35dc14be26b3de333e9b