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

23
LINES

< > BotCompany Repo | #1016229 // Ghost Modules (Deleted but still in memory) - Fancy design [dev.]

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

Libraryless. Click here for Pure Java version (14635L/101K).

!7

sclass GhostModules extends DynCalculatedList {
  void start {
    ownTimer(doEvery(30.0, r updateMe));
  }
  
  JComponent visualize() {
    JList list = cast super.visualize();
    ret setBackground(awtColor("#35312F"),
      jCenteredBackgroundImage(#1101314,
        wrap(jtransparent_hard(list))));
  }
  
  L<S> calc() {
    ret map(dm_ghostModules(), func(Class c, GhostModule m) {
      S programID = str(getOpt(getMainClass(c), 'programID));
      bool hasInstance = m.instance! != null;
      ret programID + "/" + shortClassName(c) + " - " + or2(m.name, "?")
        + (hasInstance ? "" : " [instance gone]");
    });
  }
}

Author comment

Began life as a copy of #1016185

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: #1016229
Snippet name: Ghost Modules (Deleted but still in memory) - Fancy design [dev.]
Eternal ID of this version: #1016229/2
Text MD5: 6e3ba742cd2e2a9faa56d0023f54bd06
Transpilation MD5: afed6bcc17f94056a295d22ed889dc39
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: 2018-06-11 13:15:35
Source code size: 660 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 382 / 532
Version history: 1 change(s)
Referenced in: