1 | static <A extends Component> A removeFromParentAfter(double seconds, A c) { |
2 | if (c == null) null; |
3 | final WeakReference<A> ref = weakRef(c); |
4 | doAfter(seconds, r { removeFromParent(ref!) }); |
5 | ret c; |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020263 |
Snippet name: | removeFromParentAfter |
Eternal ID of this version: | #1020263/2 |
Text MD5: | 963dbbf8bf5c71c8646e7118b7d3bf43 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-12 01:13:00 |
Source code size: | 207 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 257 / 285 |
Version history: | 1 change(s) |
Referenced in: | [show references] |