aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/ui/AbstractMultiSelect.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.
* Enable Maven plugin for Eclipse formatting (#10829)Ilia Motornyi2018-04-191-2/+2
|
* Update copyright year (#10761)Ilia Motornyi2018-03-271-1/+1
|
* Correctly handle data providers with overriden getId (#10728)Anastasia Smirnova2018-03-221-4/+33
| | | | | Fixes #10647 Fixes #10498
* 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.
* Add item description to RadioButtonGroup and CheckBoxGroup (#9841)Teemu Suo-Anttila2017-08-231-1/+1
|
* Add default getEmptyValue for MultiSelect interface (#8420) (#8421)8.0.0.beta2caalador2017-02-021-5/+0
| | | | | | | * Add deafult getEmptyValue for MultiSelect interface (#8420) Added an default implementation for getEmptyValue to the MultiSelect interface.
* Add APIs to inform components of stale objects in DataProvider (#8271)Teemu Suo-Anttila2017-01-251-7/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add DataProvider refreshItem for single item update * Add 'id' concept for DataProviders This patch also adds a simplified data provider that can replace items based on their id. This can be used to simulate stale objects from an actual backend. * Add refresh logic to Grid SelectionModels * Remove broken equals and hashCode * Refresh KeyMapper, clean up some methods * Fix UI.access in test * Fix tests and Grid single selection model * Do clean up before replacing data provider * Check correct variable for null value * Fix other selects, add generic tests * Code style fixes, removed assert * Merge remote-tracking branch 'origin/master' into 286_refresh_items * Fix documentation for refreshing an item * Improve introduction chapter, minor clarifications * Merge remote-tracking branch 'origin/master' into 287_refresh_items * Add missing parameters in unit tests
* Replace Listing with HasDataProvider and HasFilterableDataProvider (#8122)Leif Åstrand2017-01-131-4/+3
| | | | | | | | | | | | * 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-1/+2
| | | | * Include old value in ValueChangeEvent
* Correctly reset DataCommunicator when its DataProvider is changed (#8138)Aleksi Hietanen2017-01-101-3/+11
| | | | | | | | * 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-5/+4
|
* 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
* Introduce dedicated shared states for every core vaadin component/ext. (#98)Denis2016-12-081-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Introduce dedicated shared states for every core vaadin component/ext. Updated components are: - PasswordField - CustomField - AbstractListing - AbstractMultiSelect - ColorPicker - ColorPickerArea - DataCommunicator - Responsive - AbstractListingExtension - DetailsManager - AbstractRenderer - ClickableRenderer - ButtonRenderer - CheckBoxRenderer - DateRenderer - HtmlRenderer - ImageRenderer - NumberRenderer - ProgressBarRenderer - TextRenderer Fixes vaadin/framework8-issues#480.
* Type Listing for DataProvider to allow custom filter typesTeemu Suo-Anttila2016-11-281-4/+6
| | | | | | | | | | 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-64/+70
| | | | | | | Fixes vaadin/framework8-issues#388 Change-Id: I4f8045bba51d308f4343a1f6d01b3f1ddca63e69
* Refactor listener registration creation to reduce boilerplateLeif Åstrand2016-11-231-2/+1
| | | | Change-Id: I9feaad000cb16351d281d1c0037330dfb76186ff
* Renaming DataSource -> DataProvider to avoid collisions with ↵elmot2016-11-111-1/+1
| | | | | | javax.sql.DataSource Change-Id: I6babcadc72f3f37feff98088eee23b153a080f11
* Create MultiSelect interface to replace Multi selection model.Denis Anisimov2016-11-041-155/+125
| | | | | | Fixes vaadin/framework8-issues#423 Change-Id: Ifd252b8feed323708a7ae73af2b836832570d192
* Make SelectionModel API only server side.Denis Anisimov2016-11-021-2/+2
| | | | | | | Client side doesn't use selection model anymore. Fixes vaadin/framework8-issues#421 Change-Id: If3ecb1c2f3a0024df9bfdfd182eaf8cf8625ac75
* Clean up state hierarchy for AbstractFieldStateTeemu Suo-Anttila2016-11-021-5/+5
| | | | Change-Id: I33c8c977bf8cd2d4c637d7988586496ce963465f
* Move setReadOnly from Component to HasValueTeemu Suo-Anttila2016-11-021-1/+10
| | | | Change-Id: Ib867b71cab4cf5cda89f272986930297b7a84ced
* Replace setRequired & HasRequired with setRequiredIndicatorPekka Hyvönen2016-11-011-0/+21
| | | | | | | | | | | 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
* Fix setValue() methods behavior null argument value + javadocsTeemu Suo-Anttila2016-10-251-1/+1
| | | | Change-Id: I0000c1caf7c129634473161fe4876931f3c8dabf
* Update ValueChange API to use Component and HasValue<>.Denis Anisimov2016-10-251-5/+4
| | | | Change-Id: I785aa82d925cadee42cc1b17d345a8923f6dc8cc
* Correct serializable issues and test that components can be serializedLeif Åstrand2016-10-241-6/+8
| | | | Change-Id: Iac8f0f48806c0a7c3030bd406e2e533104f26753
* Initial support for null representations in BinderTeemu Suo-Anttila2016-10-241-2/+7
| | | | Change-Id: If40bfa28764d1399b5ed4d5928988560e9989dce
* Derive Listing components from HasValue.Denis Anisimov2016-10-211-1/+64
| | | | | | | 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-2/+1
| | | | | | | | | | | 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
* Fix item caption generators in RadioButton/CheckBoxGroupAleksi Hietanen2016-09-291-4/+9
| | | | | | | | | | This patch corrects the behavior of setting caption generators that may return null. Additionally renames RadioButtonGroup's ItemIconProviders to generators, unifying it with other select components. Change-Id: I5e8491834dccce1c37ab9c2002acc475e8945f4b
* TwinColSelect with new databinding APIPekka Hyvönen2016-09-271-2/+338
| | | | | | | | | | | | | | | | Removes feature for adding new items. Introduces a AbstractMultiSelect-abstraction layer, which is used in server side by TwinColSelect & CheckBoxGroup and on client side only TwinColSelect for now. Plan is to use it for ListSelect too. Further improvement would be to make AbstractMultiSelect use SelectionModel that extends AbstractSelectionModel and is thus used as an extension both as client & server side. Updates to JUnit 4.12 for easier use of @Parameterized test.. Change-Id: I64258c2229b9514d382693748e2ca562a1e448d4
* Implement support for binding multi-select componentsLeif Åstrand2016-09-141-0/+66
Also updates ComponentTest.getRpcProxy to use an approach that doesn't require the component to be attached to a UI. Change-Id: Iab4603a7818cd0fd2a3410660b90a2a839fb8a76