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

8
LINES

< > BotCompany Repo | #1015821 // bindTextComponentToLiveValue - only value => UI

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

Transpiled version (3590L) is out of date.

static <A extends JTextComponent> A bindTextComponentToLiveValue(final A tc, final LiveValue lv) {
  ret bindLiveValueListenerToComponent(tc, lv,
    r { setText(tc, strOrNull(lv!)) });
}

static <A extends JTextComponent> A bindTextComponentToLiveValue(LiveValue lv, A tc) {
  ret bindTextComponentToLiveValue(tc, lv);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1015821
Snippet name: bindTextComponentToLiveValue - only value => UI
Eternal ID of this version: #1015821/8
Text MD5: 44f9b46128d0e993a91914d9d2cfd4c3
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-05-25 22:30:33
Source code size: 324 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 423 / 497
Version history: 7 change(s)
Referenced in: [show references]