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

13
LINES

< > BotCompany Repo | #1020258 // dm_feedTopInputToTextField

JavaX fragment (include)

static JTextField dm_feedTopInputToTextField(final JTextField tf) {
  ret dm_feedTopInputToTextField(tf, null);
}

static JTextField dm_feedTopInputToTextField(final JTextField tf, final F1<S, Bool> condition) {
  final DynModule m = dm_current_mandatory();
  dm_onTopInputChanged(voidfunc(fS s) {
    switch to m.q();
    if (!isFalse(callF(condition, s)))
      setText(tf, s);
  });
  ret tf;
}

Author comment

Began life as a copy of #1019861

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: #1020258
Snippet name: dm_feedTopInputToTextField
Eternal ID of this version: #1020258/3
Text MD5: 044b96a29158d97bf75684582b9fdeb7
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 01:57:00
Source code size: 409 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 176 / 212
Version history: 2 change(s)
Referenced in: [show references]