1 | static <A extends JTextField> A bindTextFieldToVar(final IVar<S> var, final A tf) { |
2 | setText(tf, var!); |
3 | onUpdate(tf, r { var.set(getText(tf)) }); |
4 | ret tf; |
5 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009952 |
Snippet name: | bindTextFieldToVar |
Eternal ID of this version: | #1009952/3 |
Text MD5: | 8a65c06013b36d562ba3897c263bce14 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-21 18:32:35 |
Source code size: | 164 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 555 / 562 |
Version history: | 2 change(s) |
Referenced in: | [show references] |