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

16
LINES

< > BotCompany Repo | #1028947 // DynTableWithInput2

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

Libraryless. Click here for Pure Java version (19762L/142K).

1  
asclass DynTableWithInput2<A> extends DynObjectTable<A> {
2  
  switchable S input;
3  
  transient JTextField tfInput;
4  
  transient ReliableSingleThread rstCalc = dm_rst(this, r calc);
5  
  
6  
  visual northAndCenterWithMargins(tfInput = dm_textField input(),
7  
    mainComponent());
8  
    
9  
  JComponent mainComponent() { ret super.visualize(); }
10  
  
11  
  start {
12  
    dm_watchFieldAndNow input(rstCalc);
13  
  }
14  
  
15  
  abstract void calc();
16  
}

Author comment

Began life as a copy of #1021502

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028947
Snippet name: DynTableWithInput2
Eternal ID of this version: #1028947/4
Text MD5: 50becc0256ebe370bd342bb238e765f9
Transpilation MD5: 4b87b6589f2b7c1d57abf335b737bf96
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-12-11 03:00:05
Source code size: 430 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 170 / 439
Version history: 3 change(s)
Referenced in: [show references]