1 | static <A> void printComponentTree(S indent, Component c) {
|
2 | print(indent + c); |
3 | if (c instanceof Container) |
4 | for (Component comp : ((Container) c).getComponents()) |
5 | printComponentTree(indent + " ", comp); |
6 | } |
7 | |
8 | static <A> void printComponentTree(Component c) {
|
9 | printComponentTree("", c);
|
10 | } |
Began life as a copy of #1001636
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1007187 |
| Snippet name: | printComponentTree |
| Eternal ID of this version: | #1007187/2 |
| Text MD5: | cba3f2437325794f5d57cece11e001ce |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-03-11 14:22:45 |
| Source code size: | 311 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 688 / 737 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |