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

10
LINES

< > BotCompany Repo | #1019442 // dm_boolFieldMenuItem

JavaX fragment (include)

svoid dm_boolFieldMenuItem(Container frame, fS field, fO... _) {
  final DynModule m = dm_current_mandatory();
  fS humanized = humanizeFormLabel(field);
  internalFrameTitlePopupMenu(frame/JInternalFrame, voidfunc(JPopupMenu menu) {
    menu.add(jCheckBoxMenuItem(humanized, (bool) _get(m, field), voidfunc(bool b) {
      m.setField(field, b);
      callF(optPar(_, 'onSet));
    }));
  });
}

Author comment

Began life as a copy of #1019106

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019442
Snippet name: dm_boolFieldMenuItem
Eternal ID of this version: #1019442/2
Text MD5: 1285eab9176db023b1cd20e39d660c8b
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-11-06 23:08:42
Source code size: 403 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 281 / 353
Version history: 1 change(s)
Referenced in: [show references]