Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1018756 // showFilesListWithAction

JavaX fragment (include)

static JList showFilesListWithAction(S title, L<File> files, final VF1<File> action) {
  ret setPIFrameTitle(title, showFilesListWithAction(files, action));
}

static JList showFilesListWithAction(L<File> files, final VF1<File> action) {
  ret onDoubleClickOrEnter(showList(map f2s(files)), voidfunc(S path) {
    callF(action, newFile(path));
  });
}

Author comment

Began life as a copy of #1018755

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018756
Snippet name: showFilesListWithAction
Eternal ID of this version: #1018756/3
Text MD5: f08d047c802732e5c9157d08f870af2c
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-13 15:10:16
Source code size: 359 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 330 / 357
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1018762 - showFilesListWithAction_reloadable
#1022677 - selectSubdirOrCreateNew