aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Correctly test for mutually comparable types (#8598)Leif Åstrand2017-02-211-0/+7
|
* Provide explicit locale in GridTest (#8525)Ilia Motornyi2017-02-141-1/+4
| | | Fixes #8524
* Use column id as the default sort order property (#8529)Leif Åstrand2017-02-101-0/+35
|
* Binding a null bean should clear the bound field values (#8288)caalador2017-02-091-24/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add clear field values #8287 Added functionality to make it possible to clear bound field values manually or when setting a null bean to binder. Binder will now clear bound fields for setBean(null) or if using readBean() functionality when calling the clear() method. Binder.clear() will throw a IllegalStateException if we have a bound bean. * MultiSelectionModel MultiSelect should implement emptyValue * Removing public clear() method and clearing field values only through setBean(null) and readBean(null) to be consistent and not have confusing functionality. * Simplified clearFields() as we don't need to check if field is readOnly * Document in removeBean JavaDoc that it will also clear the bound fields if we have a bean the is removed. * Binder should not have changes after clearing fields. * Add getEmptyValue as default to MultiSelect. Multiselect default for empty value should be an empty set. * Revert "Add getEmptyValue as default to MultiSelect." This reverts commit 45de8f45c4a1e3e45ab8a0353ab2a48bb4f1be6f. * Merge branch 'master' into issue/8287_Clear_bound_fields * Remove override for default implementation. * Fire status change event on clearFields if we had changes before clearing. * Formatting.
* Add addComponentsAndExpand to horizontal and vertical layout (#8480)Leif Åstrand2017-02-082-0/+138
|
* Allow configuring how string to number converters handle empty strings (#8506)Leif Åstrand2017-02-087-7/+74
|
* Provide a convenience method to get items set via setItems(). Denis2017-02-082-0/+16
| | | Fixes #8357
* Provide a way to configure bean binder to auto set required fields (#8460)Denis2017-02-082-0/+200
| | | | | | @NotNull, @Size(min>1), @NotEmpty annotations are handled via default configuration which marks fields as required. Fixes #8382
* Throw if there are no automatically bound fields via bindInstanceFields. (#8481)Denis2017-02-081-6/+38
| | | | | | * Throw if there are no automatically bound fields via bindInstanceFields. Fixes #8362
* Add Grid.addColumn(String, Renderer) (#8470)Leif Åstrand2017-02-071-0/+26
| | | | * Add Grid.addColumn(String, Renderer)
* Make one-arg addColumn use natural sort for mutually comparable values (#8458)Leif Åstrand2017-02-072-2/+96
| | | | Fixes #8371 Fixes #8128
* Add isValid to Binder (#8274)Aleksi Hietanen2017-02-032-2/+79
| | | | | | | | | | | | | | | * Add isValid to Binder isValid enables you to check the current validation status of a given Binder, without firing events or invoking handlers. This patch also clarifies the javadocs of StatusChangeEvents' hasValidationErrors. * Throw in Binder.isValid if no bean is set and bean validators exist * Add test cases to BinderTest
* Add selection methods to grid that delegate to its selection model (#8315)Aleksi Hietanen2017-02-031-0/+55
| | | | | | | | * Add selection methods to grid that delegate to the selection model * Merge remote-tracking branch 'github/master' into 577-alt * Remove getFirstSelected, isSelected
* Add Grid editor events. (#8365)Denis2017-02-021-0/+165
| | | | | | | | | | * Migrate v7 Grid tests. Next round. Fixes #8419 * Add Grid editor events. Fixes #8202.
* Add helpers for dealing with columns based on its id (#8411)Leif Åstrand2017-02-023-11/+287
| | | | | | | | | * Add helpers for dealing with columns based on its id setColumns(Column...) is removed since it's not possible to re-add a removed column instance. Fixes #8361
* Make it easy to invoke ServerRpc methods as part of unit tests (#8346)Artur2017-02-027-38/+18
| | | | | Executing RPC methods is useful when testing component interaction with the server. Not only inside the framework but also when creating add-ons and applications.
* Make Grid add columns based on bean properties (#8392)Leif Åstrand2017-02-014-27/+120
| | | | | | | | | * Make Grid add columns based on bean properties The property set concept used for Binder is slightly generalized and used by Grid as well to support similar functionality. Fixes vaadin/framework8-issues#250
* Introduce Binder.addFialdValueChangeListener (#8273)Denis2017-02-011-0/+167
| | | Fixes #8273
* Add a maven plugin for formatting according to Eclipse settingsLeif Åstrand2017-02-018-70/+47
| | | | | Running formatter:format will format all files in a submodule using an embedded Eclipse compiler (based on Neon SR1) according to the regular formatting settings file.
* Refactor editor API to use Binding instead of a component generator (#8368)Leif Åstrand2017-01-311-1/+2
| | | Fixes #8366
* Fix userOriginated state for CheckBox ValueChangeEvent from the user (#8383)Artur2017-01-301-0/+42
| | | | * Fix userOriginated state for CheckBox ValueChangeEvent from the user
* Fix NPE when grid is sorted by column with null values Ilia Motornyi2017-01-301-0/+147
| | | | | Fixes #8282
* Add convenience constructors to new components (#598) (#8351)caalador2017-01-307-0/+541
| | | | | | Add convenience constructors (#598) Added convenience constructors to ui components that have been reimplemented for Vaadin 8
* Add regression tests for HasValue.getOptionalValue (#8352)Leif Åstrand2017-01-281-0/+44
|
* Introduce empty selection functionality for NativeSelect. (#8336)Denis2017-01-272-2/+26
| | | | | | * Introduce empty selection functionality for NativeSelect. Fixes vaadin/framework8-issues#545
* Add convenience constructors for TextField (#597) (#8341)caalador2017-01-271-0/+70
| | | | | | | Add convenience constructors for TextField (#597) Added TextField convenience constructors similar to the ones found in Vaadin framework 7
* Implement GridSortOrder and SortOrderBuilders (#8338)Aleksi Hietanen2017-01-273-15/+82
|
* Extract Bean validation logic from Binder to BeanValidationBinderDenis2017-01-253-8/+9
| | | Fixes #8253
* Add APIs to inform components of stale objects in DataProvider (#8271)Teemu Suo-Anttila2017-01-259-5/+471
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Refactor how DataCommunicator passes filters to its DataProvider (#8309)Leif Åstrand2017-01-253-17/+58
| | | | | | | 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
* Use non-Generic SortOrder in Query. (#8239)Denis2017-01-254-14/+9
| | | | | | * Use non-Generic SortOrder in Query. Fixes #8215
* Allow distinct configurable filter and wrapped filter types (#8322)Leif Åstrand2017-01-251-10/+16
| | | | | | | | | | * Allow distinct configurable filter and wrapped filter types This enables implementing the use case that was already described towards the end of datamodel-providers.asciidoc. Also swaps the order of the callback type parameters to make all three match the order of the ConfigurableFilterDataProvider type parameters.
* Add static helpers for creating callback data providers (#8314)Leif Åstrand2017-01-256-23/+28
| | | | | Cannot overload the same create method for this purpose since it conflicts with T... overload. Each case is instead given its own descriptive but still discoverable method name.
* Make BeanBinderPropertySet exclude Object properties (#8306)Leif Åstrand2017-01-241-0/+16
| | | | * Make BeanBinderPropertySet exclude Object properties
* Unify container wrapping (#8312)Leif Åstrand2017-01-242-3/+3
| | | | | | | | * Method names unified to withXyzFilter * withConfigurableFilter moved to DataProvider * Remove DataProviderWrapper.convert since it does the same as DataProvider.withConvertedFilter * Make javadocs slightly more consistent * Make type parameters consistent
* Use getFirstSelectedItem() instead of getFirstSelected(). (#8308)Denis2017-01-242-12/+12
| | | | | | * Use getFirstSelectedItem() instead of getFirstSelected(). Fixes vaadin/framework8-issues#596
* Fix BeanBinderPropertySet to not deserialize into multiple instances (#8305)Leif Åstrand2017-01-232-13/+71
| | | | * Fix BeanBinderPropertySet to not deserialize into multiple instances
* Add shorthands to ComboBox for setting a ListDataProviderLeif Åstrand2017-01-231-9/+35
|
* Remove outdated filtering concepts (#8289)Leif Åstrand2017-01-232-64/+4
| | | | | | | | | | | | | * Remove outdated filtering concepts withFilter is removed since filters are supposed to be set as state in the data provider instead of by wrapping. AppendabileFilterDataProvider is removed since the data provider is supposed to do any appending when updating its own state instead of through wrapping. This is one of many steps towards #8245
* Add ListDataProvider shorthands for filter conversion (#8279)Leif Åstrand2017-01-222-0/+52
| | | | | Also updates ComboBox.setItems to use these new shorthands This is one of many steps towards #8245
* Add a data provider wrapper with a configurable filter (#8280)Leif Åstrand2017-01-202-17/+121
| | | | | | * Add a data provider wrapper with a configurable filter This is one of many steps towards #8245
* Overload AbstarctComponent.setDescription() with content mode parameter (#8252)Denis2017-01-208-8/+8
| | | | | | * Overload AbstarctComponent.setDescription() with content mode parameter Fixes #8185
* Introduce DateTimeFile and InlineDateTimeField. (#8218)Denis2017-01-196-2/+348
| | | | | | | | | | * Introduce DateTimeFile and InlineDateTimeField. Fixes #8132 * Correct and provide declarative tests. * Provide a date converter and UI tests.
* Change BackEndDataProvider into an interface (#8268)Leif Åstrand2017-01-194-10/+9
| | | | | | | | | | | | | | | | * Change BackEndDataProvider into an interface BackEndDataProvider is now an interface with methods for setting sorting options based on SortOrder instances. AbstractBackEndDataProvider stores sorting options, combines them with the sorting provided in the query and invokes its own abstract fetch and size methods. CallbackDataProvider implements a BackEndDataProvider based on two lambdas. This is one of many steps towards #8245
* Allow setting filters directly in ListDataProvider (#8267)Leif Åstrand2017-01-192-0/+116
| | | | | | * Allow setting filters directly in ListDataProvider This is one of many steps towards #8245
* Make data providers statefull with regards to default sort orders (#8247)Leif Åstrand2017-01-174-121/+83
| | | | | | * Make data providers statefull with regards to default sort orders This is one of many steps towards #8245
* Introduce Binder.setReadOnly() (#8241)Denis2017-01-161-0/+63
| | | Closes #8232
* Replace Listing with HasDataProvider and HasFilterableDataProvider (#8122)Leif Åstrand2017-01-136-17/+34
| | | | | | | | | | | | * 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-135-4/+65
| | | | * Include old value in ValueChangeEvent
* Make server tests use fixed locale where needed (#8226)Henri Sara2017-01-124-5/+13
|