aboutsummaryrefslogtreecommitdiffstats
path: root/client
Commit message (Collapse)AuthorAgeFilesLines
* Add simple data add/remove support to DataProviderTeemu Suo-Anttila2016-02-021-0/+16
| | | | | | | | Removal is currently based on the content of the object. Multiple objects with same content will cause problems. This should be fixed by adding a simple key mapping for objects. Change-Id: Ie6fd1c6bcb7e8eaa73469f8f794f5365b1590fe2
* Implement TypedDataGenerator support and clean up client-side codeTeemu Suo-Anttila2016-02-021-0/+45
| | | | Change-Id: I96080e2344ca0626940635dde77f2715c9d62c7b
* Add data communication for DataProvider for CollectionsTeemu Suo-Anttila2016-02-011-3/+28
| | | | | | | After this patch, the object is passed to the client-side as a JsonObject containing a key "k" with value from object.toString() Change-Id: I3f83144a6c84dda9812739ff2f2cb74cb5577d5c
* Add a dummy DataProvider for CollectionsTeemu Suo-Anttila2016-01-294-5/+55
| | | | Change-Id: I190e807094d8e235797e618ea80cb4b7136d1111
* Make RpcDataProviderExtension more generic (#19266)Teemu Suo-Anttila2016-01-153-9/+52
| | | | Change-Id: I3099f2568b70670248983f735aa6cbac46238b34
* Minor ComboBox client side cleanup (#19929)Henri Sara2016-01-152-27/+2
| | | | | | Remove unused references to immediate flags. Change-Id: I780fcf44f9824a132acb35d37d40d8c969d4f0f3
* Move combo box selection update logic to handler (#19929)Henri Sara2016-01-152-90/+136
| | | | | | | Move logic related to updating the selection to the handler and VFilterSelect. Change-Id: I537d3cd23a3e990de1be578a506029c930c55da7
* Move more combo logic to handler (#19929)Henri Sara2016-01-152-58/+61
| | | | | | | | | - Move waitingForFilteringResponse etc. to the data received handler. - Change some setters to parameterless methods that trigger a state transition. Change-Id: Ifb92207853d4ec76db846945f69a426c885562ed
* Use a separate data received handler in VFilterSelect (#19929)Henri Sara2016-01-152-119/+156
| | | | | | | | | | Move parts of the request handling to a separate handler class that keeps track of the current communication state etc. This is an intermediate change. Later changes should move waitingForFilteringResponse etc. to the handler. Change-Id: I762d15cc4b54ead3003e6d9d913e2a975256644c
* Move combo popup opener clicked flag to connector (#19929)Henri Sara2016-01-152-36/+30
| | | | | | | The flag is only used by the connector to temporarily block certain operations. Change-Id: I90cabcb26d938a6db342ff549ac2e4b8d8998aeb
* Refactor ComboBox pending selection handling (#19929)Henri Sara2016-01-152-80/+62
| | | | | | | | Move the handling of selection when a navigation operation pends on server reply to the connector, with a callback that actually performs the selection. Change-Id: I3fa95cda6d7e02ce5aa4140ed341b2d1ba74abfc
* Use accessors for combo internal state (#19929)Henri Sara2016-01-152-25/+114
| | | | | | | This is an intermediate step towards refactoring the communication related client side internal state management. Change-Id: I31ba382fb195b7b7c80de35f464db2510ecd9515
* Remove obsolete code (#19929)Henri Sara2016-01-151-4/+0
| | | | | | | | A previous change left a few obsolete lines related to pageLength in ComboBoxConnector.updateFromUIDL(). Those are removed here. Change-Id: I4c2d151afbb1acf604e4c24ed320b12ce5632b1f
* Remove UIDL references in VFilterSelect (#19929)Henri Sara2016-01-152-17/+27
| | | | Change-Id: I403ca3a62e04c03594608fd5d75a97991f7dda3d
* Request ComboBox pages with RPC (#19929)Henri Sara2016-01-151-6/+2
| | | | | | | | | | All client to server communication of ComboBox is now done with RPC. There is still an empty changeVariables() methods to override the default behavior in AbstractSelect. Change-Id: Ic11ea48cac1846272609f6e4107bb0006d18494c
* Move ComboBox filtering mode to state (#19929)Henri Sara2016-01-151-6/+2
| | | | Change-Id: Ida38de55e1fc06aa6ec5e693f34cd5bc14ac4fc5
* Move ComboBox pageLength to state (#19929)Henri Sara2016-01-152-6/+2
| | | | | | | Use shared state for the page length and update related tests. This change also removes an unused widget field. Change-Id: Id8719661121a9570be40028da09e32f27bec82b5
* Send ComboBox selection with RPC (#19929)Henri Sara2016-01-152-7/+5
| | | | | | Send the selection from the client to the server with RPC. Change-Id: Ic32d869c3dc2a8806f9c7cfd1f3db8263a5379a9
* Send ComboBox focus/blur with RPC (#19929)Henri Sara2016-01-152-10/+52
| | | | | | | | Send focus and blur events using RPC instead of in UIDL. This change does not use ConnectorFocusAndBlurHandler to preserve old timings. Change-Id: I1d58756e3955a11864b1ef00abcd27525a4db593
* Create new items with RPC (#19929)Henri Sara2016-01-151-2/+1
| | | | | | | When the user creates a new item, send it with client to server RPC. Change-Id: I1b92073dc2791911e4916d17f749dc1f35e54bca
* Move ComboBox communication to connector (#19929)Henri Sara2016-01-152-25/+94
| | | | | | | This change extracts the client to server communication methods of VFilterSelect and moves them to the connector. Change-Id: I07f61abeda503de5d63e332d8ead10cf312115ba
* Create ComboBoxServerRpc stub (#19229)Henri Sara2016-01-151-0/+5
| | | | | | Create an empty client to server RPC implementation for ComboBox. Change-Id: I348208fefb267765814383559e55866bc0933e4b
* Use shared state in ComboBox (#19229)Henri Sara2016-01-151-21/+24
| | | | | | | This change uses shared state for the read-only flag, text input allowed flag and input prompt. Change-Id: I3bdc6843288c5309311461a3d036293d79004e22
* Clean up SingleSelectionModel client-side on data source change (#19469)Teemu Suo-Anttila2016-01-131-0/+10
| | | | Change-Id: Ie0044341725b858e5cbae150da757aba878fc9ed
* Add clarifying comment to CustomDetailsGeneratorTeemu Suo-Anttila2016-01-121-1/+3
| | | | Change-Id: I9e6668b1fbc0a956bf34b48b75df59279005d097
* Add missing @since for 7.6.1Teemu Suo-Anttila2016-01-122-1/+3
| | | | Change-Id: Ic28598e561f0fc325b6f74ace3398d46ba996fb5
* Use LayoutManager for details rows (#18821, #18619)Leif Åstrand2016-01-124-11/+106
| | | | Change-Id: I430e55db8a3e2860f68f5351e06d8d069a657d6e
* Split VOverlay functionality to a new base class (#19347)Teemu Suo-Anttila2016-01-124-1010/+1070
| | | | | | This fixes the missing z-index for the Grid popup. Change-Id: I5474fe653ad4ece38e9bc3cb2331a1d2190ea898
* Fix ScrollbarBundle to not round down pixel values (#19421)Teemu Suo-Anttila2016-01-081-12/+2
| | | | | | | | | Since Escalator now uses subpixels in most cases, scrollbar calculation fails when ScrollbarBundle calls Math.floor for the offset size. Removed rounding, added a pixel epsilon check that we don't make a scrollbar when it's not really needed. Change-Id: I228fd7dd48d4506e5b2b7bb799291c9a122ea3fe
* Support non-AbstractFieldConnector fields with Grid Editor (#19440)Teemu Suo-Anttila2016-01-071-6/+6
| | | | Change-Id: Ib3eaf0b35cfe88391c8ab3b5fcbe668d67c2dd3c
* Always set header/footer style name to TH (#19209)Artur Signell2016-01-071-1/+1
| | | | Change-Id: I8d0240fb76b9841e7290bf13588975da20c78b62
* ConnectorHierarchyChangeEvent.getParent() should return the connector (#18525)Artur Signell2016-01-071-11/+8
| | | | Change-Id: Ifd2151a76ff77127170f2d95a800dfb7d601a7d3
* Fixes exception when enter is pressed and there is nothing to select (#19149)Artur Signell2016-01-071-2/+10
| | | | Change-Id: I8ff11e98bb4ec999d369ff5bcde0cb95290ed037
* Add a client-side connector for DetailsComponentManager (#19412)Teemu Suo-Anttila2016-01-051-0/+36
| | | | Change-Id: Ibc4d35a8f729b670d8712743c9da8d608a0ba952
* Listen to body for shortcut actions for standalone apps (#19392)Artur Signell2016-01-042-14/+19
| | | | Change-Id: I48cc4884fce984354dafa2096e488c3c6dec141c
* Add keyboard shortcut to save grid editor in buffered mode (#16842)Teemu Suo-Anttila2015-12-281-1/+9
| | | | Change-Id: I4f542d166e15a63f12f8033aec4ef7b95578df71
* Fix WidgetRenderer column cells not correctly init on change (#19086)Teemu Suo-Anttila2015-12-222-2/+29
| | | | | | | | | | | | | | | | | When changing to a widget renderer with an existing column, the widget renderer expects that the cells would be initialized to have a correct widget for it. Because of original design where you could not change renderers, this was not taken into account and cells did not get reinitialized when changing the renderer. This patch showed another underlying detach problem from removing a widget renderer and destroying complex renderers. These both are also addressed to make this bug possible to test correctly. Patch includes a client-side test that verifies the integrity of the renderer state in different stages of its lifecycle. Change-Id: I67330e5d07c95047cb69040e8355a17dc8a96f08
* Disable long tap support on iOS (#19367)Henri Sara2015-12-211-1/+1
| | | | | | | | | Long tap causes problems in embedded browsers on iOS (text selection is performed and/or the OS native context menu is shown). The support should be re-enabled in the future (see #19406). Change-Id: I842df12675482c8e529e8bb061958414cc8c0b90
* Ignore context click on resize handle (#19408)Henri Sara2015-12-211-0/+16
| | | | | | | Otherwise, context clicks in the left edge of a header cell get handled by the wrong cell. Change-Id: I08e0c6bb62c90cc871fde7ec1d0f0a8602e5631f
* Fix IE8 focus handling in Grid editor in unbuffered state (#19389)Teemu Suo-Anttila2015-12-181-1/+22
| | | | Change-Id: Ia77c246239cae7b0add3c4975dfa5ffaa42d08b6
* Verify Column width after all sort related cell changes (#16597)Teemu Suo-Anttila2015-12-181-6/+4
| | | | | | This fixes an IE8 issue where multisorting is not shown correctly. Change-Id: Id68103f06baf9e3ae20cb2714407b467829ef1a0
* Disable Atmosphere online/offline handling (#19391)Artur Signell2015-12-171-0/+1
| | | | | | | | | | | | | | | | Atmosphere will disconnect the push connection when going offline and reconnect it when going online again. There are no events sent when this happens, which means the reconnect logic cannot take this into account. Having it enabled leads to something like: 1. Browser goes offline, push is disconnected 2. Framework sees it as a normal close and does not show the reconnect dialog 3. The user does something, the framework tries to send a websocket request 4. A new Atmosphere request is created and enters a try-to-reconnect loop as expected 5. The browser goes online, and the online event re-initializes the old connection although a try-to-reconnect loop is already running Change-Id: I5dcef768783142e2c7b4e7c821353addb0ec3d28
* Parse true/false as boolean values for push configuration (#19394)Artur Signell2015-12-171-2/+17
| | | | Change-Id: I89e99ebd552b00a1bdc79801a8236aff72b6a290
* Fix Grid column resize to take account min width for cells (#16597)Johannes Dahlström2015-12-162-45/+113
| | | | | | | | Use Escalator cell size calculation without content to determine the absolute minimum size for cells. This is used in Grid when drag resizing or sorting columns to prevent cells from overflowing to the next row. Change-Id: I2d598232d7d2b8729b11fe190b68ca3e42ee3652
* Make it possible to only show collapsible columns in menu (#9811)Leif Åstrand2015-12-162-4/+16
| | | Change-Id: I52cd2648d305f44d5688e7a2fcd222e6b167b97b
* Fix text selection and context click events for Android devices (#19367)Teemu Suo-Anttila2015-12-151-7/+11
| | | | | | | | Text and element selection needs to be disabled on touch start for Android as well. Other touch event handling used by iOS devices is not used on Android. Change-Id: I7f17af437ddf4f7b747232fbd19b2cd5c825c0e2
* Ignore empty style names from Grid Row and CellStyleGenerators (#19364)Teemu Suo-Anttila2015-12-151-5/+8
| | | | Change-Id: I07b241f40bcb20b92f9eea48036724dd91ecc985
* Prevent text selection on iOS devices with long tap (#19367)Teemu Suo-Anttila2015-12-151-0/+6
| | | | | | | | Text or elements should not get selected when there's a context click listener. Pre-emptively prevent text selection for the whole widget when that happens. Change-Id: I3c09d8b2c25d383d6abe079f0fee3809cf5838c7
* Add a method to clear selected text on context click (#19367)Teemu Suo-Anttila2015-12-155-3/+25
| | | | Change-Id: Id7ec7013bcff446cdf3ce0f2088cb20b0708a56b
* Fix mouse wheel scrolling of ComboBox in IE11 (#16918)Anna Koskinen2015-12-152-18/+154
| | | | | | | | IE11 is broken so that the simple implementation always moves up on any mouse wheel event. Therefore, this change borrows the approach taken by Escalator for low-level handling of mouse wheel events in a way compatible with all supported browsers. Change-Id: I98c89d3ccfeea38d6a454ef708f0eb7d1d3f480c