Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1022768 // dm_stringFieldDialog

JavaX fragment (include)

svoid mapMethodLike dm_stringFieldDialog(fS field, fO... _) {
  final DynModule m = dm_current_mandatory();
  fS humanized = humanizeFormLabel(field);
  final JTextField tf = jtextfield(get(m, field));
  showFormTitled(or2(stringOptPar(_, 'formTitle), "Set " + humanized),
    humanized + ":", tf, r {
      m.setField(field, gtt(tf));
      callF(optPar(_, 'onSet));
    });
}

Author comment

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: 282 / 321
Version history: 2 change(s)
Referenced in: [show references]