1 19 20 package org.netbeans.modules.web.wizards; 21 22 import java.awt.GridBagConstraints ; 23 import java.awt.Insets ; 24 25 import javax.swing.JLabel ; 26 import javax.swing.JPanel ; 27 28 import org.openide.util.NbBundle; 29 import org.openide.util.HelpCtx; 30 31 35 36 class DeployDataExtraPanel extends BaseWizardPanel { 37 38 private ServletData deployData; 39 private JLabel jLinstruction; 40 private InitParamPanel paramPanel; 41 42 private static final long serialVersionUID = -2720213209076965116L; 43 44 DeployDataExtraPanel(TargetEvaluator evaluator) { 45 46 deployData = (ServletData)(evaluator.getDeployData()); 47 setName(NbBundle.getMessage(DeployDataExtraPanel.class, 48 "TITLE_ddpanel_filter_2")); 49 getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(DeployDataExtraPanel.class, "ACSD_deployment_2")); 50 initComponents (); 51 fireChangeEvent(); 52 } 53 54 private void initComponents () { 55 56 setLayout(new java.awt.GridBagLayout ()); 58 setPreferredSize(new java.awt.Dimension (450, 250)); 59 60 GridBagConstraints fullRowC = new GridBagConstraints (); 62 fullRowC.gridx = 0; 63 fullRowC.gridy = GridBagConstraints.RELATIVE; 64 fullRowC.gridwidth = 10; 65 fullRowC.weightx = 1.0; 66 fullRowC.anchor = GridBagConstraints.WEST; 67 fullRowC.fill = GridBagConstraints.HORIZONTAL; 68 fullRowC.insets = new Insets (4, 0, 4, 60); 69 70 GridBagConstraints tablePanelC = new GridBagConstraints (); 72 tablePanelC.gridx = 0; 73 tablePanelC.gridy = GridBagConstraints.RELATIVE; 74 tablePanelC.gridheight = 5; 75 tablePanelC.gridwidth = 10; 76 tablePanelC.fill = GridBagConstraints.BOTH; 77 tablePanelC.weightx = 1.0; 78 tablePanelC.anchor = GridBagConstraints.WEST; 80 tablePanelC.insets = new Insets (4, 0, 4, 0); 81 82 GridBagConstraints fillerC = new GridBagConstraints (); 84 fillerC.gridx = 0; 85 fillerC.weighty = 1.0; 86 fillerC.gridy = GridBagConstraints.RELATIVE; 87 fillerC.fill = GridBagConstraints.HORIZONTAL; 88 89 jLinstruction = new JLabel (NbBundle.getMessage(DeployDataExtraPanel.class, "LBL_dd_filter_2")); 92 this.add(jLinstruction, fullRowC); 93 94 paramPanel = new InitParamPanel(deployData, this); 96 this.add(paramPanel, tablePanelC); 97 98 JPanel filler2 = new JPanel (); 100 this.add(filler2, fillerC); 101 } 102 103 public void setData() { 104 jLinstruction.setEnabled(deployData.makeEntry()); 105 paramPanel.setEnabled(deployData.makeEntry()); 106 } 107 108 public void log(String s) { 109 System.out.println("DeployDataExtraPanel" + s); } 111 112 public HelpCtx getHelp() { 113 return new HelpCtx(DeployDataExtraPanel.class); 114 } 115 } 116 117 118 | Popular Tags |