| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
Fixes #11083
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
| |
Fixes #10195
|
| |
|
|
|
| |
Also use "event" as the name for events
|
|
|
|
|
|
|
|
| |
* Use .toLowerCase and .toUpperCase(Locale.ROOT)
* Spaces
* add spaces after if(
|
|
|
|
| |
Also removes dependency on junit.framework.TestCase .
|
|
|
| |
Fixes #9661
|
|
|
| |
Fixes #9670
|
|
|
| |
Fixes #9595
|
|
|
| |
Addresses #9465
|
| |
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
| |
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
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.
|
| |
|
|
|
| |
Closes #8250
|
|
|
|
| |
Fixes #8622
Fixes #8623
|
|
|
|
|
|
| |
* Add Column.getValueProvider to Grid
Fixes #8680
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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 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
setColumns(Column...) is removed since it's not possible to re-add a
removed column instance.
Fixes #8361
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Fixes #8282
|
|
|
|
|
| |
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
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
|
|
|
|
|
|
| |
* Extract interfaces from Grid
Closes vaadin/framework8-issues#566
|
|
|
|
|
| |
Renamed corresponding test packages too.
Fixes vaadin/framework8-issues#110
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Touched event listeners are:
- SelectionListener
- MultiSelectionListener
- SingleSelectionListener
- ValueChangeListener
- ItemClickListener
- BindingValidationStatusHandler
- BinderValidationStatusHandler
- StatusChangeListener
Part of vaadin/framework8-issues#264
|
|
|
| |
Fixes vaadin/framework8-issues#540
|
|
|
|
|
|
|
|
| |
* 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.
Fixes vaadin/framework8-issues#516
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
Fixes vaadin/framework8-issues#518
Change-Id: Ice6bdef03c3b62dd2c74376f98cfb8004dfa0bbf
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
javax.sql.DataSource
Change-Id: I6babcadc72f3f37feff98088eee23b153a080f11
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Fixes vaadin/framework8-issues#423
Change-Id: Ifd252b8feed323708a7ae73af2b836832570d192
|
|
|
|
|
|
|
| |
This patch removes old Grid selection model APIs
in favor of the new common SelectionModel API.
Change-Id: Iab8f2921930a575012c7da6226811d14a7145271
|
|
|
|
| |
Change-Id: I5fecfabd023b39dc252e47a6aa403a79034b0f3d
|