Uses 2164K of libraries. Click here for Pure Java version (70040L/369K).
1 | persistable sclass G22POIsPanel extends G22CRUDAndDetailPanel<G22PointOfInterest> { |
2 | SimpleCRUD_v2<G22PointOfInterest> makeCRUD() { |
3 | var crud = new SimpleCRUD_v2<>(g22utils.concepts(), G22PointOfInterest); |
4 | crud.excludeFieldsFromEditing("bnpSettings"); |
5 | crud.entityName = -> "Point of interest"; |
6 | crud.entityNamePlural = -> "Points of interest"; |
7 | crud.itemToMap_inner2 = poi -> { |
8 | var map = crud.itemToMap_inner2_base(poi); |
9 | changeKeyAndModifyValue(map, "bnpSettings", "Blur & Posterize", |
10 | bnp -> tok_extractRoundBracketBody(str(bnp))); |
11 | changeKey(map, "imageMD5", "Image ID"); |
12 | ret map; |
13 | }; |
14 | ret crud; |
15 | } |
16 | |
17 | @Override |
18 | S detailTitle(G22PointOfInterest poi) { |
19 | ret str(poi); // crud.entityName() + " " + poi.id; |
20 | } |
21 | |
22 | JComponent makeDetailView(G22PointOfInterest poi) { |
23 | ret new G22POIPanel(poi).visualize(); |
24 | } |
25 | |
26 | selfType g22utils(G22Utils g22utils) { super.g22utils(g22utils); this; } |
27 | } |
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: | 222 / 358 |
Version history: | 22 change(s) |
Referenced in: | [show references] |