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

24
LINES

< > BotCompany Repo | #1036478 // updateChain - reverse argument order of onChange

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

Libraryless. Click here for Pure Java version (10524L/59K).

1  
static <A extends IHasChangeListeners> A updateChain(ChangeTriggerable b, A a) {
2  
  ret onChange(a, b);
3  
}
4  
5  
static <A extends IHasChangeListeners> A updateChain(Updateable b, A a) {
6  
  ret onChange(a, b);
7  
}
8  
9  
static <A extends IHasChangeListeners> A updateChain(Runnable b, A a) {
10  
  ret onChange(a, b);
11  
}
12  
13  
meta-for JTextComponent also as JCheckBox {
14  
  static <A extends JTextComponent> A updateChain(O b, A a) {
15  
    onChange(a, changeReceiverToRunnable(b));
16  
    ret a;
17  
  }
18  
}
19  
20  
static <A extends Iterable> A updateChain(O b, A l) {
21  
  fOr (a : l)
22  
    preciseCall(mainFunctionHolder updateChain, "updateChain", b, a);
23  
  ret l;
24  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036478
Snippet name: updateChain - reverse argument order of onChange
Eternal ID of this version: #1036478/17
Text MD5: 2274ce2265a8931d84c26aaf7febf920
Transpilation MD5: 36001b4fe20265985d624b9a939f0c45
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-12-17 20:23:11
Source code size: 643 bytes / 24 lines
Pitched / IR pitched: No / No
Views / Downloads: 100 / 213
Version history: 16 change(s)
Referenced in: [show references]