Uses 911K of libraries. Click here for Pure Java version (5760L/27K).
1 | !7 |
2 | |
3 | cmodule ELECurrentInput { |
4 | S input; |
5 | |
6 | visual fontSizePlus(20, dm_centeredTextField input()); |
7 | |
8 | start { |
9 | dm_registerAs eleCurrentInput(); |
10 | dm_onUserUtterance/*WithoutMine*/(s -> { |
11 | if (!setField(input := s)) |
12 | vmBus_send eleSameInputAgain(s); |
13 | }); |
14 | dm_watchField input(r { vmBus_send eleNewInput(input) }); |
15 | } |
16 | |
17 | // API |
18 | |
19 | S currentInput() { ret input; } |
20 | } |
Began life as a copy of #1026353
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1026354 |
Snippet name: | ELE: Current Input |
Eternal ID of this version: | #1026354/10 |
Text MD5: | 78480d050c05ed052382c47dc68ff0b3 |
Transpilation MD5: | c38db262cd4c4fdd839fc2521ea0c614 |
Author: | stefan |
Category: | javax / electronic logic engine |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-01-22 00:14:21 |
Source code size: | 413 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 314 / 6116 |
Version history: | 9 change(s) |
Referenced in: | [show references] |