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

25
LINES

< > BotCompany Repo | #1010024 // Make form demo [OK with diagrams available locally]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 616K of libraries. Click here for Pure Java version (14186L/101K).

!7

static L<Web> webs;

p {
  makeForm(allWebsFromCE(), "an email");
}

svoid makeForm(L<Web> webs, S what) {
  new L form;
  printWeb(first(webs));
  print("Looking for: " + what);
  for (S thing : webs_findNodeAndRelationB(webs, what, "has")) {
    S whichIs = first(webs_findNodeAndRelationB(webs, thing, "which is"));
    S renderAs = first(webs_findNodeAndRelationB(webs, whichIs, "render as"));
    S function = first(webs_findNodeAndRelationB(webs, renderAs, "made by function"));
    print(thing + " (" + whichIs + ") -> " + renderAs + " -> " + function);
    if (function != null)
      addAll(form, thing, makeAndCall(function));
  }
  
  form.add(func { infoBox("Hello world!"); false; });
  
  showForm(asObjectArray(form));
}

Author comment

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: 415 / 1189
Version history: 10 change(s)
Referenced in: [show references]