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).

asclass DynTableWithInput2<A> extends DynObjectTable<A> {
  switchable S input;
  transient JTextField tfInput;
  transient ReliableSingleThread rstCalc = dm_rst(this, r calc);
  
  visual northAndCenterWithMargins(tfInput = dm_textField input(),
    mainComponent());
    
  JComponent mainComponent() { ret super.visualize(); }
  
  start {
    dm_watchFieldAndNow input(rstCalc);
  }
  
  abstract void calc();
}

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: 173 / 443
Version history: 3 change(s)
Referenced in: #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)