static SimpleLiveValue dm_fieldLiveValue_verbose(S fieldName) { ret dm_fieldLiveValue_verbose(dm_current_mandatory(), fieldName); } static SimpleLiveValue dm_fieldLiveValue_verbose(final DynModule module, fS fieldName) { lock module.lock; Class type = getFieldType(module, fieldName); final SimpleLiveValue value = new(type, get(module, fieldName)); module.onChange(r { O v = get(module, fieldName); print("dm_fieldLiveValue_verbose: module change to " + v); value.set(v); }); value.onChange(r { O v = value!; print("dm_fieldLiveValue_verbose: value change to " + v); module.setField(fieldName, v); print(" contentsDirty=" + getOpt(dm_getStem(module), 'contentsDirty)); }); ret value; }
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: | 328 / 364 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |