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

21
LINES

< > BotCompany Repo | #1024168 // Quick Annotator (table version, show list of things, allow comments)

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (1895L/10K).

!7

srecord Entry(S text, S annotation) {}

cmodule QuickAnnotator > DynObjectTable<Entry> {
  start { addCountToName(); }
  
  // API
  
  void fillData(Collection<PairS> l) {
    setList(map(l, p -> nu Entry(text := p.a, annotation := p.b)));
  }
  
  void fillData(SS map) {
    fillData(mapToPairs(map));
  }
  
  void setItems(Collection<S> l) {
    fillData(map(l, s -> pair(s, "")));
  }
}

Author comment

Began life as a copy of #1024152

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: #1024168
Snippet name: Quick Annotator (table version, show list of things, allow comments)
Eternal ID of this version: #1024168/7
Text MD5: 453ef8f683589f46bba6def171f4171b
Transpilation MD5: 4283bf9f2e17b63c7dd30d221a0d38f0
Author: stefan
Category: javax / stefan's os
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-24 13:24:04
Source code size: 416 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 125 / 230
Version history: 6 change(s)
Referenced in: [show references]