Uses 2164K of libraries. Click here for Pure Java version (70040L/369K).
persistable sclass G22POIsPanel extends G22CRUDAndDetailPanel<G22PointOfInterest> { SimpleCRUD_v2<G22PointOfInterest> makeCRUD() { var crud = new SimpleCRUD_v2<>(g22utils.concepts(), G22PointOfInterest); crud.excludeFieldsFromEditing("bnpSettings"); crud.entityName = -> "Point of interest"; crud.entityNamePlural = -> "Points of interest"; crud.itemToMap_inner2 = poi -> { var map = crud.itemToMap_inner2_base(poi); changeKeyAndModifyValue(map, "bnpSettings", "Blur & Posterize", bnp -> tok_extractRoundBracketBody(str(bnp))); changeKey(map, "imageMD5", "Image ID"); ret map; }; ret crud; } @Override S detailTitle(G22PointOfInterest poi) { ret str(poi); // crud.entityName() + " " + poi.id; } JComponent makeDetailView(G22PointOfInterest poi) { ret new G22POIPanel(poi).visualize(); } selfType g22utils(G22Utils g22utils) { super.g22utils(g22utils); this; } }
Began life as a copy of #1034473
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035958 |
Snippet name: | G22POIsPanel |
Eternal ID of this version: | #1035958/23 |
Text MD5: | 5ceb7b55f85f1cf3dced39271c19d800 |
Transpilation MD5: | 56631ffa3ee255fc5cf2d6d7a34d0b3c |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-08-20 23:53:24 |
Source code size: | 980 bytes / 27 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 219 / 352 |
Version history: | 22 change(s) |
Referenced in: | [show references] |