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

19
LINES

< > BotCompany Repo | #1021238 // Dialogs CRUD

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (8626L/46K).

!7

concept Dialog {
  S globalID = aGlobalID(), text;
}

cmodule DialogsCRUD > DynCRUD<Dialog> {
  afterVisualize {
    addSelectionDependentButton("Edit in editor", rThread {
      dm_makeOrShowAndCallModule("#1021235/DialogEditor", 'fromRaw, selected().text)
    });
  }
  
  // API
  
  void saveDialog(S globalID, S text) {
    cset(uniq_sync Dialog(+globalID), +text);
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021238
Snippet name: Dialogs CRUD
Eternal ID of this version: #1021238/3
Text MD5: 5b07f1f07e6ba91b685eea38e245ab55
Transpilation MD5: 582eef7b01d016667a795e631688c66f
Author: stefan
Category: javax / a.i.
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-05 14:31:58
Source code size: 398 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 291 / 606
Version history: 2 change(s)
Referenced in: [show references]