Libraryless. Click here for Pure Java version (17765L/129K).
!7 concept Feature { S feature, status; } module Features > DynCRUD<Feature> { *() { super(Feature); } afterVisualize { replaceComponent(crud.tableSearcher.tfInput, func(JComponent c) -> JComponent { centerAndEastWithMargin(c, jbutton("Add feature...", rThread { addFeature(searchTerm()) })) }); onEnter(crud.tableSearcher.tfInput, rThread { addFeature(searchTerm()) }); } void addFeature(fS term) enter { final JTextField tf1 = jtextfield(or2(term, dm_topInput())), tf2 = jtextfield(); showFormTitled("Add Feature", "Feature:", tf1, "Status:", tf2, rThread { S feature = gtt(tf1), status = gtt(tf2); uniq_sync(Feature, +feature, +status); }); focus(nempty(term) ? tf2 : tf1); } }
Began life as a copy of #1019783
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1019871 |
| Snippet name: | Features [Dyn Module] |
| Eternal ID of this version: | #1019871/4 |
| Text MD5: | fb08f02aafbf35e958e92ca4602a30ad |
| Transpilation MD5: | ff02eac54b1b4c6e921fc580eb4b372c |
| 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: | 2018-11-30 01:56:59 |
| Source code size: | 813 bytes / 30 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 532 / 758 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |