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

10
LINES

< > BotCompany Repo | #1020290 // dm_setIntFieldDialog

JavaX fragment (include)

svoid dm_setIntFieldDialog(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, parseInt(gtt(tf)));
      callF(optPar(_, 'onSet));
    });
}

Author comment

Began life as a copy of #1019106

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020290
Snippet name: dm_setIntFieldDialog
Eternal ID of this version: #1020290/2
Text MD5: 8f054ca16b7af4bb96313b5d7b402f5c
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-12 23:01:14
Source code size: 382 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 224 / 249
Version history: 1 change(s)
Referenced in: [show references]