aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/test/java/com/vaadin/tests/components
Commit message (Collapse)AuthorAgeFilesLines
* Add API to access features of SelectionModels (#10939)Teemu Suo-Anttila2018-09-041-0/+62
|
* Fix Grid MultiSelectionModel to always use getId (#11086)Teemu Suo-Anttila2018-07-302-1/+102
| | | Fixes #11083
* Enable Maven plugin for Eclipse formatting (#10829)Ilia Motornyi2018-04-193-13/+18
|
* Remove copyright headers from test code (#10770)Teemu Suo-Anttila2018-03-283-45/+0
|
* Update copyright year (#10761)Ilia Motornyi2018-03-273-3/+3
|
* 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.
* Fix issues from API review for 8.2 (#10342)Aleksi Hietanen2017-11-211-13/+13
| | | | | | | | | | | | | | | | | * 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
* Remove unused imports (#10330)Ahmed Ashour2017-11-211-6/+6
|
* 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
* Fix end of line comments, which were made by automatic formatter (#10234)Ahmed Ashour2017-10-311-5/+3
|
* Use lambda with Listeners (#10222)Ahmed Ashour2017-10-263-9/+9
| | | Also use "event" as the name for events
* Use .toLowerCase and .toUpperCase(Locale.ROOT) (#10182)Ahmed Ashour2017-10-201-1/+1
| | | | | | | | * Use .toLowerCase and .toUpperCase(Locale.ROOT) * Spaces * add spaces after if(
* Use static import of Assert in tests (#10126)Ahmed Ashour2017-10-0310-135/+147
| | | | Also removes dependency on junit.framework.TestCase .
* Fix TreeGrid.getHierarchyColumn to use correct id (#9690)Teemu Suo-Anttila2017-07-181-0/+12
| | | Fixes #9661
* Delegate properties to Composite's root if possibleIlia Motornyi2017-07-131-8/+31
| | | Fixes #9670
* Add isExpanded() method to Tree and TreeGridHenri Sara2017-06-282-2/+5
| | | Fixes #9595
* Allow changing the renderer of hierarchy column in TreeGrid (#9514)Teemu Suo-Anttila2017-06-131-4/+2
| | | Addresses #9465
* Add shorthand for adding a column with ComponentRendererPekka Hyvönen2017-05-191-3/+2
|
* Refactor common methods in in-memory data providers (#9308)Aleksi Hietanen2017-05-162-14/+14
| | | | | | * Refactor common methods of InMemoryHierarchicalDataProvider and ListDataProvider to a single interface * Rename HierarchyData and InMemoryHierarchicalDataProvider, introduce HasHierarchicalDataProvider * Additionally adds a helper method for recursive constructing TreeData with a child item provider.
* Add an initial version of Tree component (#9212)Teemu Suo-Anttila2017-05-023-19/+122
| | | | | | | This patch introduces a Tree component, implemented as a Composite using TreeGrid. As initial version of the component, some functionality of the old Tree component has been left out for now. Partly addresses #8617
* Make getValueProvider return ValueProvider (#8983)Leif Åstrand2017-03-311-0/+29
| | | | | | | | | * Make getValueProvider return ValueProvider The instance can only be a ValueProvider, but the getter previously returned a less specific type. Making the getter return ValueProvider makes it easier to reuse the provider in other contexts that require ValueProvider, e.g. when adding filters to a ListDataProvider.
* Move select all visible to multi selection model interface (#8627)Pekka Hyvönen2017-03-271-3/+4
|
* Allow changing renderers after column creation (#8841)Teemu Suo-Anttila2017-03-151-0/+19
| | | Closes #8250
* Initial implementation of ComponentRenderer for Grid (#8743)Teemu Suo-Anttila2017-03-091-0/+90
| | | | Fixes #8622 Fixes #8623
* Add Column.getValueProvider to Grid (#8732)Artur2017-03-021-0/+48
| | | | | | * Add Column.getValueProvider to Grid Fixes #8680
* Fix NPE sorting columns with null values (#8610)Filippo2017-02-231-0/+45
| | | | | | | | | | | | | | * Fix NPE sorting columns with null values Sorting a column in Grid throws a NullPointerException if there are null values and we are using the default TextRenderer * Test for #8610 * Update Grid.java * Update GridNullValueSortTest.java * Update GridNullValueSortTest.java
* 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 helpers for dealing with columns based on its id (#8411)Leif Åstrand2017-02-021-7/+30
| | | | | | | | | * 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
* Add a maven plugin for formatting according to Eclipse settingsLeif Åstrand2017-02-011-36/+20
| | | | | 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.
* Fix NPE when grid is sorted by column with null values Ilia Motornyi2017-01-301-0/+147
| | | | | Fixes #8282
* Add static helpers for creating callback data providers (#8314)Leif Åstrand2017-01-251-8/+10
| | | | | 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.
* Change BackEndDataProvider into an interface (#8268)Leif Åstrand2017-01-191-2/+2
| | | | | | | | | | | | | | | | * 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
* Include old value in ValueChangeEvent (#8229)Aleksi Hietanen2017-01-131-3/+9
| | | | * Include old value in ValueChangeEvent
* Extract interfaces from Grid (#8005)Teemu Suo-Anttila2016-12-153-8/+13
| | | | | | * Extract interfaces from Grid Closes vaadin/framework8-issues#566
* Rename com.vaadin.server.data to com.vaadin.data.provider (#8004)Pekka Hyvönen2016-12-153-4/+4
| | | | | Renamed corresponding test packages too. Fixes vaadin/framework8-issues#110
* Remove usage of Consumer from event listeners (#7985)Pekka Hyvönen2016-12-142-2/+2
| | | | | | | | | | | | | Touched event listeners are: - SelectionListener - MultiSelectionListener - SingleSelectionListener - ValueChangeListener - ItemClickListener - BindingValidationStatusHandler - BinderValidationStatusHandler - StatusChangeListener Part of vaadin/framework8-issues#264
* Rename SelectAllCheckBoxVisible enumeration. (#7981)Denis2016-12-141-24/+24
| | | Fixes vaadin/framework8-issues#540
* Add a generic selection listener to Grid & SelectionModels (#105)Pekka Hyvönen2016-12-092-15/+18
| | | | | | | | * Add a generic selection listener to Grid & SelectionModels Fixes some inconsistent event naming and invalid javadocs. Fixes vaadin/framework8-issues#541
* Add read-only support for single and multi select views for Grid. (#84)Denis2016-12-062-0/+41
| | | | | | * Add read-only support for single and multi select views for Grid. Fixes vaadin/framework8-issues#516
* Add a SelectionMode shorthand for Grid. (#83)Pekka Hyvönen2016-12-054-59/+105
| | | | | | | | | | | * Add a SelectionMode shorthand for Grid. Hides setSelectionModel(...) by making it protected. Refactores the usage of constructor / extend method for Abstract-, Single- and MultiSelectionModelImpl. Fixes vaadin/framework8-issues#519 Change-Id: I48c30886450506639be9ee6e21c45b0c06755c88
* NoSelectionModel for GridPekka Hyvönen2016-11-301-0/+69
| | | | | | Fixes vaadin/framework8-issues#518 Change-Id: Ice6bdef03c3b62dd2c74376f98cfb8004dfa0bbf
* Enable select all checkbox for MultiSelection Grid.Pekka Hyvönen2016-11-301-16/+146
| | | | | | | It is by default shown only if used data provider is in-memory. Can be configured to be explicitly shown or hidden. Change-Id: I50569d915604c3722a22e14b7628663d5680ed83
* Add MultiSelect support for GridPekka Hyvönen2016-11-292-25/+631
| | | | | | | | | | | Still missing following things coming in next patches: - select all checkbox - firing an event when data provider is changed in grid - read only selection models for grid Part 1 for vaadin/framework8-issues#232 Change-Id: Ib2c7c81a838f43cb7c521a56d50139c91961f54a
* Renaming DataSource -> DataProvider to avoid collisions with ↵elmot2016-11-111-1/+1
| | | | | | javax.sql.DataSource Change-Id: I6babcadc72f3f37feff98088eee23b153a080f11
* Remove HasValue from GridPekka Hyvönen2016-11-102-36/+244
| | | | | | | | | | | | | | | | | | | Extracts grid single selection into separate class, which is an extension like in V7. Using an extension makes it possible to easily add multiselect and no-select modes back, and support custom selection models. Adds Grid:asSingleSelect() SingleSelect so that grid can be used as a Select in a binder. Removes all remaining references to SelectionModels in Listings. Renames SingleSelectionChangeEvent to SingleSelectionEvent, because then it is unified with selection listener and MultiSelectionEvent. Fixes vaadin/framework8-issues#424 Fixes vaadin/framework8-issues#425 Change-Id: Ie22bef29cfd4336c3f65d4e63531c578b8dd76a3
* Create MultiSelect interface to replace Multi selection model.Denis Anisimov2016-11-041-11/+13
| | | | | | Fixes vaadin/framework8-issues#423 Change-Id: Ifd252b8feed323708a7ae73af2b836832570d192
* 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
* Reintroduce frozen columns and height by rows to GridTeemu Suo-Anttila2016-09-011-90/+0
| | | | Change-Id: I5fecfabd023b39dc252e47a6aa403a79034b0f3d