1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 package org.utgenome.gwt.utgb.client.track.lib;
26
27 import org.utgenome.gwt.utgb.client.track.Track;
28 import org.utgenome.gwt.utgb.client.track.TrackBase;
29
30 import com.google.gwt.user.client.ui.FlexTable;
31 import com.google.gwt.user.client.ui.ListBox;
32 import com.google.gwt.user.client.ui.Widget;
33
34 public class TrackGenTrack extends TrackBase {
35
36 public static TrackFactory factory() {
37 return new TrackFactory() {
38 public Track newInstance() {
39 return new TrackGenTrack();
40 }
41 };
42 }
43
44 final FlexTable layoutTable = new FlexTable();
45 final ListBox trackSelector = new ListBox();
46
47 public TrackGenTrack() {
48 super("Track Factory");
49
50 trackSelector.addItem("DAS Track", "das");
51 trackSelector.addItem("BED Track", "bed");
52 trackSelector.addItem("Read Track", "read");
53 trackSelector.addItem("Image Track", "image");
54 trackSelector.addItem("IFrame Track", "frame");
55
56 layoutTable.setWidget(0, 0, trackSelector);
57 }
58
59 public Widget getWidget() {
60
61 return layoutTable;
62 }
63
64 }