Libraryless. Click here for Pure Java version (11689L/67K).
sclass JCalculatedComponent<A extends JComponent> extends SingleComponentPanel is ChangeTriggerable { settable IF0<A> makeComponent; *(IF0<A> *makeComponent) {} transient ReliableSingleThread rstMakeComponent = new(-> { setComponent(makeComponent?!); }); { bindToComponent(this, -> { /*if (!hasComponent())*/ rstMakeComponent.trigger(); }, null); } public void change { rstMakeComponent.trigger(); } void reactToChangesIn(IHasChangeListeners source) { bindHasChangeListenersToComponent(this, source, l0 change); } }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1036181 |
Snippet name: | JCalculatedComponent |
Eternal ID of this version: | #1036181/3 |
Text MD5: | b7fa2f32f11d8d3a9f5cabb7cf11938f |
Transpilation MD5: | a302d4e109923ae7280d0c925f9d7fcb |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-10-07 18:11:29 |
Source code size: | 596 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 130 / 200 |
Version history: | 2 change(s) |
Referenced in: | [show references] |