Libraryless. Click here for Pure Java version (15473L/108K).
!7 set flag DynModule. sclass Result { S function, result; *() {} *(S *function, O result) { this.result = str(result); } } sclass MultiAnalysis extends DynObjectTable<Result> { S input; transient JTextArea taInput; transient bool calculating; visualize { ret withMargin(jvsplit( centerAndEastWithMarginInbetween( onCtrlEnter(taInput = jEnableUndoRedo(typeWriterTextArea(input)), rThread evalIt), vstackWithSpacing( jbutton("Analyze", rThread evalIt))), super.visualize())); } void evalIt { if (calculating) ret; temp tempSetField(this, calculating := true); setField(input := getText(taInput)); setData(ll( Result("isMultiLine", yesno(isMultiLine(input))), Result("Lines", countLines(input)))); } }
Began life as a copy of #1018152
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018174 |
Snippet name: | Text Multi-Analysis [dev.] |
Eternal ID of this version: | #1018174/4 |
Text MD5: | 645e8d1cfceb90558fb08d97649a5503 |
Transpilation MD5: | d9980dc1cb3cb3e1e060325e459937f0 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-09-07 14:52:47 |
Source code size: | 834 bytes / 34 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 358 / 1156 |
Version history: | 3 change(s) |
Referenced in: | -