1    /*
2    Copyright 2003 by Ralph Hartley
3    This software is licenced under the terms of the
4    Gnu Public Licence
5    */
6    //package carto;
7    
8    import java.awt.*;
9    import javax.swing.*;
10   import java.awt.event.*;
11   import java.util.*;
12   import java.io.*;
13   
14   public class PassageEditor extends CompEditor{
15   
16     JTabbedPane tabs = new JTabbedPane();
17   
18     public PassageEditor(Passage root,CartoFrame frame) {
19       super(root,frame,false);
20   
21       tabs.addTab("Passage: "+target.getName(),this);
22   
23       for (Iterator it = root.segments.iterator();it.hasNext();) {
24         Segment seg = (Segment)it.next();
25         SegEditor ed = new SegEditor(seg,frame,false);
26         tabs.addTab("Seg: "+seg.getName(),ed);
27       }
28   
29       editframe.getContentPane().add(tabs,BorderLayout.CENTER);
30     }
31   }
32