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

10
LINES

< > BotCompany Repo | #1020290 // dm_setIntFieldDialog

JavaX fragment (include)

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

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: 240 / 265
Version history: 1 change(s)
Referenced in: [show references]