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

14
LINES

< > BotCompany Repo | #1031902 // jLiveValueSlider_int_bothWays

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

Transpiled version (8646L) is out of date.

1  
static JSlider jLiveValueSlider_int_bothWays(int min, int max, IVarWithNotify<Int> lv) {
2  
  new AtomicInt changing;
3  
  JSlider slider = liveSlider(min, max, clamp(lv!,
4  
    min,
5  
    max), v -> {
6  
    if (changing! == 0)
7  
      lv.set(v);
8  
  });
9  
  bindLiveValueListenerToComponent(slider, lv, r {
10  
    temp tempIncAtomicInt(changing);
11  
    setSliderValue(slider, lv!);
12  
  });
13  
  ret slider;
14  
}

Author comment

Began life as a copy of #1026708

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1031902
Snippet name: jLiveValueSlider_int_bothWays
Eternal ID of this version: #1031902/6
Text MD5: 48e0182ed09c256f5486cbfd2891e58a
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-05-17 20:29:22
Source code size: 394 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 217 / 305
Version history: 5 change(s)
Referenced in: [show references]