| Summary: | Check child nodes when parent node is checked. | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Daniel Egger <daniel.egger> | ||||||||||
| Component: | Scout | Assignee: | Project Inbox <scout.core-inbox> | ||||||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||||||
| Severity: | enhancement | ||||||||||||
| Priority: | P3 | CC: | jeremie.bresson, stephan.merkli | ||||||||||
| Version: | unspecified | ||||||||||||
| Target Milestone: | --- | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Windows XP | ||||||||||||
| Whiteboard: | |||||||||||||
| Bug Depends on: | 415320 | ||||||||||||
| Bug Blocks: | |||||||||||||
| Attachments: |
|
||||||||||||
The attached patch will add a new method named getConfiguredCheckChildren If getConfiguredCheckChildren is set to true then the checking behaviour will change for TreeNodes which also have child-nodes. All the child-nodes will get checked if the parent-node gets checked. All the child-nodes will get unchecked if the parent-node gets unchecked. Created attachment 233194 [details]
Patch for AbstractTreeBox / ITreeBox
Thanks for the initial patch, added revised patch working with AbstractTreeBox instead of AbstractTree.
Created attachment 233195 [details]
Example form to test new behavior
Created attachment 234342 [details]
JUnit Test
@Jérémie: please add JUnit test to Scout 3.9 / 3.10 GIT repo and cherry pick SVN revisions 3513 & 3517. Thanks. The patch for 3.9.1 is staged on GitHub: https://github.com/BSI-Business-Systems-Integration-AG/scout.rt/commit/91ab74776dc0ce8ac7f0cd506f03f41df262021e For the moment, when I try to push it on Eclipse Gerrit, I get this error: ************** Reviewing commit: commit 91ab74776dc0ce8ac7f0cd506f03f41df262021e 1376397393 ----sp Authored by: Stephan Merkli <sme@bsiag.com> error: The author does not have a Gerrit account. All authors must either be a commiter on the project, or have a current CLA on file. ************** Waiting for bug 415320. Change for 3.9.1: https://git.eclipse.org/r/15624 Change for 3.10.0: https://git.eclipse.org/r/15625 Pushed with commits: For 3.9.1: c0a0c052b3f727b6a77701eaf27d9e36a32d825b For 3.10.0: 68ff3ad8f244d45bd7f1f9d501039089d17c46a2 @Stephan Merkli: Can you please verify ? Thanks Jérémie for adding to 3.9 / 3.10. Shipped with Eclipse Luna Release |
Created attachment 209177 [details] Patch for abstract tree