Uses 911K of libraries. Click here for Pure Java version (7740L/41K).
!7 cmodule It > DynCalculatedList { int max = 100; transient S searched; transient LS results; transient OptionalInputPanel inputPanel; transient ReliableSingleThread rst; visualize { rst = new ReliableSingleThread(r search); inputPanel = new OptionalInputPanel; awtCalcEveryAndNow(inputPanel.panel(), 60.0, rst); JComponent sup = super.visualize(); ret northAndCenter(wrap(inputPanel), sup); } void update { rst.trigger(); super.update(); } void search { temp enter(); S s = inputPanel == null ? null : inputPanel.input(); if (neq(s, searched)) { searched = s; if (s == null) results = null; else results = snippetsWithTitles(tbSearch(max, inputPanel.input())); updateMe(); } } LS calc() { ret results; } }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1016432 |
Snippet name: | Simple Snippet Search [Dyn Module] |
Eternal ID of this version: | #1016432/10 |
Text MD5: | 4dcb23ad7adce58009df8f3f4f43618e |
Transpilation MD5: | f9946955b6f1eb41d1750577da7abfa1 |
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: | 2019-12-20 18:41:41 |
Source code size: | 843 bytes / 35 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 331 / 4795 |
Version history: | 9 change(s) |
Referenced in: | [show references] |