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

10
LINES

< > BotCompany Repo | #1027015 // dm_doubleFieldSetterDialog

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (10076L/70K).

svoid mapMethodLike dm_doubleFieldSetterDialog(S field, O... _) {
  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, parseDouble(gtt(tf)));
      callF(optPar(_, 'onSet));
    });
}

Author comment

Began life as a copy of #1019754

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027015
Snippet name: dm_doubleFieldSetterDialog
Eternal ID of this version: #1027015/3
Text MD5: 1111324ee92fd60207d5f2a0cab8993c
Transpilation MD5: 53c1530d6678bd7f3d6f4cfab02500f4
Author: stefan
Category: javax / stefan's os / web cam
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-08 11:42:36
Source code size: 403 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 266 / 371
Version history: 2 change(s)
Referenced in: [show references]