Libraryless. Click here for Pure Java version (18017L/131K).
!7 sclass ModuleLibrary extends DynSCP { L<S> list; S mechListName = "Modules that should work"; transient DynamicVStack buttons; transient ButtonIconLoader iconLoader; start { dm_useLocalMechListCopies(); } JComponent visualize2() { if (buttons == null) { buttons = verticalNiceButtons(); updateButtons(); } if (iconLoader == null) iconLoader = new ButtonIconLoader(buttons); update(); ret jWiderScrollPane(jfullcenter(buttons)); } void update { if (setField(list := mL(mechListName))) updateButtons(); } void updateButtons { L<TextImageAction> l = moduleLibraryForNiceButtons(list, voidfunc(fS moduleID) { thread { //infoBox("Making module: " + moduleID); dm_makeOrShowModule(moduleID); } }); replaceNiceButtons(buttons, l); if (iconLoader != null) iconLoader.update(); } }
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: | #1016107 |
| Snippet name: | Module Library [Dyn Module] |
| Eternal ID of this version: | #1016107/15 |
| Text MD5: | 2d65f22bdf9cf9d83f159b9c31b096c0 |
| Transpilation MD5: | 3480bd26cb26ddec3c6d18e08c82cd67 |
| 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-10-23 13:28:15 |
| Source code size: | 912 bytes / 34 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 720 / 19934 |
| Version history: | 14 change(s) |
| Referenced in: | [show references] |