Download Jar. Uses 616K of libraries. Click here for Pure Java version (14186L/101K).
1 | !7 |
2 | |
3 | static L<Web> webs; |
4 | |
5 | p { |
6 | makeForm(allWebsFromCE(), "an email"); |
7 | } |
8 | |
9 | svoid makeForm(L<Web> webs, S what) { |
10 | new L form; |
11 | printWeb(first(webs)); |
12 | print("Looking for: " + what); |
13 | for (S thing : webs_findNodeAndRelationB(webs, what, "has")) { |
14 | S whichIs = first(webs_findNodeAndRelationB(webs, thing, "which is")); |
15 | S renderAs = first(webs_findNodeAndRelationB(webs, whichIs, "render as")); |
16 | S function = first(webs_findNodeAndRelationB(webs, renderAs, "made by function")); |
17 | print(thing + " (" + whichIs + ") -> " + renderAs + " -> " + function); |
18 | if (function != null) |
19 | addAll(form, thing, makeAndCall(function)); |
20 | } |
21 | |
22 | form.add(func { infoBox("Hello world!"); false; }); |
23 | |
24 | showForm(asObjectArray(form)); |
25 | } |
Began life as a copy of #1010021
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: | #1010024 |
Snippet name: | Make form demo [OK with diagrams available locally] |
Eternal ID of this version: | #1010024/11 |
Text MD5: | c4f90609dd53a5e0550ff69baec8274c |
Transpilation MD5: | 0c7c1aa7f77ca5ed7fbe5ebdb05fd737 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-02 01:46:16 |
Source code size: | 763 bytes / 25 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 531 / 1512 |
Version history: | 10 change(s) |
Referenced in: | [show references] |