Skip to content

Commit

Permalink
'#1487 Creation of class to represent the nominatim panel.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdalla committed Sep 20, 2023
1 parent 8cc2f77 commit b49ca1d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions iped-geo/src/main/java/iped/geo/nominatim/ui/NominatimPanel.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package iped.geo.nominatim.ui;

import javax.swing.JScrollPane;
import javax.swing.JTree;

import bibliothek.gui.dock.common.DefaultSingleCDockable;
import iped.viewers.api.IMultiSearchResultProvider;

public class NominatimPanel extends JScrollPane {
IMultiSearchResultProvider app;
private JTree nominatimTree;

static NominatimPanel singleton;

private DefaultSingleCDockable nominatimTabDock;

public NominatimPanel(IMultiSearchResultProvider app) {
nominatimTree = new JTree();
singleton = this;
}

public static void install(IMultiSearchResultProvider app) {
NominatimTreeModel m = new NominatimTreeModel(app);
m.install();
singleton.setViewportView(singleton.nominatimTree);
singleton.nominatimTree.setModel(m);

}

}

0 comments on commit b49ca1d

Please sign in to comment.