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

5
LINES

< > BotCompany Repo | #1020176 // bindComboBoxToLiveValue_withSimplifier

JavaX fragment (include)

static <A extends JComboBox> A bindComboBoxToLiveValue_withSimplifier(final A cb, final SimpleLiveValue<S> lv, fO simplifier) {
  bindLiveValueListenerToComponent(cb, lv, r { selectItem_withSimplifier(cb, lv!, simplifier) });
  onChange(cb, r { lv.set((S) callF(simplifier, getText(cb))) });
  ret cb;
}

Author comment

Began life as a copy of #1016619

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: #1020176
Snippet name: bindComboBoxToLiveValue_withSimplifier
Eternal ID of this version: #1020176/3
Text MD5: a8943757906ea30951ad9dde70429bd4
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-09 20:51:03
Source code size: 307 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 339 / 343
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)