FileDocCategorySizeDatePackage
SiteFrame.javaAPI DocExample1162Mon Nov 09 12:43:34 GMT 1998None

SiteFrame

public class SiteFrame extends JInternalFrame implements ListSelectionListener

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(this);

    Container contentPane = getContentPane();
    contentPane.add(nameList, BorderLayout.CENTER);
  
Methods Summary
public voidvalueChanged(javax.swing.event.ListSelectionEvent lse)

    // We know this is the list, so pop up the page
    if (!lse.getValueIsAdjusting()) {
      //System.out.println("Got file: " + (String)nameList.getSelectedValue());
      parent.addPageFrame((String)nameList.getSelectedValue());
    }