]> source.dussan.org Git - vaadin-framework.git/log
vaadin-framework.git
7 years agoExtract data provider callbacks to named and documented interfaces (#8508)
Leif Åstrand [Wed, 8 Feb 2017 13:27:37 +0000 (15:27 +0200)]
Extract data provider callbacks to named and documented interfaces (#8508)

Fixes #8488

7 years agoProvide a way to set styles for Header/Footer Cells and Rows in a Grid (#8499)
Denis [Wed, 8 Feb 2017 12:55:11 +0000 (14:55 +0200)]
Provide a way to set styles for Header/Footer Cells and Rows in a Grid (#8499)

Fixes #8422

7 years agoFix removing and adding a column in grid (#8437)
caalador [Wed, 8 Feb 2017 12:54:57 +0000 (14:54 +0200)]
Fix removing and adding a column in grid (#8437)

* Added column should also be added to footer (#590)

When adding (readding) a column the column should also be
added to footer as it will be removed and iterator will request footer for it.

* Add test for re-add column (#590)

* To lowerCase using Locale

* Fixed compilation problem.
Too little sleep for a friday evening...

7 years agoDocument BeanValidationBinder and RequiredFieldConfigurator. (#8504)
Denis [Wed, 8 Feb 2017 12:32:50 +0000 (14:32 +0200)]
Document BeanValidationBinder and RequiredFieldConfigurator. (#8504)

This patch also provides a documentation for #8382.

Fixes #8390

7 years agoProvide a way to configure bean binder to auto set required fields (#8460)
Denis [Wed, 8 Feb 2017 12:32:09 +0000 (14:32 +0200)]
Provide a way to configure bean binder to auto set required fields (#8460)

@NotNull, @Size(min>1), @NotEmpty annotations are handled via default
configuration which marks fields as required.

Fixes #8382

7 years agoAdd javadoc explanation about how to create serializable comparators (#8505)
Leif Åstrand [Wed, 8 Feb 2017 12:14:00 +0000 (14:14 +0200)]
Add javadoc explanation about how to create serializable comparators (#8505)

Also removes the confusing SerializableComparator.asInstance method that
was mainly introduced for internal use.

Fixes #8367

7 years agoFix profiles in vaadin-root pom.xml (#8484)
Teemu Suo-Anttila [Wed, 8 Feb 2017 11:46:29 +0000 (13:46 +0200)]
Fix profiles in vaadin-root pom.xml (#8484)

7 years agoFix keyboard navigation for ListSelect (#8503)
caalador [Wed, 8 Feb 2017 11:04:12 +0000 (13:04 +0200)]
Fix keyboard navigation for ListSelect (#8503)

Fixes vaadin/framework8-issues#463

7 years agoThrow if there are no automatically bound fields via bindInstanceFields. (#8481)
Denis [Wed, 8 Feb 2017 07:43:34 +0000 (09:43 +0200)]
Throw if there are no automatically bound fields via bindInstanceFields. (#8481)

* Throw if there are no automatically bound fields via bindInstanceFields.

Fixes #8362

7 years agoAdd Grid.addColumn(String, Renderer) (#8470)
Leif Åstrand [Tue, 7 Feb 2017 13:33:20 +0000 (15:33 +0200)]
Add Grid.addColumn(String, Renderer) (#8470)

* Add Grid.addColumn(String, Renderer)

7 years agoFix toggling of WeekNumbers for DateTimeField. (#8468)
caalador [Tue, 7 Feb 2017 13:31:05 +0000 (15:31 +0200)]
Fix toggling of WeekNumbers for DateTimeField. (#8468)

Fixes  #8405

7 years agoAdded missing parametrisation onto the column field of the GridContextClickEvent...
SomeoneToIgnore [Tue, 7 Feb 2017 10:32:56 +0000 (13:32 +0300)]
Added missing parametrisation onto the column field of the GridContextClickEvent. (#8473)

* Added missing parametrisation onto the column field of the GridContextClickEvent.

7 years agoMention removed ThreadLocal.setInheritable in release notes (#8466)
Leif Åstrand [Tue, 7 Feb 2017 08:22:44 +0000 (10:22 +0200)]
Mention removed ThreadLocal.setInheritable in release notes (#8466)

Fixes vaadin/framework8-issues#594

7 years agoUse thread-safe collections for VaadinService listeners (#7037)
Leif Åstrand [Tue, 7 Feb 2017 08:07:07 +0000 (10:07 +0200)]
Use thread-safe collections for VaadinService listeners (#7037)

Fixes #7250

7 years agoMake one-arg addColumn use natural sort for mutually comparable values (#8458)
Leif Åstrand [Tue, 7 Feb 2017 07:48:33 +0000 (09:48 +0200)]
Make one-arg addColumn use natural sort for mutually comparable values (#8458)

Fixes #8371
Fixes #8128

7 years agoAdd missing ScreenshotRule to Spring integration test (#8455)
Teemu Suo-Anttila [Mon, 6 Feb 2017 14:20:46 +0000 (16:20 +0200)]
Add missing ScreenshotRule to Spring integration test (#8455)

7 years agoFix problem with re-opening the popup (#8446) (#8451)
caalador [Mon, 6 Feb 2017 12:55:14 +0000 (14:55 +0200)]
Fix problem with re-opening the popup (#8446) (#8451)

* Fix problem with re-opening the popup (#8446)

Fixed problem that disables opening of popup
after closing it by clicking the datefield-button.

* Fix issue #8446 in compatibility version PopupDateField also.

7 years agoAdd screenshots and workaround for Firefox 45 (#8450)
Henri Sara [Mon, 6 Feb 2017 10:36:14 +0000 (12:36 +0200)]
Add screenshots and workaround for Firefox 45 (#8450)

7 years agoAdd Firefox 45 workaround in ComboBoxElement (#8449)
Henri Sara [Mon, 6 Feb 2017 10:06:35 +0000 (12:06 +0200)]
Add Firefox 45 workaround in ComboBoxElement (#8449)

7 years agoDisable test method on which build got stuck. (#8445)
Henri Sara [Sat, 4 Feb 2017 18:23:10 +0000 (20:23 +0200)]
Disable test method on which build got stuck. (#8445)

7 years agoFix JBoss 6 integration tests
Ilia Motornyi [Fri, 3 Feb 2017 15:28:07 +0000 (17:28 +0200)]
Fix JBoss 6 integration tests

7 years agoAdd Firefox 45 screenshots (#8438)
Henri Sara [Fri, 3 Feb 2017 13:54:45 +0000 (15:54 +0200)]
Add Firefox 45 screenshots (#8438)

7 years agoFix exception on remove column. (#8432)
caalador [Fri, 3 Feb 2017 11:59:24 +0000 (13:59 +0200)]
Fix exception on remove column. (#8432)

Schedule column ordering so that possible onUnregister methods get run first.

7 years agoUpdate ValoThemeTest screenshots (#8431)
Henri Sara [Fri, 3 Feb 2017 11:43:08 +0000 (13:43 +0200)]
Update ValoThemeTest screenshots (#8431)

7 years agoAdd isValid to Binder (#8274)
Aleksi Hietanen [Fri, 3 Feb 2017 11:40:54 +0000 (13:40 +0200)]
Add isValid to Binder (#8274)

* 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

7 years agoAdd selection methods to grid that delegate to its selection model (#8315)
Aleksi Hietanen [Fri, 3 Feb 2017 11:27:51 +0000 (13:27 +0200)]
Add selection methods to grid that delegate to its selection model (#8315)

* Add selection methods to grid that delegate to the selection model

* Merge remote-tracking branch 'github/master' into 577-alt

* Remove getFirstSelected, isSelected

7 years agoFix absolute layout component resize test (#8429)
caalador [Fri, 3 Feb 2017 11:18:54 +0000 (13:18 +0200)]
Fix absolute layout component resize test (#8429)

Fix test checking for left:auto by testing the actual wrapper width
that should change.

7 years agoFix some broken tests and ComboBoxElement (#8430)
Henri Sara [Fri, 3 Feb 2017 11:15:13 +0000 (13:15 +0200)]
Fix some broken tests and ComboBoxElement (#8430)

7 years agoRun tests on Firefox 45 (#8428)
Artur [Fri, 3 Feb 2017 07:41:35 +0000 (09:41 +0200)]
Run tests on Firefox 45 (#8428)

* Run tests on Firefox 45

7 years agoAdd Grid editor events. (#8365)
Denis [Thu, 2 Feb 2017 20:07:21 +0000 (22:07 +0200)]
Add Grid editor events. (#8365)

* Migrate v7 Grid tests. Next round.

Fixes #8419

* Add Grid editor events.

Fixes #8202.

7 years agoAdd default getEmptyValue for MultiSelect interface (#8420) (#8421) 8.0.0.beta2
caalador [Thu, 2 Feb 2017 12:39:52 +0000 (14:39 +0200)]
Add default getEmptyValue for MultiSelect interface (#8420) (#8421)

* Add deafult getEmptyValue for MultiSelect interface (#8420)

Added an default implementation for getEmptyValue to the
MultiSelect interface.

7 years agoTypo fix; screenshots update.
Ilia Motornyi [Thu, 2 Feb 2017 12:23:26 +0000 (14:23 +0200)]
Typo fix; screenshots update.

7 years agoAdd header required by docs site (#8425)
Artur [Thu, 2 Feb 2017 12:02:09 +0000 (14:02 +0200)]
Add header required by docs site (#8425)

* Add header required by docs site

7 years agoAdd scrollTo methods to Grid (#8203) (#8410)
caalador [Thu, 2 Feb 2017 12:01:19 +0000 (14:01 +0200)]
Add scrollTo methods to Grid (#8203) (#8410)

* Add scroll methods to serverside grid (#8203)

Added scrollToTop(), scrollToEnd() and scrollTo(int row)

* Fix scrolling to view of opened details (#8203)

Removed dependency for DetailsManagerConnector from GridConnector.
GridConnector now handles one off listeners.

* Rename detailsRefresh to better show that it's one-off.
Add missing copyright header.

7 years agoGrid tests migration. Next round. (#8412)
Denis [Thu, 2 Feb 2017 10:50:09 +0000 (12:50 +0200)]
Grid tests migration. Next round. (#8412)

* Grid tests migration. Next round.

Fixes #8373

7 years agoHandle system properties for failsafe plugin (#8414)
Teemu Suo-Anttila [Thu, 2 Feb 2017 10:48:02 +0000 (12:48 +0200)]
Handle system properties for failsafe plugin (#8414)

* Handle system properties for failsafe plugin

7 years agoAdd helpers for dealing with columns based on its id (#8411)
Leif Åstrand [Thu, 2 Feb 2017 10:33:57 +0000 (12:33 +0200)]
Add helpers for dealing with columns based on its id (#8411)

* 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

7 years agoMake it easy to invoke ServerRpc methods as part of unit tests (#8346)
Artur [Thu, 2 Feb 2017 07:28:33 +0000 (09:28 +0200)]
Make it easy to invoke ServerRpc methods as part of unit tests (#8346)

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.

7 years agoRequire Maven 3.1 or newer for uitest (#8418)
Pekka Hyvönen [Thu, 2 Feb 2017 07:22:41 +0000 (09:22 +0200)]
Require Maven 3.1 or newer for uitest (#8418)

7 years agoReplace FontAwesome with Vaadin Icons (#8208)
Pekka Hyvönen [Wed, 1 Feb 2017 17:13:08 +0000 (19:13 +0200)]
Replace FontAwesome with Vaadin Icons (#8208)

* Include FontAwesome by default for easier migration
* Fix JSComponentLoadingIndicatorTest

Fixes #7979
Addresses part of #8219

7 years agoRefactor testing of the framework (#8393)
Teemu Suo-Anttila [Wed, 1 Feb 2017 15:17:15 +0000 (17:17 +0200)]
Refactor testing of the framework (#8393)

* Integration tests moved from uitest to separate test modules
* Run TB4 tests with maven profile
* Remove old ant/ivy build scripts from uitest
* Add 'needs-ssh' test category for reconnection test
* Add default values for testing and validation builds
* Add placeholder build.xml with instructions to run Maven

7 years agoUpdate release notes for 8.0.0.beta2 (#8402)
Pekka Hyvönen [Wed, 1 Feb 2017 14:49:36 +0000 (16:49 +0200)]
Update release notes for 8.0.0.beta2 (#8402)

* Update release notes for 8.0.0.beta2

7 years agoMake Grid add columns based on bean properties (#8392)
Leif Åstrand [Wed, 1 Feb 2017 13:30:57 +0000 (15:30 +0200)]
Make Grid add columns based on bean properties (#8392)

* 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

7 years agoIntroduce Binder.addFialdValueChangeListener (#8273)
Denis [Wed, 1 Feb 2017 13:28:40 +0000 (15:28 +0200)]
Introduce Binder.addFialdValueChangeListener (#8273)

Fixes #8273

7 years agoAdd a maven plugin for formatting according to Eclipse settings
Leif Åstrand [Wed, 1 Feb 2017 09:09:04 +0000 (11:09 +0200)]
Add a maven plugin for formatting according to Eclipse settings

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.

7 years agoRevert widget-set-testutil parent change (#8404)
Teemu Suo-Anttila [Tue, 31 Jan 2017 20:04:07 +0000 (22:04 +0200)]
Revert widget-set-testutil parent change (#8404)

* Revert widget-set-testutil parent change

7 years agoAdd test for compiling a widgetset that inherits Vaadin7WidgetSet (#8403)
Teemu Suo-Anttila [Tue, 31 Jan 2017 20:03:59 +0000 (22:03 +0200)]
Add test for compiling a widgetset that inherits Vaadin7WidgetSet (#8403)

* Add test for compiling a widgetset that inherits Vaadin7WidgetSet

* Remove unnecessary dependency management block

* Minor style fixes

7 years agoFix documentation examples
Ilia Motornyi [Tue, 31 Jan 2017 11:49:15 +0000 (13:49 +0200)]
Fix documentation examples

7 years agoAdd styling to the unsupported browser page (#570) (#8354)
caalador [Tue, 31 Jan 2017 11:25:44 +0000 (13:25 +0200)]
Add styling to the unsupported browser page (#570) (#8354)

7 years agoPatameterize the ValueChangeListeners for rebuilt fields (#8369) (#8388)
caalador [Tue, 31 Jan 2017 07:16:19 +0000 (09:16 +0200)]
Patameterize the ValueChangeListeners for rebuilt fields (#8369) (#8388)

* Patameterize the ValueChangeListeners for rebuilt fields (#8369)

Listeners are now defined with the correct type parameter for
each field type so the event.getValue() is what one would expect.

7 years agoRefactor editor API to use Binding instead of a component generator (#8368)
Leif Åstrand [Tue, 31 Jan 2017 07:15:50 +0000 (09:15 +0200)]
Refactor editor API to use Binding instead of a component generator (#8368)

Fixes #8366

7 years agoFix userOriginated state for CheckBox ValueChangeEvent from the user (#8383)
Artur [Mon, 30 Jan 2017 21:34:06 +0000 (23:34 +0200)]
Fix userOriginated state for CheckBox ValueChangeEvent from the user (#8383)

* Fix userOriginated state for CheckBox ValueChangeEvent from the user

7 years agoMake compatibility aliases for isRequiredIndicatorVisible() (#8372)
Denis [Mon, 30 Jan 2017 18:44:18 +0000 (20:44 +0200)]
Make compatibility aliases for isRequiredIndicatorVisible() (#8372)

* Make compatibility aliases for isRequiredIndicatorVisible()

Fixes #8337

7 years agoIncrease threshold in server side performance test for stability (#8370)
Henri Sara [Mon, 30 Jan 2017 14:29:15 +0000 (16:29 +0200)]
Increase threshold in server side performance test for stability (#8370)

7 years agoAdd reference to Column.setId in javadocs of methods accepting col ids (#8360)
Leif Åstrand [Mon, 30 Jan 2017 13:25:38 +0000 (15:25 +0200)]
Add reference to Column.setId in javadocs of methods accepting col ids (#8360)

7 years agoFix NPE when grid is sorted by column with null values
Ilia Motornyi [Mon, 30 Jan 2017 12:03:43 +0000 (14:03 +0200)]
Fix NPE when grid is sorted by column with null values
Fixes #8282

7 years agoAdd convenience constructors to new components (#598) (#8351)
caalador [Mon, 30 Jan 2017 06:16:44 +0000 (08:16 +0200)]
Add convenience constructors to new components (#598) (#8351)

Add convenience constructors (#598)

Added convenience constructors to ui components that have
been reimplemented for Vaadin 8

7 years agoAdd regression tests for HasValue.getOptionalValue (#8352)
Leif Åstrand [Sat, 28 Jan 2017 13:06:40 +0000 (15:06 +0200)]
Add regression tests for HasValue.getOptionalValue (#8352)

7 years agoIntroduce empty selection functionality for NativeSelect. (#8336)
Denis [Fri, 27 Jan 2017 13:44:03 +0000 (15:44 +0200)]
Introduce empty selection functionality for NativeSelect. (#8336)

* Introduce empty selection functionality for NativeSelect.

Fixes vaadin/framework8-issues#545

7 years agoAllow to disable user selection in the grid model. (#8345)
Denis [Fri, 27 Jan 2017 11:13:58 +0000 (13:13 +0200)]
Allow to disable user selection in the grid model. (#8345)

* Allow to disable user selection in the grid model.

Fixes vaadin/framework8-issues#546

7 years agoAdd a default getOptionalValue() to HasValue (#8324)
Giovanni Lovato [Fri, 27 Jan 2017 10:35:17 +0000 (11:35 +0100)]
Add a default getOptionalValue() to HasValue (#8324)

Fixes #8323

7 years agoAdd convenience constructors for TextField (#597) (#8341)
caalador [Fri, 27 Jan 2017 07:12:03 +0000 (09:12 +0200)]
Add convenience constructors for TextField (#597) (#8341)

Add convenience constructors for TextField (#597)

Added TextField convenience constructors similar to the
ones found in Vaadin framework 7

7 years agoImplement GridSortOrder and SortOrderBuilders (#8338)
Aleksi Hietanen [Fri, 27 Jan 2017 07:07:29 +0000 (09:07 +0200)]
Implement GridSortOrder and SortOrderBuilders (#8338)

7 years agoJspIntegrationTest as a separate module (#8228)
Ilia Motornyi [Thu, 26 Jan 2017 14:27:54 +0000 (16:27 +0200)]
JspIntegrationTest as a separate module (#8228)

Part of vaadin/framework8-issues#539

7 years agoFix some faulty javaDoc names
caalador [Thu, 26 Jan 2017 07:43:41 +0000 (09:43 +0200)]
Fix some faulty javaDoc names

7 years agoExtract Bean validation logic from Binder to BeanValidationBinder
Denis [Wed, 25 Jan 2017 14:34:02 +0000 (16:34 +0200)]
Extract Bean validation logic from Binder to BeanValidationBinder

Fixes #8253

7 years agoUpdate @HtmlImport javadoc to match implementation (#8331)
Artur [Wed, 25 Jan 2017 13:52:11 +0000 (15:52 +0200)]
Update @HtmlImport javadoc to match implementation (#8331)

7 years agoShow unsupported browser page for FF version less than 45. (#8328)
Denis [Wed, 25 Jan 2017 12:34:38 +0000 (14:34 +0200)]
Show unsupported browser page for FF version less than 45. (#8328)

Fixes vaadin/framework8-issues#569

7 years agoAdd APIs to inform components of stale objects in DataProvider (#8271)
Teemu Suo-Anttila [Wed, 25 Jan 2017 10:27:44 +0000 (12:27 +0200)]
Add APIs to inform components of stale objects in DataProvider (#8271)

* 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

7 years agoSupport loading of HTML imports using @HtmlImport (#8301)
Artur [Wed, 25 Jan 2017 09:27:49 +0000 (11:27 +0200)]
Support loading of HTML imports using @HtmlImport (#8301)

Note that not all browsers yet support HTML imports. If a polyfill
is needed to load HTML imports, it must be loaded before HTML Imports
can be loaded. There is no automatic loading of any polyfills.

7 years agoRefactor how DataCommunicator passes filters to its DataProvider (#8309)
Leif Åstrand [Wed, 25 Jan 2017 07:44:16 +0000 (09:44 +0200)]
Refactor how DataCommunicator passes filters to its DataProvider (#8309)

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

7 years agoUse non-Generic SortOrder in Query. (#8239)
Denis [Wed, 25 Jan 2017 07:36:29 +0000 (09:36 +0200)]
Use non-Generic SortOrder in Query. (#8239)

* Use non-Generic SortOrder in Query.

Fixes #8215

7 years agoAllow distinct configurable filter and wrapped filter types (#8322)
Leif Åstrand [Wed, 25 Jan 2017 07:23:09 +0000 (09:23 +0200)]
Allow distinct configurable filter and wrapped filter types (#8322)

* 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.

7 years agoServe VAADIN files also from META-INF/resources (#8286) (#8320)
Artur [Wed, 25 Jan 2017 07:09:02 +0000 (09:09 +0200)]
Serve VAADIN files also from META-INF/resources (#8286) (#8320)

* Serve VAADIN files also from META-INF/resources (#8286)

Fixes #8206

7 years agoAdd static helpers for creating callback data providers (#8314)
Leif Åstrand [Wed, 25 Jan 2017 06:36:25 +0000 (08:36 +0200)]
Add static helpers for creating callback data providers (#8314)

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.

7 years agoUpdate data provider documentation to describe the new design (#8317)
Leif Åstrand [Tue, 24 Jan 2017 16:22:14 +0000 (18:22 +0200)]
Update data provider documentation to describe the new design (#8317)

7 years agoSupport using multiple @JavaScript and @StyleSheet annotations on a class (#8293)
Artur [Tue, 24 Jan 2017 13:41:15 +0000 (15:41 +0200)]
Support using multiple @JavaScript and @StyleSheet annotations on a class (#8293)

7 years agoMake BeanBinderPropertySet exclude Object properties (#8306)
Leif Åstrand [Tue, 24 Jan 2017 10:03:17 +0000 (12:03 +0200)]
Make BeanBinderPropertySet exclude Object properties (#8306)

* Make BeanBinderPropertySet exclude Object properties

7 years agoUnify container wrapping (#8312)
Leif Åstrand [Tue, 24 Jan 2017 08:38:57 +0000 (10:38 +0200)]
Unify container wrapping (#8312)

* 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

7 years agoUse getFirstSelectedItem() instead of getFirstSelected(). (#8308)
Denis [Tue, 24 Jan 2017 07:26:03 +0000 (09:26 +0200)]
Use getFirstSelectedItem() instead of getFirstSelected(). (#8308)

* Use getFirstSelectedItem() instead of getFirstSelected().

Fixes vaadin/framework8-issues#596

7 years agoFix absolute layout component sizing on size change (#8269)
caalador [Mon, 23 Jan 2017 15:11:47 +0000 (17:11 +0200)]
Fix absolute layout component sizing on size change (#8269)

* Fix absolute layout component sizing on size change (#8255, #8256, #8257)

Changing from relative to defined size leaves the component positioned wrong,
also changing from defined size to relative size leaves the component in the
wrong position with the wrong size.

Change makes the wrapper rerun setChildWidgetPosition() that adds/removes
necessary css definitions to/from the cssPosition String.

* Clean test sources according to review.

7 years agoRemove custom preloading support and load scripts using async=false (#8291)
Artur [Mon, 23 Jan 2017 15:05:01 +0000 (17:05 +0200)]
Remove custom preloading support and load scripts using async=false (#8291)

When using async='false' for scripts created by scripts
the execution order is guaranteed to be the same as the order the
script tags are created

Fixes #5339, #3631

7 years agoFix BeanBinderPropertySet to not deserialize into multiple instances (#8305)
Leif Åstrand [Mon, 23 Jan 2017 13:52:54 +0000 (15:52 +0200)]
Fix BeanBinderPropertySet to not deserialize into multiple instances (#8305)

* Fix BeanBinderPropertySet to not deserialize into multiple instances

7 years agoCode cleanup: Move dependency loading logic to a separate class (#8290)
Artur [Mon, 23 Jan 2017 13:05:52 +0000 (15:05 +0200)]
Code cleanup: Move dependency loading logic to a separate class (#8290)

7 years agoAdd shorthands to ComboBox for setting a ListDataProvider
Leif Åstrand [Mon, 23 Jan 2017 12:59:11 +0000 (14:59 +0200)]
Add shorthands to ComboBox for setting a ListDataProvider

7 years agoRemove outdated filtering concepts (#8289)
Leif Åstrand [Mon, 23 Jan 2017 12:11:39 +0000 (14:11 +0200)]
Remove outdated filtering concepts (#8289)

* 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

7 years agoAdd migration guide to documentation (#8283)
Aleksi Hietanen [Mon, 23 Jan 2017 11:26:09 +0000 (13:26 +0200)]
Add migration guide to documentation (#8283)

* Migration guide 1st draft

* Restructure and improve migration guide

* Update migrating-to-vaadin8.asciidoc

7 years agoAdd ListDataProvider shorthands for filter conversion (#8279)
Leif Åstrand [Sun, 22 Jan 2017 19:50:46 +0000 (21:50 +0200)]
Add ListDataProvider shorthands for filter conversion (#8279)

Also updates ComboBox.setItems to use these new shorthands

This is one of many steps towards #8245

7 years agoUpdated tutorial to v.8.0.0.beta1 (#8298)
Alejandro [Sat, 21 Jan 2017 07:50:59 +0000 (09:50 +0200)]
Updated tutorial to v.8.0.0.beta1 (#8298)

7 years agoAdd a data provider wrapper with a configurable filter (#8280)
Leif Åstrand [Fri, 20 Jan 2017 08:34:33 +0000 (10:34 +0200)]
Add a data provider wrapper with a configurable filter (#8280)

* Add a data provider wrapper with a configurable filter

This is one of many steps towards #8245

7 years agoOverload AbstarctComponent.setDescription() with content mode parameter (#8252)
Denis [Fri, 20 Jan 2017 08:13:25 +0000 (10:13 +0200)]
Overload AbstarctComponent.setDescription() with content mode parameter (#8252)

* Overload AbstarctComponent.setDescription() with content mode parameter

Fixes #8185

7 years agoIntroduce DateTimeFile and InlineDateTimeField. (#8218)
Denis [Thu, 19 Jan 2017 08:01:03 +0000 (10:01 +0200)]
Introduce DateTimeFile and InlineDateTimeField. (#8218)

* Introduce DateTimeFile and InlineDateTimeField.

Fixes #8132

* Correct and provide declarative tests.

* Provide a date converter and UI tests.

7 years agoChange BackEndDataProvider into an interface (#8268)
Leif Åstrand [Thu, 19 Jan 2017 07:12:24 +0000 (09:12 +0200)]
Change BackEndDataProvider into an interface (#8268)

* 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

7 years agoAllow setting filters directly in ListDataProvider (#8267)
Leif Åstrand [Thu, 19 Jan 2017 06:56:06 +0000 (08:56 +0200)]
Allow setting filters directly in ListDataProvider (#8267)

* Allow setting filters directly in ListDataProvider

This is one of many steps towards #8245

7 years agoSimplified javadoc (#8272)
Matti Tahvonen [Wed, 18 Jan 2017 13:14:16 +0000 (15:14 +0200)]
Simplified javadoc (#8272)

* Simplified javadoc

7 years agoBetter instructions in widgetset optimization view in the debug window. (#8261)
Sami Ekblad [Wed, 18 Jan 2017 07:09:54 +0000 (09:09 +0200)]
Better instructions in widgetset optimization view in the debug window. (#8261)

* Better instructions in widgetset optimization view in the debug window.

The generated example code is ok, but steps to use them are not obvious.
Added more details to debug window instructions to make it clear what steps are
needed to optimize the widgetset.

Change-Id: Id46632697044223092ef772f98b1fcd69c28d0da

7 years agoMake data providers statefull with regards to default sort orders (#8247) pr8264/r2
Leif Åstrand [Tue, 17 Jan 2017 14:22:55 +0000 (16:22 +0200)]
Make data providers statefull with regards to default sort orders (#8247)

* Make data providers statefull with regards to default sort orders

This is one of many steps towards #8245

7 years agoAdd getHeaderCellByCaption method to tb-api GridElement (#8248) pr8264/r1
rogozinds [Tue, 17 Jan 2017 14:13:06 +0000 (06:13 -0800)]
Add getHeaderCellByCaption method to tb-api GridElement (#8248)

* Add getHeaderCellByCaption method to tb-api GridElement

7 years agoAdd separate modules to test Bean Validation lib necessity. (#8249)
Denis [Mon, 16 Jan 2017 14:42:03 +0000 (16:42 +0200)]
Add separate modules to test Bean Validation lib necessity. (#8249)

* Add separate modules to test Bean Validation lib necessity.

Fixes #8141

7 years agoIntroduce Binder.setReadOnly() (#8241)
Denis [Mon, 16 Jan 2017 11:12:21 +0000 (13:12 +0200)]
Introduce Binder.setReadOnly() (#8241)

Closes #8232