Libraryless. Click here for Pure Java version (13018L/76K).
1 | static L<TextImageAction> filesForNiceButtons(L<File> l, IVF1<File> action) { |
2 | ret map(l, f -> { |
3 | var tia = textImageActionToolTip( |
4 | f.getName(), |
5 | isImageFile(f) ? #1101250 : #1101231, |
6 | r { pcallF(action, f) }, |
7 | f2s(f) + " (" + toK(fileSize(f)) + " K)"); |
8 | tia.file = f; |
9 | ret tia; |
10 | }); |
11 | } |
12 | |
13 | static L<TextImageAction> filesForNiceButtons(L<File> l) { |
14 | ret filesForNiceButtons(l, f -> { thread { genericUI_openFile(f); }}); |
15 | } |
Began life as a copy of #1015165
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: | #1015366 |
Snippet name: | filesForNiceButtons |
Eternal ID of this version: | #1015366/14 |
Text MD5: | cac1d826fcbc852601c171cfdfa29a0b |
Transpilation MD5: | 966042677277891c27be03087bb0dfc6 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-12 23:19:27 |
Source code size: | 466 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 547 / 572 |
Version history: | 13 change(s) |
Referenced in: | [show references] |