Libraryless. Click here for Pure Java version (10870L/76K).
1 | asclass DynFlexibleRateTimer > DynModule { |
2 | FlexibleRateTimer timer = new(1); |
3 | transient SimpleLiveValue<S> lvRate; |
4 | |
5 | // call timer.setRunnableAndStart in subclass's start method! |
6 | start { |
7 | timer.onFrequencyChanged(r persistMe); |
8 | lvRate = lvFlexibleRateTimerFreq(timer); |
9 | } |
10 | |
11 | visualize { |
12 | ret northAndCenterWithMargins( |
13 | withLabelLeftAndRight("Rate:", jLiveValueTextField_bothWays(lvRate), "Hz"), mainPanel()); |
14 | } |
15 | |
16 | JComponent mainPanel() { ret dm_printLogComponent(); } |
17 | |
18 | void cleanMeUp_DynFlexibleRateTimer { cleanUp(timer); } |
19 | } |
Began life as a copy of #1025207
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025208 |
Snippet name: | DynFlexibleRateTimer |
Eternal ID of this version: | #1025208/3 |
Text MD5: | e79ffa525114b2e89b5f1fdddbdf671f |
Transpilation MD5: | cf9ebd6ffeea163dbdb0c1aa5bca363f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-13 14:34:02 |
Source code size: | 577 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 247 / 650 |
Version history: | 2 change(s) |
Referenced in: | [show references] |