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

22
LINES

< > BotCompany Repo | #1022886 // DynBigInputAndList

JavaX fragment (include)

abstract sclass DynBigInputAndList<A> extends DynObjectTable<A> {
  S text;
  switchable int fontSize = 20;
  transient Trigger trigger_makeList = new(r makeList);

  start {
    new Dyn_FieldWatcher(this, 'text, trigger_makeList);
  }
  
  visual withComputing(trigger_makeList,
    jvsplit(setFontSize(fontSize, dm_textArea('text)), wrapListComponent(super)));
    
  // override me
  JComponent wrapListComponent(JComponent component) { ret component; }
      
  void makeList() q {
    if (!trigger_makeList.check()) ret;
    makeList_impl();
  }
  
  abstract void makeList_impl();
}

Author comment

Began life as a copy of #1022773

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1022886
Snippet name: DynBigInputAndList
Eternal ID of this version: #1022886/4
Text MD5: 6bb91847f08c83a7aae0c911e91d827b
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-14 19:03:04
Source code size: 609 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 300 / 747
Version history: 3 change(s)
Referenced in: [show references]