Libraryless. Click here for Pure Java version (15001L/104K).
!7 sclass AllButtons extends DynTable { L<Map> calc() { final new Map<Component, O> componentToModule; for (O m : dm_listModules()) mapPut(componentToModule, dm_getVisualization(m), m); ret nonNulls(map(childrenOfType(mainDesktopPane(), JButton), func(JButton b) -> Map { cic(className(b), ".plaf.") ? null : litorderedmap( "Button" := (isEnabled(b) ? "" : "[disabled] ") + getText(b), "In Module" := dm_moduleName(lookupSwingAncestor(componentToModule, b)), //"Type" := className(b), "[hidden]" := b) })); } }
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: | 421 / 1089 |
Version history: | 9 change(s) |
Referenced in: | -