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

20
LINES

< > BotCompany Repo | #1035164 // onTabSelectedAndNow

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (7659L) is out of date.

1  
ifclass JExtendedTabbedPane
2  
  svoid onTabSelectedAndNow(JExtendedTabbedPane tabs, Runnable r) {
3  
    if (tabs != null)
4  
      onTabSelectedAndNow(tabs.tabs, r);
5  
  }
6  
endif
7  
8  
svoid onTabSelectedAndNow(JTabbedPane tabs, Runnable r) {
9  
  if (tabs != null && r != null) swing {
10  
    onTabSelected(tabs, r);
11  
    r.run();
12  
  }
13  
}
14  
15  
svoid onTabSelectedAndNow(JTabbedPane tabs, IVF1<Int> r) {
16  
  if (tabs != null && r != null) swing {
17  
    onTabSelected(tabs, r);
18  
    r.get(tabs.getSelectedIndex());
19  
  }
20  
}

Author comment

Began life as a copy of #1020865

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035164
Snippet name: onTabSelectedAndNow
Eternal ID of this version: #1035164/2
Text MD5: f72d065e1b2d7ca9090a21a1804ba38e
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-03 19:58:24
Source code size: 507 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 134 / 195
Version history: 1 change(s)
Referenced in: [show references]