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

26
LINES

< > BotCompany Repo | #1036364 // G22LAScratchpad

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

Transpiled version (65320L) is out of date.

concept G22LAScratchpad extends ConceptWithChangeListeners {
  settableWithVar S text;
  transient JLeftArrowScriptIDE ide;
  
  G22Utils g22utils() { ret main g22utils(this); }
  
  cachedVisualize {
    ide = g22utils().leftArrowScriptIDE();
    ide.sourceInfo("Scratchpad");

    var btnSave = jImageButton(#1103084, "Save script", rThread saveAsNewScript);
    
    // place to the right of hideable stuff
    int idx = 0;
    while (getComponentAtIndex(ide.buttons(), idx) instanceof SingleComponentPanel) idx++;
    addComponentAtIndex(ide.buttons(), idx, btnSave);
      
    ide.sectionTitle("Left Arrow Script Scratchpad");
    ide.lvScript(varText());
    ret withTopMargin(ide.visualize());
  }
  
  void saveAsNewScript {
    g22utils().projectActions().saveAsNewScript(text);
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036364
Snippet name: G22LAScratchpad
Eternal ID of this version: #1036364/4
Text MD5: 01709346443e184f187a06af1689b178
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-26 18:45:03
Source code size: 819 bytes / 26 lines
Pitched / IR pitched: No / No
Views / Downloads: 55 / 102
Version history: 3 change(s)
Referenced in: [show references]