static bool replaceTreeNodeChildren_withDummyChild(final DefaultMutableTreeNode node, fL children, fO dummyChild) { if (node == null) false; ret swing(func -> bool { L oldChildren = mapMethod('getUserObject, node.children()); if (eq(oldChildren, children)) false; node.removeAllChildren(); for (O c : unnull(children)) { DefaultMutableTreeNode node2 = new(c); node2.add(new DefaultMutableTreeNode(dummyChild)); node.add(node2); } true; }); }
Began life as a copy of #1016036
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1016043 |
| Snippet name: | replaceTreeNodeChildren_withDummyChild |
| Eternal ID of this version: | #1016043/3 |
| Text MD5: | d26666b4faeb804d7bb75e28f8a0f87f |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-07-19 18:08:28 |
| Source code size: | 502 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 594 / 655 |
| Version history: | 2 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1021476 - jTree_defaultNode_withDummyChild |