|
So leadItem and anchorItem do not reflect the current selection state
right? In my use case I delete some or all TreeFiles and TreeFolders from a Tree. I'm first doing a getManager().deselectAll(). Then I'm removing some the TreeFiles and TreeFolders. So the values of leadItem and anchorItem still hold a reference to maybe deleted TreeFiles and TreeFolders. When I then change the selection (by eg. clicking on a folder or file) the selection manager changes the properties leadItem and anchorItem. The modifiers for these properties try to render the disable state of the previous leadItem and anchorItem value and fail with an exception because they are deleted from the tree. Should the modifiers catch this case or should the removal method handle that? Sebastian Werner schrieb: I think the current behavior is correct. To reset the selection does no mean you want to forget all about the state of the widget. The anchor and lead items are needed for keyboard support etc. The Explorer(TM) seems to work identical.Cheers, Sebastian Dietrich Streifert schrieb:Hello List, when calling deselectAll in the qx.manager.selection.TreeSelectionManager like this: tree.getManager().deselectAll() calling tree.getManager().getLeadItem() and tree.getManager().getAnchorItem() still retrieve the leadItem and the anchorItem of the last selection. Is this behaviour a bug or is this intended? I've attached a testcase which is intended to run from frontend/demo/source/html/test. Please select first a tree folder or a tree file. Then click on the button "Deselect All Items" and then then button "Show Lead and Anchor Item". You can see that the leadItem and the anchorItem is still not null as it should be. Should I open a bug for this? ------------------------------------------------------------------------ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ------------------------------------------------------------------------ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel -- Mit freundlichen Grüßen Dietrich Streifert Visionet GmbH |
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
