1 | static SimpleLiveValue dm_fieldLiveValue_verbose(S fieldName) { |
2 | ret dm_fieldLiveValue_verbose(dm_current_mandatory(), fieldName); |
3 | } |
4 | |
5 | static SimpleLiveValue dm_fieldLiveValue_verbose(final DynModule module, fS fieldName) { |
6 | lock module.lock; |
7 | Class type = getFieldType(module, fieldName); |
8 | final SimpleLiveValue value = new(type, get(module, fieldName)); |
9 | module.onChange(r { |
10 | O v = get(module, fieldName); |
11 | print("dm_fieldLiveValue_verbose: module change to " + v); |
12 | value.set(v); |
13 | }); |
14 | value.onChange(r { |
15 | O v = value!; |
16 | print("dm_fieldLiveValue_verbose: value change to " + v); |
17 | module.setField(fieldName, v); |
18 | print(" contentsDirty=" + getOpt(dm_getStem(module), 'contentsDirty)); |
19 | }); |
20 | ret value; |
21 | } |
Began life as a copy of #1015971
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: | #1017058 |
Snippet name: | dm_fieldLiveValue_verbose - live-value for a field in DynModule |
Eternal ID of this version: | #1017058/2 |
Text MD5: | f80ee145455278afcf199e0aa82a3acf |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-11 16:01:51 |
Source code size: | 754 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 327 / 364 |
Version history: | 1 change(s) |
Referenced in: | [show references] |