1 package org.catacomb.dataview.build;
2
3 import org.catacomb.dataview.FrameController;
4 import org.catacomb.druid.build.Context;
5 import org.catacomb.druid.build.Druid;
6 import org.catacomb.druid.gui.base.DruPanel;
7
8
9 public class FrameSelector {
10
11 public String source;
12 public String display;
13
14
15
16
17 public DruPanel makePanel(Context parentContext) {
18 Druid druid = new Druid("DataviewPlayer");
19
20 druid.buildGUI();
21
22 DruPanel drup = (DruPanel)(druid.getRootComponent());
23
24 FrameController fcon = new FrameController(source, display);
25 parentContext.addToCache(fcon);
26
27 druid.attachSingleController(fcon);
28
29 return drup;
30
31 }
32
33
34
35 }