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

24
LINES

< > BotCompany Repo | #1035444 // G22NetworksPanel

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

Transpiled version (59712L) is out of date.

1  
concept G22NetworksPanel extends G22CRUDAndDetailPanel<G22Network> {
2  
  SimpleCRUD_v2<G22Network> makeCRUD() {
3  
    var crud = new SimpleCRUD_v2<>(g22utils.concepts(), G22Network);
4  
    crud.iconButtons(true);
5  
    crud.excludeFieldsFromEditing("elements");
6  
    //crud.showDuplicateButton(false);
7  
    crud.createDuplicate = network ->
8  
      (G22Network) g22utils.restructure(network);
9  
    crud.entityName = -> "Network";
10  
    crud.addButton(new JPopDownButton().content(
11  
      "Browse networks in other projects",
12  
        Runnable -> g22utils.openUIURL("Networks from all projects"))
13  
      .visualize());
14  
    ret crud;
15  
  }
16  
  
17  
  JComponent makeDetailView(G22Network network) {
18  
    ret JG22Network(g22utils, network).visualize();
19  
  }
20  
  
21  
  SimpleCRUD_v2<G22Network> networkCRUD() { ret crud(); }
22  
  
23  
  selfType g22utils(G22Utils g22utils) { super.g22utils(g22utils); this; }
24  
}

Author comment

Began life as a copy of #1034599

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035444
Snippet name: G22NetworksPanel
Eternal ID of this version: #1035444/14
Text MD5: d1a5ebf6c5792e572e9422921f707b5d
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-06-16 16:43:46
Source code size: 890 bytes / 24 lines
Pitched / IR pitched: No / No
Views / Downloads: 173 / 269
Version history: 13 change(s)
Referenced in: [show references]