1 | svoid mapMethodLike dm_stringFieldDialog(fS field, fO... _) { |
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, gtt(tf)); |
8 | callF(optPar(_, 'onSet)); |
9 | }); |
10 | } |
Began life as a copy of #1022601
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022768 |
Snippet name: | dm_stringFieldDialog |
Eternal ID of this version: | #1022768/3 |
Text MD5: | 6138e6307fc457735e17f4345ed571be |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-09 20:54:13 |
Source code size: | 386 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 284 / 323 |
Version history: | 2 change(s) |
Referenced in: | [show references] |