aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/test/java
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove AbstractComponent.immediatePekka Hyvönen2016-10-132-38/+0
| | | | | | | | | | | | | All components are now in immediate mode by default. V7 compatibility components will use AbstractLegacyComponent that has immediate. V7 ColorPickerPopup will not have setImmediate, since it extends V8 Window, which is not in V7 compatibility packages. Removed OutOfSync and ResynchronizeAfterAsyncRemoval Tests, since those tested UI in not immediate mode, which is invalid now. Removed WindowResizeListener, LazyWindowResize, test UIs, since both used immediate and there were no test run for either. Change-Id: Ie1c8cfa4c48461db944ff9b13efe8473c5a3298f
* Add support for binder status change events (#208).Denis Anisimov2016-10-062-0/+542
| | | | Change-Id: Ic8dee407569ee310f007ebe32660a1d2922e9493
* Make ColorPicker an AbstractField<Color>Johannes Dahlström2016-10-031-2/+2
| | | | | | | Remove old ColorSelector API from ColorPicker. The various subcomponents still implement ColorSelector for now. Change-Id: If0e30eda71c5fe30f7128056a65fb127a4953089
* Do not derive DataSource from Function and replace apply method #307.Denis Anisimov2016-10-033-11/+11
| | | | Change-Id: Ic0587e75c9a50c802a64673b1db0b8828b37889c
* Make AbstractDateField based on LocalDate (#125).Denis Anisimov2016-09-305-80/+54
| | | | Change-Id: I33a4a4f0f3437a8d1733031a131afbe844c12afb
* Unify listeners on the server sideAleksi Hietanen2016-09-295-32/+61
| | | | | | | | | | | 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-1/+1
| | | | | | | | | | 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
* ListSelect with new data binding API8.0.0.alpha3Pekka Hyvönen2016-09-282-1/+80
| | | | | | | | No single select mode for list select. Based on AbstractMultiSelect. Removes feature for adding new items. Change-Id: I9a92aaf1f3d338a3b05c3aa4048f9db496dacd1d
* Implement default header row in new GridJohannes Dahlström2016-09-282-18/+105
| | | | Change-Id: Id26a98caca022ed2a4dbe0128a79721a54f5b267
* Initial support for multiple headers in new GridJohannes Dahlström2016-09-271-0/+155
| | | | Change-Id: I7a3fa34749322451ab5cef4465d4d7c76029c097
* TwinColSelect with new databinding APIPekka Hyvönen2016-09-274-113/+309
| | | | | | | | | | | | | | | | 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
* Extract validation availability check out of BeanValidator (#251).Denis Anisimov2016-09-231-0/+118
| | | | | | | BeanValidator uses and depends on javax.validation classes. So JSR303 presence check is extracted out of it to avoid ClassNotFoundException. Change-Id: I8df9a9da873cf694a326c9abb05315c8e94a0a96
* Rename PopupDateField to DateField #297.Denis Anisimov2016-09-236-144/+39
| | | | | | | DateField becomes abstract AbstractDateField, PopupDateField becomes DateField Change-Id: I3ac1e02d8754f0770b6a30222cb0fb2a1b9db07b
* Make CheckBoxGroup.SimpleMultiSelectModel return a selection copy #293.Denis Anisimov2016-09-211-0/+14
| | | | | | | getSelectedItems() must return a copy to fulfill the contract specified in SelectionModel: it must be a snapshot of the current state and safe to iterate over while changing selection. Change-Id: Ie2f15eb626dd80df2036bcb2d4e9387fc31389c9
* Avoid explicit casting to getter return type in getDescriptor() (#292).Denis Anisimov2016-09-211-2/+12
| | | | | | | BeanBinder may throw a ClassCastException in some cases because of explicit "cast" call which doesn't do boxing/unboxing. Change-Id: I8fc61612c2912f2626c075a4fc19cb812adf8aa2
* Create a RadioButtonGroup that replaces the single select case of OptionGroupelmot2016-09-162-0/+137
| | | | Change-Id: I56b0f1dfa889e2eaa3db9b0b0aac860f1bb4dea8
* Update @since tags for 8.0Henri Sara2016-09-141-1/+1
| | | | Change-Id: Iec8a81424e1cae9c3dc6c760732e0d48c4a38af2
* Implement support for binding multi-select componentsLeif Åstrand2016-09-144-25/+279
| | | | | | | Also updates ComponentTest.getRpcProxy to use an approach that doesn't require the component to be attached to a UI. Change-Id: Iab4603a7818cd0fd2a3410660b90a2a839fb8a76
* DataSource.refreshAll() for notifying components to reload (#233).Denis Anisimov2016-09-145-6/+302
| | | | | | | The method refreshAll() fires an event which is handled by UI components to reload their content. Change-Id: Ibbbe1f24b08ed883f0dda93c3ff6f05f380e9eaa
* Implement support for binding single-select componentsJohannes Dahlström2016-09-141-0/+109
| | | | Change-Id: I340e802e5c8e6e036b54f81ec46beeb5e1c34329
* Split Binder tests roughly by categoryJohannes Dahlström2016-09-145-1194/+1303
| | | | Change-Id: I7c1a55bd68097819e8091533df7232271af689c3
* Add multi selection support to CheckBoxGroupLeif Åstrand2016-09-141-0/+54
| | | | | | | | This patch adds multi selection support only for CheckBoxGroup without even trying to generalize anything. Adopting the concepts to work with other components will be done separately. Change-Id: Id4ccd2c743b74cb022dc9dfd8cd8dae3bf8f0c54
* Utility functions for helping to use elemental.json with Java 8Artur Signell2016-09-142-0/+206
| | | | Change-Id: I7c3cf7be95eaf451be806cb75b7b2a34fc534deb
* Create a CheckBoxGroup that replaces the multi select case of OptionGroupelmot2016-09-131-0/+46
| | | | Change-Id: I250c60741bc65443b66498a8d0b17541edb77bf1
* Fix binder.load to reset validation status in the endPekka Hyvönen2016-09-131-1/+39
| | | | | | | Otherwise any validation triggered by field value changes listeners would cause errors to be visible after loading a new bean. Change-Id: I741529f491ae6b36ff2a9aa4326c394cc12fb320
* Fix inconsistent API naming in Binder and remove unused handlerPekka Hyvönen2016-09-132-40/+41
| | | | | | Mostly based on comments on a previous patch that was merged. Change-Id: I146995853b3318d89061f1d06ab4bbd859168661
* Clear binder errors after load/bindPekka Hyvönen2016-09-131-0/+74
| | | | | | | Adds an unresolved validation status to make it possible to clear visible field validation errors, even if status is not yet valid. Change-Id: I227a8802b6a71be1533dc903bad1a8e2faef5ed2
* Change ColorPicker to use new ComboBoxArtur Signell2016-09-132-0/+144
| | | | | | | ColorPicker is moved back to vaadin-server now that it no longer requires any old components Change-Id: Iebb34cc0724a4bba6eff53073400e803d9ffddd1
* Refactor Binder Status Handling APIPekka Hyvönen2016-09-123-180/+327
| | | | | | | | | | | BinderStatusHandler is now triggered only once per validation. Unified ValidationError and BinderResult into BinderValidationStatus. Renamed ValidationStatusChangeEvent into ValidationStatus. Unified handler names for validation status. Next patch will fix resetting of field errors on reset. Change-Id: I9536d554d781fe599fbd7e5bcb5a9ffebe675ca0
* Add hasChanges to BinderAleksi Hietanen2016-09-121-0/+27
| | | | Change-Id: Id308bd9b08973804e61706192c96118fd6446d3f
* Remove unused SingleSelectionJohannes Dahlström2016-09-122-206/+2
| | | | Change-Id: I33afc94a581d77984f459b0cbd0ff7fe49df8e79
* Implement new RichTextAreaArtur Signell2016-09-123-1/+206
| | | | Change-Id: I6f430c77caaad6d610133f340eba960f2268897e
* Add AbstractSingleSelection base classJohannes Dahlström2016-09-121-0/+175
| | | | | | | | 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 Form level status handler and status labelPekka Hyvönen2016-09-082-10/+330
| | | | | | | This feature doesn't make a whole lot of sense until form level status changes are available. Change-Id: Ie634c4a6b3511b7cbf9e367192034934b0e0d4b0
* Remove strange TextField column APIArtur Signell2016-09-071-3/+1
| | | | Change-Id: I1cfa901b8699afafe490ec4e8045c643c7912e89
* Reimplement basic Grid renderersLeif Åstrand2016-09-061-1/+1
| | | Change-Id: Ic855143d23cc7735d00130806df45b6579ba0d5c
* Clean up old Grid selection modelsTeemu Suo-Anttila2016-09-061-0/+34
| | | | | | | This patch removes old Grid selection model APIs in favor of the new common SelectionModel API. Change-Id: Iab8f2921930a575012c7da6226811d14a7145271
* Add documentation test for custom convertersArtur Signell2016-09-051-0/+47
| | | | Change-Id: I84621b6b568095b1b7f86068fa992dd570f8a103
* Use diamond operator where it can be usedArtur Signell2016-09-0528-57/+57
| | | | | | Does not modify compatibility packages to keep to closer to Vaadin 7.7 Change-Id: Ic9c4944eb90218290545a04ecd7455eb63910012
* Add error message constructor to all converters which can failArtur Signell2016-09-0513-60/+152
| | | | Change-Id: I3ec60effc75e22765d21e0223ee1537ffbdb29e7
* Add item level validator support to BinderDenis Anisimov2016-09-023-26/+309
| | | | | | | | An item level validator is run on the item (bean) after field validators have passed. A failed item level validator will block save operations, just like field level validators. Change-Id: I3b918b33371ceef07cdfbd0a8b6d477d4ac26b85
* UnitTest for SingleSelectionelmot2016-09-012-0/+208
| | | | Change-Id: I40b3b9bae7c1eb96377c0a593faee59ef52109fb
* Reintroduce frozen columns and height by rows to GridTeemu Suo-Anttila2016-09-012-1/+54
| | | | Change-Id: I5fecfabd023b39dc252e47a6aa403a79034b0f3d
* Implement Binder.saveIfValid and fix Binder.save to throw exceptionArtur Signell2016-08-311-3/+51
| | | | Change-Id: I44498b4b34b2e9732b50abb14e8eb7be01314158
* Format the project using Neon, remove trailing whitespaceArtur Signell2016-08-311-4/+4
| | | | Change-Id: I145e20226958910c243b9897bb1e9516919f55cd
* Implement SingleSelection on client and serverJohannes Dahlström2016-08-311-34/+4
| | | | Change-Id: I48192de092c6b6e6be7ca2580720d2765962e167
* Rename TypedDataGenerator to DataGeneratorJohannes Dahlström2016-08-311-3/+3
| | | | | | | Also add a no-op default implementation to destroyData, making DataGenerator a functional interface. Change-Id: I546f443150da23debd4a2691003e435367469439
* Implement DetailsGenerators for GridTeemu Suo-Anttila2016-08-291-0/+90
| | | | Change-Id: I09057b990f10bde6cf72a16677e58cb2bc9a7029
* Move remaining Vaadin 7 classes to the compatibility packageArtur Signell2016-08-263-109/+5
| | | | Change-Id: I3be37350a638028d89fb527a3dfb09e74fdebeed
* Implement new LabelArtur Signell2016-08-266-325/+30
| | | | | | | Label does intentionally not implement HasValue as it cannot provide a value to a model Change-Id: I36b8e1794d64caf566fa802177051ae2eb637bf9