summaryrefslogtreecommitdiffstats
path: root/client
Commit message (Collapse)AuthorAgeFilesLines
* Add stylename to sortable Table header cells (#8219)Leif Åstrand2015-11-271-0/+12
| | | | Change-Id: I4774b4079f5c564fdc67e8cabf89278ad7cf2f6f
* Add stylename to sortable Grid header cells (#16991)Leif Åstrand2015-11-251-6/+15
| | | | Change-Id: I6c151829236928129c258a99177431d0b972f146
* Omit empty hierarchy data from the response (#18510)Leif Åstrand2015-11-251-123/+166
| | | | | | | | Reduces the payload size for the "Update all labels" action with 40 layouts in BasicPerformanceTest by 16% (from 11087 to 9270 bytes). The reduction is improved to 22% (1855 to 1455) if the response is gzipped since the omited data doesn't compress very well. Change-Id: I1d2837c93222fffa59b14836f162e3e87349e086
* Add comment explaining the dummy read in setStyleTemporarilyLeif Åstrand2015-11-241-1/+4
| | | | Change-Id: I763f3c68a3c9e471f9e5df21bbfbce41be17117c
* Add javadoc in ServerConnectorHenri Sara2015-11-232-5/+38
| | | | | | Add missing javadoc for ServerConnector.get/setChildren(). Change-Id: I7ba143d41602a5f2a069635911a0ea61a92806e6
* Isolate text selection blocking to Grid instead of body element (#16838)Teemu Suo-Anttila2015-11-201-7/+7
| | | | | | | | Some themes are more explicit with user-select rules, and doing this on the level of body element does not work with said themes. To make all the themes behave the same way, we only block selection inside of Grid. Change-Id: Iaf24fede88e4bc683e065c214e7baf3f545c99c9
* Prevent text selection while DnD resizing columns (#16838)Teemu Suo-Anttila2015-11-182-0/+32
| | | | | | | | | | This patch uses a JavaScript workaround to prevent text selection in IE8 and IE9 and Safari. The selection is prevented everywhere in the DOM while a column is resizing. Change-Id: I1e7b9cdc675c83a9666493d8545337d601e40077
* Use TabState.id for Accordion tab items as well (#18456)pag2015-11-131-0/+16
| | | | Change-Id: I17206081109b2ec356d175915a16b0002a858bb4
* Add some performance guidance to renderer javadocs.Leif Åstrand2015-11-132-1/+12
| | | | Change-Id: I5171c6eb6360a9c85b8afbc3096d9b6c5c8f4064
* Mention cell being a flyweight in WidgetRenderer javadocsLeif Åstrand2015-11-131-1/+3
| | | | Change-Id: I41de3d75e1141856bb6132aeca11abff4bc7e08f
* Optimize layout performance of Table (#17947)jotatu2015-11-056-10/+190
| | | | | | | | | | | | | | | | | | | | | Adds functions for skipping child component layout measuring. Removes unnecessary code from VScrollTable. 1. case: no components - render time without the fix: ~105ms - render time with fix: ~105ms 2. case: 2 button and 2 textfield cols - render time without the fix: ~279ms - render time with fix: ~240ms (~17% faster) 3. case: 3 button and 3 textfield cols - render time without the fix: ~350ms - render time with fix: ~281ms (~20% faster) Change-Id: I6025f8ee2fd438d228ff3b65f43535961cf12c0b
* Render null header caption as empty (#18553)Artur Signell2015-11-031-3/+1
| | | | Change-Id: Iaeba81c7e40d4be5f16e74fa8bcf8c86c53a7d3d
* Changed grid sidebar to overlay (#18698)mtzukanov2015-11-031-34/+42
| | | | | | | | | Previously grid sidebar could be partially hidden by "overflow: hidden" of an ancestor component. Now it's in an overlay and the hierarchy doesn't affect it. Grid tests were also updated for new DOM structure. Change-Id: Ic5fb125d9c097be0f0141c121dfe74d30e650dd0
* Force FormLayout children to shrink with the layout (#11154)Leif Åstrand2015-11-032-2/+145
| | | | | | | | | | | The <table> used by the FormLayout doesn't reduce its size if any child component has locked its own size (which is the case with e.g. Table and some other components doing explicit pixel calculations). To work around this, we need to detect the situation, force the <table> to reduce its width by temporarily assigning explicit widths to the cells and then remove the forced size after all children have adjusted. Change-Id: Iacef62979acf24c869a5cbeb82efb0c1e537ec95
* Reset sort indicator when saving editor. (#17428)Sauli Tähkäpää2015-11-021-1/+10
| | | | Change-Id: Idaaf707bdb4178ff4ff5dfc7af853f08d5690b5e
* Touch long tap context click emulation improvements (#19222)Markus Koivisto2015-11-021-11/+38
| | | | | | | | Removed Android handling since it already fires a context menu event when not selecting text. Increased the threshold for iOS move. Prevent some browser default functionality on TouchEnd after sending context click event to server. Change-Id: I9297a5738e593a260b50ba176d483fbdd3293ba3
* Null pointer Exception in Slot.onBrowserEvent (#16587)pag2015-10-291-1/+1
| | | | Change-Id: I60f68cf7a9e61980809af253bb4f4a0ab92f1230
* Fixes column header drop indicator (#18925)mtzukanov2015-10-292-33/+19
| | | | | | | | | | | | | Calculation of the frozen column width was wrong in multiselect mode. It did not take into account the last frozen column, but added the select column twice. The same problem was in AutoScroller (as the same methods were copy-pasted there), for which reason the autoscrolling was not scrolling till the end. This patch fixes the calculation error and removes copy-pasted code, reusing the same code in both places. Change-Id: I164e2fc96688088b620ad8785c533c593723f83e
* Fix VAbstractOrderedLayout widget removal race condition (#18703)7.6.0.beta1Teemu Suo-Anttila2015-10-271-3/+4
| | | | | | | | Removing a widget that got moved to another layout occasionally caused slot to lose track of related widget. As a result the layout never created a new slot when the same widget is put back in there. Change-Id: I0d8793324b8a5ac8a06aa2803ac8de22b90b7545
* Add ContextClickEvent for touch events (#19206)Markus Koivisto2015-10-274-31/+205
| | | | | | | | Touchstart events now fire a contextclick event if there is a context click listener. Refactored sendContextClickEvent to accomodate the change. Change-Id: I9bce5948f89149e9ecb261cfd8ae918470ccec3e
* Remove scheduleDeferred calls from EscalatorTeemu Suo-Anttila2015-10-231-4/+4
| | | | Change-Id: Idfde7842fd31be4b84a1436b40eaa932b6a6c349
* Set pixel sizes to Grid columns when user starts drag resize (#16838)Johannes Dahlström2015-10-211-0/+8
| | | | | | This makes column resizes smoother and more intuitive. Change-Id: I6e4e92e0391d8f95f74ec89cfc3ffbbb133c7ecc
* VTree$TreeNode avoid NPE triggered by external ONLOAD events (#18563)pag2015-10-191-1/+1
| | | | | | | | | If an ONLOAD event fires but the target is not the icon, an NPE occurs. The isCaptionElement method has already used the check against null before any call happens on the icon which logic is enough for the onBrowserEvent check as well. Change-Id: I64de45a07f50f113dcfcb4556f0d8adeea9e1b1b
* Implemented HasEnabled on VLink (#18530)Marco Collovati2015-10-191-1/+12
| | | | | | | | Method setWidgetEnabled in AbstractComponentConnector, called from updateEnabledState, sets enable state only for widgets implementing HasEnabled interface. Change-Id: Idc700d0c28efd13b9a9470333b19a1509cca4a51
* Provide own states for a number of components (#18987).Denis Anisimov2015-10-166-4/+30
| | | | Change-Id: I9fe4a332bb8170a6482610d1b83bad73e049a3a1
* Remove call to setEnabled in Grid Sidebar constructor (#19126)Teemu Suo-Anttila2015-10-151-2/+0
| | | | Change-Id: I2b700c72bcdc0f3a6c75a5bfb31059a986bd4dc9
* Support ContextClicks in empty areas of Table and TreeTable (#19130)Teemu Suo-Anttila2015-10-141-10/+15
| | | | | | | When the user clicks an empty area, the TableContextClickEvent will still fire, but will have a null property. Change-Id: I39303f1a72d072db09c4fe6df8141d6caf0764c2
* Support Grid context click events in the empty areas of Grid (#19128)Teemu Suo-Anttila2015-10-143-5/+15
| | | | Change-Id: Ia6aebc266c48fb284ebf8f7a89375390555d1bec
* Move RpcDataProviderExtension and DataGenerator to correct packageTeemu Suo-Anttila2015-10-131-1/+1
| | | | | | | | New location is com.vaadin.server.communication.data as the extension only manages the communication of container data to a client-side data source. Change-Id: I7aeefe23c9d771d70bc1dd389bc7f0c3357f0a17
* Fix empty @since for 7.6.0.alpha77.6.0.alpha7Markus Koivisto2015-10-123-3/+3
| | | | Change-Id: I8045727400c795fca78561c1a4c859595f7c53af
* Fix empty @since for 7.6.alpha7Markus Koivisto2015-10-092-3/+3
| | | | Change-Id: I97e36b388ce0002363a8022eed41d425f12b822d
* Add Grid column resize event API (#16838)Johannes Dahlström2015-10-094-16/+145
| | | | Change-Id: I1cdecb54b3df45b16ddf2c7b06261198be086274
* Fix stack overflows in ListDataSource ListWrapper (#19104)Teemu Suo-Anttila2015-10-091-2/+2
| | | | Change-Id: Ie04e673fcdb3ce0f63b07158b5cd9f128ea9c30e
* Add Grid.deselectAll() (#18339)Artur Signell2015-10-091-0/+26
| | | | Change-Id: I5d5237fcc06ae184a884cb17fa9b6eee5c37179a
* Fix Checkbox event handling in Grid Editor (#19096)Teemu Suo-Anttila2015-10-081-6/+6
| | | | | | | | This patch limits event preventDefault calls to happen only with Tab navigation. No other events are prevented by default anymore. Earlier implementation that prevented too many events was in patch for #16841 Change-Id: I78924d35c86b822295fdaf720b3e4540c43df5c0
* Report user-resized column widths to server (#16838)Johannes Dahlström2015-10-083-6/+18
| | | | Change-Id: Id53bab75688ab7f01d6b64f679d2a40e03714c97
* Add API for setting Grid columns resizable (#16838)Johannes Dahlström2015-10-082-17/+65
| | | | | | | By default columns can be drag-resized by the user. This can be changed on a column-by-column basis. Change-Id: I8354e270db9affe865d1444d6cccbe8c839a3b5b
* Update/add @since tags in javadocHenri Sara2015-10-0710-2/+24
| | | | Change-Id: Ifd93251fdc20b93ad276c551796557bb9026766a
* Add handles to Grid default header for column drag resize (#16838)Patrik Lindström2015-10-074-61/+387
| | | | Change-Id: If8399a13585ae691ea3b3ee4a41a1a38b342adb9
* Remove Grid EditorEvents and ListenersTeemu Suo-Anttila2015-10-078-323/+0
| | | | | | | The EditorEvent API is not mature and useful enough to be present in a stable release. Change-Id: Ia982cb1a6e7b6a3518ea0f187993a964aafa1d53
* Add support for TreeContextClickEvents (#19062)Teemu Suo-Anttila2015-10-052-2/+29
| | | | | | | | | | | | Tree connector now overrides the send context click event providing the row key to the server-side via RPC call. This is then passed on to a TreeContextClickEvent and fired to listeners. This patch modifies the test base for context click testing by making it tolerate 1 piksel differences. This was to fix any subpixel related issues in coordinate comparison. Change-Id: Iacced274a6b518b5f89378cbc32b8381362e1e4f
* Add GridContextClickEvent with item ids, properties and section (#16855)Teemu Suo-Anttila2015-10-0510-14/+35
| | | | Change-Id: I03091a3a7a22a921c127ed0b37fe792871ba5edd
* Add Tree.htmlContentsAllowed (#7717)Leif Åstrand2015-10-022-2/+17
| | | | Change-Id: I5c773da806b8358ee203c9c12fd2e2b6fec1970f
* Fix TreeTableContextClick support (#19056)Teemu Suo-Anttila2015-10-022-1/+10
| | | | Change-Id: Ib6bac73ba96c4919df2e1bf5c9c83160707530bb
* Implement ContextClickEvent for Table (#19042)Teemu Suo-Anttila2015-10-021-0/+61
| | | | | | | This patch also introduces a testing infrastructure for context click event and listener testing. Change-Id: I3aa88758278c91086df3d0971edb34914a93fd29
* Add support for ContextClickEvent in AbstractComponent (#19015)Teemu Suo-Anttila2015-10-017-40/+45
| | | | Change-Id: I93d5d20925b8ac9b4b108ccc6deec2090e68aa0d
* Close calendar popup when DateField is detached (#18985)Teemu Pöntelin2015-09-301-0/+1
| | | | Change-Id: Ib04b7356577dd5027cd9daac351f49a1a1e23f1d
* Output end-to-end bootstrap time (#19034)Leif Åstrand2015-09-291-0/+19
| | | | Change-Id: Ie3d75b3ca0c6535f03d08672677ffb95a86bde2f
* Skip checking unknown properties for @NoLayout on client side (#18334)Artur Signell2015-09-291-1/+2
| | | | Change-Id: Ic03b419b8c10d5d7010c3d10479883149445fe40
* Log reason for loading a connector bundle (#19024)Artur Signell2015-09-291-1/+6
| | | Change-Id: Idbad38ccbe519b6e0e5948a4d49e496e42845e3d