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

6
LINES

< > BotCompany Repo | #1034684 // bindTextComponentToVarWithNotify (both ways)

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

Transpiled version (6273L) is out of date.

static <A extends JTextComponent> A bindTextComponentToVarWithNotify(A tc, IVarWithNotify<S> lv) {
  bindHasChangeListenersToComponent(tc, lv, r { setTextKeepCaret(tc, lv!) });
  onChange(tc, r { lv.set(getText(tc)) });
  ret tc;
}

Author comment

Began life as a copy of #1016667

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034684
Snippet name: bindTextComponentToVarWithNotify (both ways)
Eternal ID of this version: #1034684/3
Text MD5: f27bd0307abc592f6772e41632f617ce
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-05-13 18:19:46
Source code size: 237 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 85 / 129
Version history: 2 change(s)
Referenced in: [show references]