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

16
LINES

< > BotCompany Repo | #1019075 // dm_onShow

JavaX fragment (include)

1  
svoid dm_onShow(final Runnable r) {
2  
  final DynModule m = dm_current_mandatory();
3  
  dm_ownResource(vmBus_onMessage('moduleStatusChange, new VF2<O, O[]>() {
4  
    bool visible;
5  
    
6  
    public void get(O module, O[] params) {
7  
      if (module == m && visible != dm_visible(m)) {
8  
        if (visible = !visible) {
9  
          temp m.enter();
10  
          callF(r);
11  
        }
12  
        print("visibility: " + visible);
13  
      }
14  
    }
15  
  }));
16  
}

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: 339 / 369
Version history: 3 change(s)
Referenced in: [show references]