sclass G22ScriptsPanel { replace Script with G22LeftArrowScript. replace IDE with G22LAScriptIDE. transient settable G22Utils g22utils; *(G22Utils *g22utils) {} transient SimpleCRUD_v2<Script> scriptCRUD; transient SingleComponentPanel scpIDE; transient IDE scriptIDE; cachedVisualize { scriptCRUD = new SimpleCRUD_v2<>(g22utils.concepts(), Script); scriptCRUD.noSubclasses(true); scriptCRUD.entityName = -> "Script"; g22utils.setupScriptCRUD(scriptCRUD, true); scpIDE = singleComponentPanel(); var scriptCRUDVis = scriptCRUD.visualize(); scriptCRUD.onSelectionChanged(-> { scriptIDE = new IDE(g22utils); var script = scriptCRUD.selected(); scriptIDE.setScript(script); scpIDE.set(jCenteredRaisedSection(str(script), scriptIDE)); }); ret jvsplit( jCenteredSection("Scripts", scriptCRUDVis), scpIDE); } void updateCount { scriptCRUD.update(); } void edit(Script script) { scriptCRUD.setSelected(script); } void setSelected(Script script) { scriptCRUD.setSelected(script); } void selectAfterUpdate(Script script) { scriptCRUD.selectAfterUpdate(script); } }
Began life as a copy of #1034599
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034946 |
Snippet name: | G22ScriptsPanel backup |
Eternal ID of this version: | #1034946/1 |
Text MD5: | 9bf8f8d2f9d9e001dcbab481cbf9a7c1 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-17 18:05:08 |
Source code size: | 1265 bytes / 51 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 116 / 133 |
Referenced in: | [show references] |