aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Initial import of TypedForm componentfeature/databindingTeemu Suo-Anttila2016-03-142-0/+354
| | | | | | | TypedForm determines the fields from the type class and generates textfields and datefields for editing purposes. Change-Id: I1bbc0e77190a3fc5a74d7339a3127e8a351a01df
* Initial import of TypedGrid component Teemu Suo-Anttila2016-03-1411-0/+721
| | | | | | This patch introduces a generics version of Grid. Change-Id: I0777a0468ccb5f38e266aa0f33ceb8d0324d72dd
* Add simple ListBox component to use with the DataProviderTeemu Suo-Anttila2016-03-056-22/+415
| | | | | | | This patch changes the DummyDataProvider test to use the ListBox storing runnables instead of Buttons with actions. Change-Id: Ie3831ccbd397eb2c145cf2c036fa5e512dcfa230
* Split Filtering and page requests to different RPC callsTeemu Suo-Anttila2016-03-043-2/+39
| | | | Change-Id: I6c0a25f73ba98bf73f1df8382769aed98c3adc11
* Remove dead code, add test component with data communication (#19266)Teemu Suo-Anttila2016-03-044-26/+354
| | | | | | | | Test component has simple buttons for requesting next and previous page. The communication can be tracked through debug logging and all currently available objects are drawn on the screen as Json Change-Id: I850d7223e417437b4e26f236b457b939542ab623
* Improve JavaDocs for DataSources and DataChangeHandlerTeemu Suo-Anttila2016-02-126-52/+97
| | | | | | | This patch also splits DataChangeHandler away from the DataSource interface, making it easier for IDEs to find. Change-Id: I6030dec81870e290abd87bf91c834bc01a870f77
* Move key mapper to super class and provide methods to customise itTeemu Suo-Anttila2016-02-082-11/+27
| | | | | | | Adds a note to create methods of data provider to remind the developer that the method is called from the constructor and should not depend anything initialised on init or in the subclass constructor. Change-Id: Ifb153d5e9ac382318f380e16a3552e316d8197d0
* Provide simple clean up for DataProvider on remove and UI detachTeemu Suo-Anttila2016-02-082-2/+50
| | | | Change-Id: Ib21fbb5a254814725400b31ccaf023e4b7e13d1c
* Fix ListDataSource implementation firing empty remove eventsTeemu Suo-Anttila2016-02-051-1/+1
| | | | Change-Id: I43e0149ddc11aa05b33b299465eb4dbce83ec534
* Remove unnecessary size parameter from data reset in simple modeTeemu Suo-Anttila2016-02-055-20/+7
| | | Change-Id: I861cf9ed99637cd74ecb2f65705a2c7717afbd08
* Refactor DataSource from SimpleDataProvider to super classTeemu Suo-Anttila2016-02-052-30/+42
| | | | Change-Id: I4fcb1dcb2a7d4369e68bc2abc0c1168ad21c8201
* Fix TypedDataGenerator removal from DataProviderTeemu Suo-Anttila2016-02-051-1/+1
| | | | Change-Id: Iadc8d58d790a6b42ab96bded68009191736705d7
* Fix key and active data mapping when adding a data objectTeemu Suo-Anttila2016-02-042-0/+3
| | | | Change-Id: Ibfaf4b62673c008b94e039deb77f6f6d73d83753
* Introduce DataSource API and DataChangeHandler for it Teemu Suo-Anttila2016-02-046-42/+304
| | | | Change-Id: I3b24bca46ffc136884e163c94f3f4c304c1e12b2
* Fix SimpleDataProvider clean up and client-side data tracking on editTeemu Suo-Anttila2016-02-033-12/+18
| | | | Change-Id: I9807717df9cbae47c6532e43a58dd6bb693eaa85
* Split SimpleDataProvider from DataProvider super classTeemu Suo-Anttila2016-02-034-151/+204
| | | | Change-Id: Ib486553fa2f0f9d17de9012413b2647b73c07822
* Add simple data update support to DataProviderTeemu Suo-Anttila2016-02-036-2/+105
| | | | | | | | This patch adds the option of updating an existing data object. Update is done on the next client response to catch any possible changes before and after the update is initiated. Change-Id: I30ca4803dd7c47befcb8e5ae761860c09cbdb8bd
* Add simple support for generic reset for data to DataProviderTeemu Suo-Anttila2016-02-034-16/+155
| | | | | | | Adds a simple test that sorts the data and verifies that the content does not actually change with just sorting. Change-Id: I0d8889694a98da1d55e0335714f63abaedb5684a
* Use key mapping to keep track of data on the client-sideTeemu Suo-Anttila2016-02-023-29/+120
| | | | | | | | This method fixes data removing to be based on the key mapping instead of data content. Also the data clean up is now properly called when dropping data objects. Change-Id: I76a917968026f6c3b2693b52848448de92145fb1
* Add DataKeyMapper to correctly keep track of active dataTeemu Suo-Anttila2016-02-028-18/+371
| | | | | | | Added a simple test that checks transported data correctness. Also provides clean up method to TypedDataGenerator, even though it's not called actually yet. Change-Id: Icef69790732922b63a9874c9b1a6b44d4d682887
* Add simple data add/remove support to DataProviderTeemu Suo-Anttila2016-02-025-7/+109
| | | | | | | | 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-026-32/+160
| | | | Change-Id: I96080e2344ca0626940635dde77f2715c9d62c7b
* Add data communication for DataProvider for CollectionsTeemu Suo-Anttila2016-02-014-24/+195
| | | | | | | 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-297-5/+223
| | | | Change-Id: I190e807094d8e235797e618ea80cb4b7136d1111
* Support non-indexed containers in RpcDataProvider (#19266)Teemu Suo-Anttila2016-01-151-5/+13
| | | | | | | | Any other type of container is supported by getting all the item ids and finding out the part we need to send to the client. This is not optimal, but should work. Change-Id: I02f05f31beddf506fc47a64bc21c98d142e809e0
* Make RpcDataProviderExtension more generic (#19266)Teemu Suo-Anttila2016-01-155-118/+99
| | | | 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
* Refactor ComboBox item painting (#19929)Henri Sara2016-01-151-26/+51
| | | | | | | | | | This is an intermediate step towards a different approach to sending items from server to client. An unused null selection item attribute was removed, as the information is currently communicated outside the item. Change-Id: I9c08d627bcf48fd42793595795aeb3ac49c2fef6
* Request ComboBox pages with RPC (#19929)Henri Sara2016-01-153-16/+27
| | | | | | | | | | 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-153-15/+14
| | | | Change-Id: Ida38de55e1fc06aa6ec5e693f34cd5bc14ac4fc5
* Move ComboBox pageLength to state (#19929)Henri Sara2016-01-156-30/+17
| | | | | | | 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-155-39/+47
| | | | | | Send the selection from the client to the server with RPC. Change-Id: Ic32d869c3dc2a8806f9c7cfd1f3db8263a5379a9
* Send ComboBox focus/blur with RPC (#19929)Henri Sara2016-01-153-18/+61
| | | | | | | | 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-153-13/+21
| | | | | | | 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-153-6/+46
| | | | | | Create an empty client to server RPC implementation for ComboBox. Change-Id: I348208fefb267765814383559e55866bc0933e4b
* Use shared state in ComboBox (#19229)Henri Sara2016-01-154-73/+51
| | | | | | | 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
* Fix demo and archetype build scripts to deploy all wars at onceTeemu Suo-Anttila2016-01-132-13/+27
| | | | Change-Id: I5ddf43d0c895404abf2139c847ac805ef08452c8
* Add clarifying comment to CustomDetailsGeneratorTeemu Suo-Anttila2016-01-121-1/+3
| | | | Change-Id: I9e6668b1fbc0a956bf34b48b75df59279005d097
* Add missing @since for 7.6.1Teemu Suo-Anttila2016-01-123-2/+4
| | | | Change-Id: Ic28598e561f0fc325b6f74ace3398d46ba996fb5
* Use LayoutManager for details rows (#18821, #18619)Leif Åstrand2016-01-128-11/+457
| | | | Change-Id: I430e55db8a3e2860f68f5351e06d8d069a657d6e