static JTabbedPane showTabbedWebs(L params) { ret showTabbedWebs(toObjectArray(params)); } // params: title, web, title, web, ... // or: web, web, web, ... static JTabbedPane showTabbedWebs(fO... params) { ret swing(func -> JTabbedPane { new L out; int n = 0; for (O o : params) { Web web = castOpt(o, Web); if (web == null) { out.add(o); continue; } ++n; CirclesAndLines cal = webToCAL(web); Canvas canvas = cal.makeCanvas(); if (!isString(last(out))) out.add(or2(cal.title, "Web " + n)); out.add(calAutoLayout2(cal, canvas)); } //print("Tabs: " + map className(params) + " -> " + map className(out)); ret showTabs(toObjectArray(out)); }); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1010050 |
| Snippet name: | showTabbedWebs |
| Eternal ID of this version: | #1010050/12 |
| Text MD5: | b1e945ac6ec6b89895d652435be0ce37 |
| Author: | stefan |
| Category: | javax / a.i. / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-09-07 17:36:38 |
| Source code size: | 746 bytes / 24 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 789 / 806 |
| Version history: | 11 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1011170 - showWebs - synonym of showTabbedWebs |