1 | // action: voidfunc(int row) |
2 | svoid tablePopupMenuItem(JTable table, S name, O action) { |
3 | tablePopupMenu(table, voidfunc(JPopupMenu menu, final int row) { |
4 | addMenuItem(menu, name, r { pcallF(action, row) }); |
5 | }); |
6 | } |
7 | |
8 | svoid tablePopupMenuItem(JTable table, S name, IVF1<Int> action) { |
9 | tablePopupMenuItem(table, name, (O) action); |
10 | } |
Began life as a copy of #1004446
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: | #1006548 |
Snippet name: | tablePopupMenuItem - adds to the menu if it already exists |
Eternal ID of this version: | #1006548/2 |
Text MD5: | 2fd902c6bb824fe57417c72230d039c3 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-03-18 23:08:36 |
Source code size: | 344 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 571 / 613 |
Version history: | 1 change(s) |
Referenced in: | [show references] |