Libraryless. Click here for Pure Java version (10446L/72K).
svoid mapMethodLike dm_fileFieldDialog(fS field, fO... _) { DynModule m = dm_current_mandatory(); S humanized = humanizeFormLabel(field); JTextField tf = jtextfield(strOrNull(get(m, field))); showFormTitled(or2(stringOptPar(_, 'formTitle), "Set " + humanized), humanized + ":", tf, r { m.setField(field, toFile_nullOnEmpty(gtt(tf))); callF(optPar(_, 'onSet)); }); }
Began life as a copy of #1022768
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1029775 |
Snippet name: | dm_fileFieldDialog |
Eternal ID of this version: | #1029775/4 |
Text MD5: | b2e5296a86098f2e8e7832120e3f7067 |
Transpilation MD5: | 3e52c8488a4da932da3d8aec891bcaee |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-09-14 11:55:09 |
Source code size: | 402 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 192 / 288 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |