Libraryless. Click here for Pure Java version (10446L/72K).
1 | svoid mapMethodLike dm_fileFieldDialog(fS field, fO... _) { |
2 | DynModule m = dm_current_mandatory(); |
3 | S humanized = humanizeFormLabel(field); |
4 | JTextField tf = jtextfield(strOrNull(get(m, field))); |
5 | showFormTitled(or2(stringOptPar(_, 'formTitle), "Set " + humanized), |
6 | humanized + ":", tf, r { |
7 | m.setField(field, toFile_nullOnEmpty(gtt(tf))); |
8 | callF(optPar(_, 'onSet)); |
9 | }); |
10 | } |
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: | 228 / 334 |
Version history: | 3 change(s) |
Referenced in: | [show references] |