Uses 911K of libraries. Click here for Pure Java version (9416L/50K).
1 | !7 |
2 | |
3 | // Show programs with data as nice buttons |
4 | |
5 | cmodule ProgramsWithData { |
6 | visualize { |
7 | L<S> ids = programsWithData(); |
8 | final SS programNames = getSnippetTitles_cached(ids); |
9 | ret jHigherScrollPane(jfullcenter(makeNiceButtons( |
10 | map(ids, func(fS progID) -> TextImageAction { |
11 | TextImageAction(programNames.get(progID), #1101229, r-thread { showProgramDir(progID) }) |
12 | })))); |
13 | } |
14 | |
15 | enhanceFrame { frameIcon(f, #1101233); } |
16 | |
17 | void showProgramDir(S progID) { |
18 | File[] files = listFiles(programDir(progID)); |
19 | moveFrameUp(50, frameIcon(#1101234, frameTitle("Files of: " + getSnippetTitle_cached(progID) + " [" + progID + "]", showNiceButtons_higher( |
20 | map(files, func(final File f) -> TextImageAction { |
21 | TextImageAction(f.getName(), #1101231, r-thread { genericUI_openFile(f) }) |
22 | }))))); |
23 | } |
24 | } |
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: | 272 / 378 |
Referenced in: | [show references] |