Libraryless. Click here for Pure Java version (15001L/104K).
1 | !7 |
2 | |
3 | sclass AllButtons extends DynTable { |
4 | L<Map> calc() { |
5 | final new Map<Component, O> componentToModule; |
6 | for (O m : dm_listModules()) |
7 | mapPut(componentToModule, dm_getVisualization(m), m); |
8 | |
9 | ret nonNulls(map(childrenOfType(mainDesktopPane(), JButton), func(JButton b) -> Map { |
10 | cic(className(b), ".plaf.") ? null : litorderedmap( |
11 | "Button" := (isEnabled(b) ? "" : "[disabled] ") + getText(b), |
12 | "In Module" := dm_moduleName(lookupSwingAncestor(componentToModule, b)), |
13 | //"Type" := className(b), |
14 | "[hidden]" := b) |
15 | })); |
16 | } |
17 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016589 |
Snippet name: | All Buttons [Dyn Module] |
Eternal ID of this version: | #1016589/10 |
Text MD5: | 6d9e99d75db2aefd3e1b3fd7ba13f08e |
Transpilation MD5: | 02605b6300a08801aa43d71664e54cdb |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-24 18:19:23 |
Source code size: | 598 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 491 / 1187 |
Version history: | 9 change(s) |
Referenced in: | [show references] |