1 19 20 package org.netbeans.modules.j2ee.ejbjarproject.ui.wizards; 21 22 import javax.swing.JPanel ; 23 import javax.swing.event.DocumentEvent ; 24 import javax.swing.event.DocumentListener ; 25 26 import org.openide.WizardDescriptor; 27 import org.openide.util.NbBundle; 28 29 public class PanelConfigureProjectAppVisual extends JPanel { 30 31 private PanelConfigureProjectApp panel; 32 33 private PanelProjectAppVisual projectAppPanel; 34 36 37 public PanelConfigureProjectAppVisual(PanelConfigureProjectApp panel) { 38 this.panel = panel; 39 initComponents(); 40 this.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(PanelConfigureProjectAppVisual.class, "ACS_NWP1_AppOptionPanel_A11YDesc")); 42 projectAppPanel = new PanelProjectAppVisual(panel); 43 locationContainer.add(projectAppPanel, java.awt.BorderLayout.NORTH); 44 45 48 61 68 69 setName(NbBundle.getBundle("org/netbeans/modules/j2ee/ejbjarproject/ui/wizards/Bundle").getString("LBL_NWP1_ProjectAppName")); putClientProperty ("NewProjectWizard_Title", NbBundle.getMessage(PanelConfigureProjectVisual.class, "TXT_NewWebApp")); } 73 74 boolean valid(WizardDescriptor wizardDescriptor) { 75 return projectAppPanel.valid(wizardDescriptor); 76 } 77 78 void read (WizardDescriptor d) { 79 projectAppPanel.read(d); 80 } 82 83 void store(WizardDescriptor d) { 84 projectAppPanel.store(d); 85 } 87 88 93 private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; 95 96 locationContainer = new javax.swing.JPanel (); 97 98 setLayout(new java.awt.GridBagLayout ()); 99 100 setPreferredSize(new java.awt.Dimension (550, 350)); 101 setRequestFocusEnabled(false); 102 locationContainer.setLayout(new java.awt.BorderLayout ()); 103 104 gridBagConstraints = new java.awt.GridBagConstraints (); 105 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 106 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; 107 gridBagConstraints.weightx = 1.0; 108 add(locationContainer, gridBagConstraints); 109 110 } 112 private javax.swing.JPanel locationContainer; 114 116 } 117 | Popular Tags |