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

16
LINES

< > BotCompany Repo | #1019075 // dm_onShow

JavaX fragment (include)

svoid dm_onShow(final Runnable r) {
  final DynModule m = dm_current_mandatory();
  dm_ownResource(vmBus_onMessage('moduleStatusChange, new VF2<O, O[]>() {
    bool visible;
    
    public void get(O module, O[] params) {
      if (module == m && visible != dm_visible(m)) {
        if (visible = !visible) {
          temp m.enter();
          callF(r);
        }
        print("visibility: " + visible);
      }
    }
  }));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1019075
Snippet name: dm_onShow
Eternal ID of this version: #1019075/4
Text MD5: a44991fc1adb5b783914713e0053b3af
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-23 00:28:50
Source code size: 444 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 340 / 370
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1019076 - dm_afterVisualize - works on current module