FileDocCategorySizeDatePackage
MainFrame.javaAPI DocGlassfish v2 API5175Fri May 04 22:33:26 BST 2007com.sun.enterprise.tools.verifier.gui

MainFrame

public class MainFrame extends JFrame

Fields Summary
private static MainFrame
verifierPanel
Deploytool gui entry point (acessed via reflection)
private static boolean
exitOnClose
MainPanel
mp
Constructors Summary
public MainFrame()
Constructor.


          
      
        this(null);
    
public MainFrame(String jarFileName)

        this(jarFileName, false, null);
    
public MainFrame(String jarFileName, boolean exitOnClose, com.sun.enterprise.tools.verifier.Verifier verifier)

        super((StringManagerHelper.getLocalStringsManager().getLocalString
                ("com.sun.enterprise.tools.verifier.gui.MainFrame" + // NOI18N
                ".WindowTitle", // NOI18N
                        "Verify Specification Compliance"))); // NOI18N
        setExitOnClose(exitOnClose);

        // 508 compliance for the JFrame
        this.getAccessibleContext().setAccessibleName(StringManagerHelper.getLocalStringsManager()
                .getLocalString("com.sun.enterprise.tools.verifier.gui.MainFrame" + // NOI18N
                ".jfName", // NOI18N
                        "Main Window")); // NOI18N
        this.getAccessibleContext().setAccessibleDescription(StringManagerHelper.getLocalStringsManager()
                .getLocalString("com.sun.enterprise.tools.verifier.gui.MainFrame" + // NOI18N
                ".jfDesc", // NOI18N
                        "This is the main window of the verifier tool")); // NOI18N

        if (exitOnClose) {
            this.addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent e) {
                    System.exit(0);
                }
            });
        }
        Container contentPane = getContentPane();
        mp = new MainPanel(this, jarFileName, verifier);
        contentPane.add(mp);
        JOptionPane.showMessageDialog(this,
                StringManagerHelper.getLocalStringsManager()
                .getLocalString("com.sun.enterprise.tools.verifier.gui.Deprecation", // NOI18N
                        "\nThis GUI has been deprecated. Please use the GUI that comes with NetBeans."), // NOI18N
                "WARNING", JOptionPane.WARNING_MESSAGE); // NOI18N
    
Methods Summary
public static javax.swing.JFramegetDeploytoolVerifierFrame(java.io.File jarFile)

        StringManagerHelper.setLocalStringsManager(Verifier.class);
        if (verifierPanel == null) {
            verifierPanel = new MainFrame();
        } else {
            verifierPanel.getMainPanel().reset();
        }
        if (jarFile != null) {
            verifierPanel.getMainPanel().setJarFilename(
                    jarFile.getAbsolutePath());
        }
        return verifierPanel;
    
public static booleangetExitOnClose()

        return exitOnClose;
    
public MainPanelgetMainPanel()

        return mp;
    
public static voidsetExitOnClose(boolean b)

        exitOnClose = b;