Libraryless. Click here for Pure Java version (10076L/70K).
1 | svoid mapMethodLike dm_doubleFieldSetterDialog(S field, O... _) { |
2 | final DynModule m = dm_current_mandatory(); |
3 | fS humanized = humanizeFormLabel(field); |
4 | final JTextField tf = jtextfield(get(m, field)); |
5 | showFormTitled(or2(stringOptPar(_, 'formTitle), "Set " + humanized), |
6 | humanized + ":", tf, r { |
7 | m.setField(field, parseDouble(gtt(tf))); |
8 | callF(optPar(_, 'onSet)); |
9 | }); |
10 | } |
Began life as a copy of #1019754
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: | #1027015 |
Snippet name: | dm_doubleFieldSetterDialog |
Eternal ID of this version: | #1027015/3 |
Text MD5: | 1111324ee92fd60207d5f2a0cab8993c |
Transpilation MD5: | 53c1530d6678bd7f3d6f4cfab02500f4 |
Author: | stefan |
Category: | javax / stefan's os / web cam |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-08 11:42:36 |
Source code size: | 403 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 267 / 373 |
Version history: | 2 change(s) |
Referenced in: | [show references] |