aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/test
Commit message (Collapse)AuthorAgeFilesLines
* Correctly handle data providers with overriden getId (#10728)Anastasia Smirnova2018-03-271-0/+97
| | | | | Fixes #10647 Fixes #10498
* Add missing null check to Binding (#10726)Teemu Suo-Anttila2018-03-271-0/+19
| | | | * Add missing null check to Binding
* Fix Column.setSortable being overridden (#10604)Teemu Suo-Anttila2018-02-282-27/+73
|
* Rename contentMode to descriptionContentMode in MenuItem (#10494)Leif Åstrand2018-01-081-5/+5
|
* Add ContentMode for the description of MenuItems (#9984)Jonas Zipprick2017-12-291-1/+24
| | | | | Adds the ability to set the content mode for the description of a menu item that is part of a menu bar. This functionality was already available for every AbstractComponent but missing for the menu items of menu bars. If no content mode is specified it defaults to the PREFORMATED content mode.
* Treat fields as readonly when bound with null setter (#10477)Marco Collovati2017-12-292-7/+25
| | | Fixes #10476
* Make Binder.setReadonly ignore effectively readonly bindings (#10368)Marco Collovati2017-12-282-0/+43
| | | | | | | Binder.setReadonly will ignore bindings with null setter or property without an accessible setter when changing field read only flag. Fixes #10252
* Fix nested bean property name (#10271)schaerl2017-11-221-0/+48
| | | | | | | | | * Changed retrieval of names of nested properties (#10159) The getName() function in NestedBeanPropertyDefinition will return only the top level name, which causes problems when adding a nested property that has the same name as a non-nested (e.g "value" & "sub.value") This change should fix this behaviour by changing the return value of "getName()" of NestedBeanPropertyDefinition and introducing a function "getTopLevelName()" that only returns the last part of the full name for where it's needed
* Improve Binder JavaDocs and APIs (#10347)Teemu Suo-Anttila2017-11-211-0/+8
| | | This patch also adds ValueChangeEvent as a parameter to field value change method in Binder.
* Fix issues from API review for 8.2 (#10342)Aleksi Hietanen2017-11-213-19/+19
| | | | | | | | | | | | | | | | | * Rename HierarchicalDataCommunicator#getMapper to getHierarchyMapper * Make rpc field in Notification private * Change DropIndexCalculator.ALWAYS_DROP_TO_END to a generic static method * Move EditorImpl#editRow documentation to the interface level * Correct GridDragEndEvent, GridDragStartEvent constructor javadocs * Revert SharedState.registeredEventListeners to a Set * Rename GridDropTarget dropAllowedOnSortedGridRows * Rename ColumnState.contentMode to tooltipContentMode
* Extract AbstractBeanPropertyDefinition and PropertyFilterDefinition (#10344)Aleksi Hietanen2017-11-211-1/+0
| | | | | This commit extracts the private nested class AbstractBeanPropertyDefinition from BeanPropertySet to a public class of package com.vaadin.data. Additionally, the nested protected class PropertyFilterDefinition is extracted from NestedBeanPropertyDefinition to a public class in package com.vaadin.data.
* FileResource to use bufferSize, and StreamResource to use getCacheTime() ↵Ahmed Ashour2017-11-212-0/+47
| | | | (#10247)
* Remove unused imports (#10330)Ahmed Ashour2017-11-218-14/+6
|
* Rename GridDragger to GridRowDragger (#10333)Pekka Hyvönen2017-11-172-12/+12
| | | The old name GridDragger gave an impression that you're dragging the whole grid instead of rows.
* Add documentation on GridDragger (#10328)Pekka Hyvönen2017-11-162-0/+38
| | | | This pathc also switches GridDragger to by default not allow drops on rows when the grid has been sorted.
* Add helper for Grid row DnD (#10255)Pekka Hyvönen2017-11-152-0/+458
| | | | | | | | | | | | | | | | | | * Added Griddragger. * Refactored the GridDragger to match FW style Unit tests, Test UI and documentation to come next. * Change DropMode to BETWEEN and add Test UIs * Simplify GridDragger API * Fixes and unit tests for GridDragger Fixed issues regarding drop index calculation when sourche and target grid is the same. When the ListDataProvider is not internally using List, always drops to the end. Updates the old data provider instead of creating a new one to preserve filters&sorting.
* Add new drop mode ON_GRID for GridDropTarget (#10296)Pekka Hyvönen2017-11-151-0/+152
| | | | | | | | | | | | | | | | | * Add new drop mode ON_GRID for GridDropTarget Also adds a way to not accept drops on rows when the user has sorted the grid. This way the bad UX can be avoided for showing the drop indicator for the wrong place when the grid has been sorted. This has not been made default behavior to GridDropTarget since it would change behavior compared to 8.1. Instead if is triggerable via API in GridDropTarget. * Refactor sorted grid drop logic to server side * Block setDropMode calls Blocking setDropMode set values if the grid has been sorted and drop on sorted rows is not allowed. The value is used once the grid is not sorted anymore or the drops are allowed on sorted rows.
* Fix TreeGrid to use correct super constructor (#10291)Jerome Meyer2017-11-141-0/+6
| | | Fixes #10195
* Improve nested property support for Binder (#9925)Olli Tietäväinen2017-11-142-2/+198
| | | Fixes #9210
* Add API to read Binding value from bean (#10316)Teemu Suo-Anttila2017-11-131-0/+21
|
* HasItems.setItems(T... items) should allow edits (#10290)Pekka Hyvönen2017-11-062-0/+82
| | | | | | | | | * HasItems.setItems(T... items) should allow edits Arrays.asList() creates a immutable Arrays.ArrayList, preventing users from doing dataProvider.getItems() and updating the returned collection. This makes it impossible to keep the same data provider, update it and keep the filters & sorting, and then just call dataProvider.refreshAll() to get changes visible. We should not require users to create a new data provider in this case. This is the same for DataProvider.ofItems(T... items) * fix missing whitespace from test error message
* Use lambda expressions. (#10268)Ahmed Ashour2017-11-012-39/+26
|
* Fix end of line comments, which were made by automatic formatter (#10234)Ahmed Ashour2017-10-313-21/+15
|
* add Grid.Column#get/setAssistiveCaption (#10219)Knoobie2017-10-301-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | * add Grid#Column#get/setAssistiveCaption * fix test and update doc * move testGridAssistiveCaption to GridTest * delete test file * delete test file * Delete GridAssistiveCaptionTest.java * Create GridAssistiveCaptionTest * Create GridAssistiveCaption * Rename GridAssistiveCaption to GridAssistiveCaption.java * Rename GridAssistiveCaptionTest to GridAssistiveCaptionTest.java * Reformat using eclipse
* Use lambda with Handlers (#10229)Ahmed Ashour2017-10-271-1/+0
| | | Also improve naming by replacing one-letter variable names.
* Use lambda with Listeners (#10222)Ahmed Ashour2017-10-2612-31/+33
| | | Also use "event" as the name for events
* Improve naming of fields and variables (#10242)Ahmed Ashour2017-10-263-3/+3
| | | | | * Variable names to conform to naming convention. * Use static constants where it makes sense
* Remove trailing spaces (#10224)Ahmed Ashour2017-10-263-7/+7
|
* Grid column to be sortable when implemented/supported (Fixes #8792). (#10190)Ahmed Ashour2017-10-231-3/+14
| | | | | | | | | | | * Grid column to be sortable when implemented/supported * Fix GridDeclarativeTest * Parameterize to Grid<Person> * Revert Parameterize to Grid<Person>, JDK with generics. * Assertions for other columns * Fix test Fixes #8792
* Grid.removeColumn() not to fail silently (Fixes #8056) (#10215)Ahmed Ashour2017-10-201-17/+79
| | | | | | | | | | * Grid.removeColumn() not to fail silently (Fixes #8056) * Compilation with JDK * Fix removeColumnByColumn_alreadyRemoved test * Use ExpectedException
* AbstractDateField.formatDate() to be abstract (#10186)Ahmed Ashour2017-10-201-0/+5
| | | | | | | | | | | | | | | | | | | | | | * AbstractDateField.formatDate to be abstract Remove invalidDateString paramter, as it can be deduced * Fix test * Remove AbstractDateField.getResolutionVariable VAbstractTextualDate: rename updateDateVariables() to updateBufferedResolutions() * Revert to use fixed value of MONDAY. * release notes * updateAndSendBufferedValues() * Missed call to updateAndSendBufferedValues(); * release note
* Use .toLowerCase and .toUpperCase(Locale.ROOT) (#10182)Ahmed Ashour2017-10-2011-13/+15
| | | | | | | | * Use .toLowerCase and .toUpperCase(Locale.ROOT) * Spaces * add spaces after if(
* Simplify lambda expressions (#10198)Ahmed Ashour2017-10-2011-81/+51
| | | | | | | | * Simplify lambda expressions And remove unneeded 'return' keyword. * Format
* Convert AbstractDateField not to be a LegacyComponent (#10148)Ahmed Ashour2017-10-131-12/+12
|
* Use Collection.isEmpty() (#10172)Ahmed Ashour2017-10-123-4/+4
|
* Add ErrorLevel to Validators and results (#10099)Teemu Suo-Anttila2017-10-111-0/+20
| | | Fixes #9792
* Fix Binder bean writing to only validate and write given bindings (#10162)Teemu Suo-Anttila2017-10-112-6/+42
|
* Remove unneeded .toString() (#10141)Ahmed Ashour2017-10-102-5/+4
|
* Fix typos (#10124)Ahmed Ashour2017-10-041-1/+1
|
* Registration to remove state.registeredEventListeners (fixes #9634) (#10130)Ahmed Ashour2017-10-041-0/+16
| | | This changes SharedState.registeredEventListeners to be a Map that keeps track of how many listeners of each type have been added, and handles unregistering of such listeners correctly.
* Use static import of Assert in tests (#10126)Ahmed Ashour2017-10-03170-2046/+2211
| | | | Also removes dependency on junit.framework.TestCase .
* Use enhanced for loop for arrays. (#10121)Ahmed Ashour2017-10-021-3/+1
|
* Use enhanced for loop instead of Iterator. (#10100)Ahmed Ashour2017-09-293-17/+7
|
* Use StandardCharsets.UTF_8 (#10113)Ahmed Ashour2017-09-297-28/+25
|
* Revert "Store Vaadin session after each update" (#10112)8.2.0.alpha2Henri Sara2017-09-281-17/+0
| | | | | This reverts commit 48e202a80653c2c8a9e31db11814d23b87d6ec19. Also reverts the related release notes update.
* Use interface instead of implementation (#10073)Ahmed Ashour2017-09-285-23/+23
|
* Use single character for StringBuilder.append (#10102)Ahmed Ashour2017-09-283-8/+8
|
* Add option to use PushState instead of URI fragments in Navigator (#10042)Teemu Suo-Anttila2017-09-275-14/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Navigator now by default uses pushState and normal URLs * added documentation for pushState and updated Navigator documentation * improving docs etc, adding one TODO to be solved before merging * pushState/replaceState no work better with changing titles * Making uri fragment navigator work when not using specially mapped UI * Revert to older default, add annotation for selecting * Fix tests, add null checks * Reorder if-clause, fix tests * Revert unnecessary test change * Use correct variable in UI, fix test clean up * Updates to JavaDocs, fix some methods and tests * Add comments, fix test ui, TODO for fallbacks * Navigation documentation, JavaDocs, removed TODOs * Documentation fixes * Improve JavaDocs * Fix link name in documentation * Improve throws declaration in getLocation * Change documentation about the PushState based navigation * Add since tags * Add since tags for UI
* Store Vaadin session after each updateArtur Signell2017-09-271-0/+17
| | | | | | | This helps clustering solutions know when the session attribute needs to be replicated instead of having to always aggressively replicate all attributes. Resolves #7535
* Implement error level on client side (#9817)Adam Wagner2017-09-272-2/+2
| | | | | | | Add additional class names and style to components and error indicators to distinguish different error levels. Vaadin 8 implementation of #9816. Cherry picked changes and added compatibility package component changes and tests. Resolves #3139