Bug 469943 - JavaFX toolkit - Support lists with nested items
Summary: JavaFX toolkit - Support lists with nested items
Status: CLOSED INVALID
Alias: None
Product: Jubula (Archived)
Classification: Technology
Component: RC (show other bugs)
Version: unspecified   Edit
Hardware: All Windows All
: P3 enhancement (vote)
Target Milestone: 4.0   Edit
Assignee: Marcel Hein CLA
QA Contact: Oliver Goetz CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 421595
  Show dependency tree
 
Reported: 2015-06-11 09:48 EDT by Maissmaallsmyss Maulhs-Vvuillss CLA
Modified: 2016-05-19 03:39 EDT (History)
2 users (show)

See Also:


Attachments
The image of list with nested items (5.82 KB, application/zip)
2015-06-12 01:40 EDT, Maissmaallsmyss Maulhs-Vvuillss CLA
no flags Details
logs and test results (4.97 KB, application/zip)
2015-06-12 02:33 EDT, Maissmaallsmyss Maulhs-Vvuillss CLA
no flags Details
Test reults - OK (2.07 KB, application/zip)
2015-06-12 04:49 EDT, Maissmaallsmyss Maulhs-Vvuillss CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maissmaallsmyss Maulhs-Vvuillss CLA 2015-06-11 09:48:48 EDT
For Lists currently there is an Integer Index parameter for a drag-action (per Indexpath), while for the selection by Indexpath Index is a String. String index parameter allows to access sub-nodes (e.g. 1/1). For a drag-action its not possible, so I cannot reach the element I need.
Comment 1 Alexandra Schladebeck CLA 2015-06-11 10:10:43 EDT
I'm afraid I don't quite understand: do you have a list with nested entries? The index should simply be e.g. '1' or '4' to select the 1st or 4th item. If the list has nested items, then we'd have to add that support separately.
Comment 2 Maissmaallsmyss Maulhs-Vvuillss CLA 2015-06-12 01:40:56 EDT
Created attachment 254362 [details]
The image of list with nested items

Hi, yes, the list contain nested entries (see attached image), only child nodes can be dragged. It would be nice to support such lists.

Now the string index to access sub-nodes (e.g. 1/1) leads to "invalid index" action error during the list entry selection.
Comment 3 Maissmaallsmyss Maulhs-Vvuillss CLA 2015-06-12 01:47:51 EDT
This list is located within an accordion tab.
Comment 4 Alexandra Schladebeck CLA 2015-06-12 01:59:13 EDT
Hi Marcel,

can you find out what kind of component this is in a technical sense? Perhaps by also talking to Kristian about it?

Thanks!
Alex
Comment 5 Alexandra Schladebeck CLA 2015-06-12 02:01:34 EDT
*** Bug 469945 has been marked as a duplicate of this bug. ***
Comment 6 Marcel Hein CLA 2015-06-12 02:13:10 EDT
Maissmaallsmyss could you provide a screen-shot of the actual component in the AUT and/or an exported Testresult and the javafx log.
Comment 7 Alexandra Schladebeck CLA 2015-06-12 02:15:00 EDT
You can send it directly to Marcel if it's confidential.
Comment 8 Maissmaallsmyss Maulhs-Vvuillss CLA 2015-06-12 02:33:46 EDT
Created attachment 254364 [details]
logs and test results

I´ve send the screenshot with component directly to Marcel. Here are logs and test results.
Since the drag action with index "1" is considered successful (while the log still contain the exception message), it brings me nothing, because only nested items are draggable.
Comment 9 Marcel Hein CLA 2015-06-12 03:18:39 EDT
Thanks, that helped to understand the problem.
1. The select cap is not a selection by indexpath but a selection of multiple indices separated by ",".

2. Indexpath is also not supported for drag and drop in list, however you should be able to access all items in the list by their index or value. In the screenshot you've send me I could the that the list has categories, but this should not affect the navigation via index or value. Have you already tried to use "normal" Index of an Item? For example the element Doko Pritsche in your list should have the index 5.

3. You are trying to drag something into a tree, please make sure that the item on which you want to do the drop action is already visible, because we currently don't support drag & drop for non visible tree items. 
see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=439115
Comment 10 Maissmaallsmyss Maulhs-Vvuillss CLA 2015-06-12 04:49:26 EDT
Created attachment 254369 [details]
Test reults - OK

Hi, thanks a lot! You are right, there are actually no nested items, just some tree entries are not accessible and the indexation is other, then I expected. Doko Pritsche with index 5 was right. Now drag and drop for this list executes successfully.
Comment 11 Maissmaallsmyss Maulhs-Vvuillss CLA 2015-06-12 04:50:32 EDT
So I am closing the Bug as invalid due to comment 9, comment 10
Comment 12 Alexandra Schladebeck CLA 2015-06-12 05:19:42 EDT
Awesome! Thanks Marcel and Maissmaallsmyss for getting this resolved so quickly :)