FileDocCategorySizeDatePackage
SiteFrame.javaAPI DocExample1111Thu Oct 24 20:14:20 BST 2002None

SiteFrame

public class SiteFrame extends JInternalFrame

Fields Summary
JList
nameList
SiteManager
parent
String[]
pages
Constructors Summary
public SiteFrame(String name, SiteManager sm)


       
    super("Site: " + name, true, true, true);
    parent = sm;
    setBounds(50,50,250,100);

    nameList = new JList(pages);
    nameList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    nameList.addListSelectionListener(new ListSelectionListener() {
      public void valueChanged(ListSelectionEvent lse) {
        // We know this is the list, so pop up the page.
        if (!lse.getValueIsAdjusting()) {
          parent.addPageFrame((String)nameList.getSelectedValue());
        }
      }
    });
    Container contentPane = getContentPane();
    contentPane.add(nameList, BorderLayout.CENTER);
  
Methods Summary