1 | static <A> void scanForComponents(final Component c, final Class<A> theClass, fL<A> l) { |
2 | if (theClass.isInstance(c)) |
3 | l.add((A) c); |
4 | if (c instanceof Container) swing { |
5 | for (Component comp : ((Container) c).getComponents()) |
6 | scanForComponents(comp, theClass, l); |
7 | } |
8 | } |
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: | #1001636 |
Snippet name: | scanForComponents |
Eternal ID of this version: | #1001636/3 |
Text MD5: | 3a1d511a7b7b4f713343f835d6300b2b |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-15 03:12:20 |
Source code size: | 290 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 731 / 1740 |
Version history: | 2 change(s) |
Referenced in: | [show references] |