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

17
LINES

< > BotCompany Repo | #1006125 // onUpdateAndNow (for JTextComponent, JCheckBox and others)

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

Libraryless. Click here for Pure Java version (7907L/45K).

1  
// action = runnable or method name (old)
2  
svoid onUpdateAndNow(JComponent c, fO r) {
3  
  onUpdate(c, r);
4  
  callF(r);
5  
}
6  
7  
svoid onUpdateAndNow(JTextComponent c, IVF1<S> r) swing {
8  
  if (c == null) ret;
9  
  onUpdate(c, r);
10  
  callF(r, c.getText());
11  
}
12  
13  
svoid onUpdateAndNow(L<? extends JComponent> l, O r) {
14  
  for (JComponent c : l)
15  
    onUpdate(c, r);
16  
  callF(r);
17  
}

Author comment

Began life as a copy of #1003287

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006125
Snippet name: onUpdateAndNow (for JTextComponent, JCheckBox and others)
Eternal ID of this version: #1006125/6
Text MD5: 1095d9be113c6757850ab8088cd2c566
Transpilation MD5: b3cca642d7dca690913c5027d1ead9a0
Author: stefan
Category: javax swing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-01 23:09:47
Source code size: 373 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 545 / 636
Version history: 5 change(s)
Referenced in: [show references]