1 | static int selectedButtonIdx(ButtonGroup g) { |
2 | L<AbstractButton> l = buttonsInGroup(g); |
3 | for i over l: |
4 | if (l.get(i).isSelected()) |
5 | ret i; |
6 | ret -1; |
7 | } |
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: | #1007022 |
Snippet name: | selectedButtonIdx |
Eternal ID of this version: | #1007022/1 |
Text MD5: | aa489989d28a669e0250957cbb0b99b0 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-02-25 16:26:48 |
Source code size: | 166 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 454 / 485 |
Referenced in: | [show references] |