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

12
LINES

< > BotCompany Repo | #1030020 // dm_longFieldMenuItem

JavaX fragment (include)

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

Author comment

Began life as a copy of #1019106

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030020
Snippet name: dm_longFieldMenuItem
Eternal ID of this version: #1030020/1
Text MD5: bb2cbe78b89c3432e4562d064b0fdad6
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-10-30 09:49:17
Source code size: 509 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 214 / 258
Referenced in: [show references]