Uses 911K of libraries. Click here for Pure Java version (9416L/50K).
!7 // Show programs with data as nice buttons cmodule ProgramsWithData { visualize { L<S> ids = programsWithData(); final SS programNames = getSnippetTitles_cached(ids); ret jHigherScrollPane(jfullcenter(makeNiceButtons( map(ids, func(fS progID) -> TextImageAction { TextImageAction(programNames.get(progID), #1101229, r-thread { showProgramDir(progID) }) })))); } enhanceFrame { frameIcon(f, #1101233); } void showProgramDir(S progID) { File[] files = listFiles(programDir(progID)); moveFrameUp(50, frameIcon(#1101234, frameTitle("Files of: " + getSnippetTitle_cached(progID) + " [" + progID + "]", showNiceButtons_higher( map(files, func(final File f) -> TextImageAction { TextImageAction(f.getName(), #1101231, r-thread { genericUI_openFile(f) }) }))))); } }
Began life as a copy of #1015085
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022150 |
Snippet name: | Programs With Data [Dyn Module] |
Eternal ID of this version: | #1022150/1 |
Text MD5: | 8e29f872ae359411b5f5dafe53a4613a |
Transpilation MD5: | be8390efd9f4fc2ae5c617af97b5f2ea |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-09 22:20:32 |
Source code size: | 864 bytes / 24 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 271 / 375 |
Referenced in: | [show references] |