Pekka Hyvönen
394299cd4c
Fix Button as a Html5 DragSource (#9346)
* Fix Button as a Html5 DragSourcei
It was completely broken, not being clickable, and also preventing anything else from being clicked.
7 years ago
Henri Sara
6297a81c52
Add since tags for 8.1 (#9343)
* Add since tags for 8.1
Note that ConnectorTracker changes will probably be backported to 7.7
in #9331 .
7 years ago
Ilia Motornyi
ac47c7a97f
Reflect latest Tree API and styling changes to the documentation
7 years ago
Adam Wagner
9dd70e13cd
Make it possible for grid drop target to accept dragged data when grid is empty (#9332)
* Make it possible for grid drop target to accept dragged data when grid is empty (#9068 )
* Make return type of getDropTargetRow() optional
7 years ago
Teemu Suo-Anttila
9b725e2bd7
Add mention of context menu and DnD collision on mobile devices (#9337)
* Add mention of context menu and DnD collision on mobile devices
7 years ago
Henri Sara
46422df01b
Update since tags for TB elements (#9329)
7 years ago
Teemu Suo-Anttila
da773250ca
Remove unnecessary rowmode prefix from TreeGrid focus styles (#9327)
7 years ago
Teemu Suo-Anttila
bac4c82d52
Properly init client-side data in GridDataChangeHandlerTest
7 years ago
Aleksi Hietanen
9c58a56ffe
Add BackEndHierarchicalDataProvider and an abstract base class
7 years ago
Aleksi Hietanen
16b37b6011
Fix code review comments
7 years ago
Aleksi Hietanen
75be04cfb5
Add ItemCollapseAllowedProvider interface
7 years ago
Aleksi Hietanen
b153ba2f8b
Add TreeGrid#getHierarchyColumn
7 years ago
Aleksi Hietanen
760959a5d2
Improve CollapseEvent and ExpandEvent javadocs
7 years ago
Aleksi Hietanen
67c503d064
Move HierarchicalDataCommunicatorConstants to the correct package
7 years ago
Aleksi Hietanen
ec7d17f903
Add convenience constructors to TreeGrid
7 years ago
Aleksi Hietanen
f5004fe3ce
Add javadocs to Grid#readData and writeData
7 years ago
Aleksi Hietanen
f4bbe48069
Add setHierarchyColumn(column) overload to TreeGrid
7 years ago
Aleksi Hietanen
a053082b0a
Make HierarchyRendererCellReferenceWrapper a nested class of HierarchyRenderer
7 years ago
Aleksi Hietanen
0a3ce51e2c
Rename BodyRowContainer.setNewEscalatorRowCallback to setNewRowCallback
7 years ago
Aleksi Hietanen
d9ce1e8fb7
Rename TreeGridCommunicationConstants to HierarchicalDataCommunicatorConstants
7 years ago
Aleksi Hietanen
2e879d11f8
Remove redundant method getComponentCount from Composite
7 years ago
Aleksi Hietanen
c9dbc70ac7
Add FunctionalInterface annotation to DependencyFilter
7 years ago
Aleksi Hietanen
92bdee08a7
Wrap DataCommunicator#getBackEndSorting in an unmodifiable list
7 years ago
Aleksi Hietanen
50847d1d34
Move CompositeState to different package
7 years ago
Aleksi Hietanen
a4ab8b9e54
Add javadoc to client-side TreeGrid widget
7 years ago
Aleksi Hietanen
8cbbd608f7
Improvements to HierarchyRenderer
- Make HierarchyRenderer.ExpanderState private
- Add javadocs to HierarchyRenderer#setStyleNames
7 years ago
Aleksi Hietanen
d67f329f16
Clarify HierarchicalQuery javadocs
7 years ago
Aleksi Hietanen
6020737775
Make CollapseListener and ExpandListener extend SerializableEventListener
7 years ago
Artur
aa3ad5db0f
Clean connector tracker after each access block to stop memory leaks (#9305)
Immediately clean connectors which the client side does not know about
Fixes #9303
7 years ago
Adam Wagner
76a0e04cb0
Add API for multiple drag data generators (#9321)
* Add ability to set multiple drag data generators for any drag data type
and change default to be accepted by spreadsheet applications such as Excel
7 years ago
Teemu Suo-Anttila
37c4af2b27
Adds a passthrough to root component for most Composite methods (#9324)
Fixes #9323
7 years ago
Aleksi Hietanen
efa7f5a4d0
Refactor common methods in in-memory data providers (#9308)
* 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.
7 years ago
Adam Wagner
eb743d9652
Add API to store any type of data in the dataTransfer object (#9319)
7 years ago
Teemu Suo-Anttila
04e7259fb4
Add events and functionality to Tree (#9318)
* Add ItemClick event to Tree
* Add collapse provider and style generator to Tree
7 years ago
Henri Sara
e788fa906b
Rename OSGi classes for Java naming conventions (#9320)
- Rename OSGi to Osgi in class names.
- Rename VaadinOSGiPortlet to OSGiVaadinPortlet for consistency with
Spring, CDI etc. add-ons
- Add missing javadoc
7 years ago
Alejandro
91e0eb1ce1
Update video link in tutorial.adoc (#9317)
Updated Vaadin Designer video
7 years ago
Pekka Hyvönen
c0ac7f0196
Fix DnD Polyfill to use isNan(i) instead of i===NaN (#9312)
A Beginners JS mistake. Used in the forked part of the polyfill, related PR for Polyfill has been updated.
7 years ago
Pekka Hyvönen
88b84533e0
Distinguish between touch scroll and drag start on Grid (#9315)
* Set touch scroll timeout for Grid on GridDragSource
7 years ago
Leif Åstrand
6cfd4ed55a
Use theme font and normal line wrapping for regular tooltips (#9143)
Fixes #9121
7 years ago
Henri Sara
8949b2def6
WIP: Allow differentiating touch scroll from DnD (#9309)
* Allow differentiating touch scroll from DnD
Provide Escalator API to check if a touch scroll is active, and to
specify a delay after which a non-moving touch should not scroll.
7 years ago
Pekka Hyvönen
76892855a7
Refactor Html5 DnD feature based on API review (#9306)
* Refactor Html5 DnD client side based on API review
- Moved classes to "correct" packages.
- Removed method DragSourceExtension.clearDataTransferText()
- Remove ButtonDragSource in favor of more generic API
7 years ago
Artur
22848f3420
Properly remove service destroy listeners (#9304)
Fixes #9291
7 years ago
Adam Wagner
494b90a81c
Create upload URLs only when stream variable is attached by drop handler (#9301)
* Create upload URLs only when stream variable is attached by drop handler
* Add file size limit to test ui and remove label drop target
7 years ago
Adam Wagner
bda8acb856
Poll server for changes at the end of each file upload (#9300)
* Poll server for changes at the end of each file upload
7 years ago
Pekka Hyvönen
8591ce8deb
Fix broken DragEnd event introduced in a recent PR (#9297)
7 years ago
Pekka Hyvönen
f72ac12fd2
Add mobile html5 dnd support using polyfill (#9282)
First step of mobile DND support.
- Add mobile html5 dnd support using polyfill
- Adds a switch for enabling mobile html5 dnd support
- Adds polyfill only when needed
- Ignore native Android Chrome drag start because doesn't work properly
(no dragend event fired)
- Add documentation on enabling mobile HTML5 DnD support
- Add mention of drag-drop-polyfill license
- Fixed issue in polyfill when not using "snapback"
- Add mention of forked polyfill
Fixes #9174
7 years ago
Adam Wagner
e2e3058a49
Make it possible to upload files by dropping them onto a drop target (#9277)
Fixes #8891
7 years ago
Adam Wagner
a4ffc1e159
Generate style name on every dragenter (#9292) (#9293)
Fixes #9292
7 years ago
Knoobie
7b1e48f469
Make clicking checkbox label call focus listeners (#9271)
Fixes the remaining issue from #3944 for Firefox so that a click on the checkbox label calls the focus listener.
Fixes #9290
7 years ago
Aleksi Hietanen
dc6e754f8c
Reset HierarchicalDataCommunicator on changes (#9275)
Reset HDC when encountering unexpected changes in the data.
Additionally this patch fixes an issue with client and server caches
getting out of sync during resets.
7 years ago