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

22
LINES

< > BotCompany Repo | #1016265 // Snippet Info [DynModule]

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

Libraryless. Click here for Pure Java version (14388L/100K).

!7

sclass SnippetInfo extends DynSCP {
  S id, title;
  int type;
  
  void update {
    S s = dm_getInterestingString();
    if (isSnippetID(s) && (setField(id := s) || title == null)) {
      setField(title := getSnippetTitle(s));
      setField(type := getSnippetType(s));
      revisualize2();
    }
  }

  JComponent visualize2() {
    ret jMultiLineLabel(id == null ? ""
      : "ID: " + id + "\n"
      + "Title: " + title + "\n"
      + "Type: " + type);
  }
}

Author comment

Began life as a copy of #1015930

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016265
Snippet name: Snippet Info [DynModule]
Eternal ID of this version: #1016265/7
Text MD5: 278be22a26bf74a6c09f7260c5c14fad
Transpilation MD5: 5042a4a9c7bc7e7c3ef2fa58c1217c9b
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-12 20:12:24
Source code size: 492 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 341 / 447
Version history: 6 change(s)
Referenced in: [show references]