Libraryless. Click here for Pure Java version (7907L/45K).
// action = runnable or method name (old) svoid onUpdateAndNow(JComponent c, fO r) { onUpdate(c, r); callF(r); } svoid onUpdateAndNow(JTextComponent c, IVF1<S> r) swing { if (c == null) ret; onUpdate(c, r); callF(r, c.getText()); } svoid onUpdateAndNow(L<? extends JComponent> l, O r) { for (JComponent c : l) onUpdate(c, r); callF(r); }
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: | 635 / 754 |
Version history: | 5 change(s) |
Referenced in: | [show references] |