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

16
LINES

< > BotCompany Repo | #1021502 // DynTableWithInput [old update style, shouldn't use anymore]

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

Libraryless. Click here for Pure Java version (19048L/137K).

abstract sclass DynTableWithInput<A> extends DynObjectTable<A> {
  InputChooser inputChooser = new(this);
  
  visualize { ret northAndCenter(wrap(inputChooser), super.visualize()); }
  
  abstract void update(S input);
  
  void update {
    if (inputChooser.update())
      update(inputChooser.input());
  }
  
  void forceUpdate {
    update(inputChooser.input());
  }
}

Author comment

Began life as a copy of #1017393

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1021502
Snippet name: DynTableWithInput [old update style, shouldn't use anymore]
Eternal ID of this version: #1021502/5
Text MD5: b4273cb5fcf6c72f249fad79e30ad327
Transpilation MD5: ea699126427fbd441474315de0772c86
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-12 17:44:49
Source code size: 388 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 332 / 857
Version history: 4 change(s)
Referenced in: [show references]