-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
'#1487 Creation of class to represent the nominatim panel.
- Loading branch information
1 parent
8cc2f77
commit b49ca1d
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
iped-geo/src/main/java/iped/geo/nominatim/ui/NominatimPanel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
} | ||
|
||
} |