FileDocCategorySizeDatePackage
ViewRootPathDialog.javaAPI DocphoneME MR2 API (J2ME)2388Wed May 02 17:59:48 BST 2007view

ViewRootPathDialog

public class ViewRootPathDialog extends JDialog implements ActionListener

Fields Summary
private com.sun.cldchi.tools.memoryprofiler.data.MPDataProvider
_provider
Constructors Summary
public ViewRootPathDialog(Frame frame, String title, boolean param, Object[] objects, com.sun.cldchi.tools.memoryprofiler.data.MPDataProvider provider)

    super(frame, title, param);
    _provider = provider;
    JButton closeButton = new JButton("Close");
    closeButton.addActionListener(this);
    ViewObjectsPanel vo_panel = new ViewObjectsPanel(provider);
    vo_panel.initUI(false);
    vo_panel.setObjects(objects);
    getContentPane().add(vo_panel, BorderLayout.CENTER);
    getContentPane().add(closeButton, BorderLayout.PAGE_END);
    pack();
    getRootPane().setDefaultButton(closeButton);
  
Methods Summary
public voidactionPerformed(java.awt.event.ActionEvent e)

    setVisible(false);
  
public java.awt.DimensiongetPrefferedSize()

    return new Dimension(500, 300);
  
public static voidshowDialog(java.awt.Component frameComp, java.lang.Object[] objects, java.lang.String title, com.sun.cldchi.tools.memoryprofiler.data.MPDataProvider provider)

        Frame frame = JOptionPane.getFrameForComponent(frameComp);
        ViewRootPathDialog dialog = new ViewRootPathDialog(frame,
                                title, true, objects, provider);
        dialog.setVisible(true);