| /* |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| */ |
| |
| package org.netbeans.modules.j2ee.ejbjarproject.ui.customizer; |
| |
| import javax.swing.JPanel; |
| import org.openide.util.HelpCtx; |
| |
| /** Customizer for general project attributes. |
| * |
| * @author phrebejk |
| */ |
| public class CustomizerJar extends JPanel implements HelpCtx.Provider { |
| private static final long serialVersionUID = 19686368769140701L; |
| |
| public CustomizerJar( EjbJarProjectProperties uiProperties ) { |
| initComponents(); |
| |
| jTextFieldDistDir.setDocument( uiProperties.DIST_JAR_MODEL ); |
| jTextFieldExcludes.setDocument( uiProperties.BUILD_CLASSES_EXCLUDES_MODEL ); |
| |
| uiProperties.JAR_COMPRESS_MODEL.setMnemonic( jCheckBoxCommpress.getMnemonic() ); |
| jCheckBoxCommpress.setModel( uiProperties.JAR_COMPRESS_MODEL ); |
| uiProperties.INCLUDE_JARS_MODEL.setMnemonic( includeJarsCheckBox.getMnemonic() ); |
| includeJarsCheckBox.setModel(uiProperties.INCLUDE_JARS_MODEL); |
| } |
| |
| public HelpCtx getHelpCtx() { |
| return new HelpCtx( CustomizerJar.class ); |
| } |
| |
| |
| /** This method is called from within the constructor to |
| * initialize the form. |
| * WARNING: Do NOT modify this code. The content of this method is |
| * always regenerated by the Form Editor. |
| */ |
| // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents |
| private void initComponents() { |
| |
| jLabelDistDir = new javax.swing.JLabel(); |
| jTextFieldDistDir = new javax.swing.JTextField(); |
| jLabel2 = new javax.swing.JLabel(); |
| jTextFieldExcludes = new javax.swing.JTextField(); |
| jCheckBoxCommpress = new javax.swing.JCheckBox(); |
| excludeMessage = new javax.swing.JLabel(); |
| includeJarsCheckBox = new javax.swing.JCheckBox(); |
| |
| jLabelDistDir.setLabelFor(jTextFieldDistDir); |
| org.openide.awt.Mnemonics.setLocalizedText(jLabelDistDir, org.openide.util.NbBundle.getMessage(CustomizerJar.class, "LBL_CustomizeJar_DistDir_JTextField")); // NOI18N |
| |
| jTextFieldDistDir.setEditable(false); |
| |
| jLabel2.setLabelFor(jTextFieldExcludes); |
| org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(CustomizerJar.class, "LBL_CustomizeJar_Excludes_JTextField")); // NOI18N |
| |
| org.openide.awt.Mnemonics.setLocalizedText(jCheckBoxCommpress, org.openide.util.NbBundle.getMessage(CustomizerJar.class, "LBL_CustomizeJar_Commpres_JCheckBox")); // NOI18N |
| |
| excludeMessage.setLabelFor(jTextFieldExcludes); |
| org.openide.awt.Mnemonics.setLocalizedText(excludeMessage, org.openide.util.NbBundle.getMessage(CustomizerJar.class, "LBL_CustomizeJar_ExcludeMessage_JLabel")); // NOI18N |
| |
| org.openide.awt.Mnemonics.setLocalizedText(includeJarsCheckBox, org.openide.util.NbBundle.getMessage(CustomizerJar.class, "LBL_Package_Required")); // NOI18N |
| |
| javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); |
| this.setLayout(layout); |
| layout.setHorizontalGroup( |
| layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
| .addGroup(layout.createSequentialGroup() |
| .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
| .addGroup(layout.createSequentialGroup() |
| .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
| .addComponent(jLabel2) |
| .addComponent(jLabelDistDir)) |
| .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
| .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
| .addComponent(excludeMessage) |
| .addComponent(jTextFieldExcludes, javax.swing.GroupLayout.DEFAULT_SIZE, 190, Short.MAX_VALUE) |
| .addComponent(jTextFieldDistDir, javax.swing.GroupLayout.DEFAULT_SIZE, 190, Short.MAX_VALUE))) |
| .addComponent(jCheckBoxCommpress) |
| .addComponent(includeJarsCheckBox)) |
| .addContainerGap()) |
| ); |
| layout.setVerticalGroup( |
| layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
| .addGroup(layout.createSequentialGroup() |
| .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
| .addComponent(jLabelDistDir) |
| .addComponent(jTextFieldDistDir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) |
| .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
| .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
| .addComponent(jLabel2) |
| .addComponent(jTextFieldExcludes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) |
| .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
| .addComponent(excludeMessage) |
| .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
| .addComponent(jCheckBoxCommpress) |
| .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
| .addComponent(includeJarsCheckBox) |
| .addContainerGap(155, Short.MAX_VALUE)) |
| ); |
| |
| jTextFieldDistDir.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getBundle(CustomizerJar.class).getString("AD_jTextFieldDistDir")); // NOI18N |
| jTextFieldExcludes.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getBundle(CustomizerJar.class).getString("AD_jTextFieldExcludes")); // NOI18N |
| jCheckBoxCommpress.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getBundle(CustomizerJar.class).getString("AD_jCheckBoxCompress")); // NOI18N |
| }// </editor-fold>//GEN-END:initComponents |
| |
| |
| // Variables declaration - do not modify//GEN-BEGIN:variables |
| private javax.swing.JLabel excludeMessage; |
| private javax.swing.JCheckBox includeJarsCheckBox; |
| private javax.swing.JCheckBox jCheckBoxCommpress; |
| private javax.swing.JLabel jLabel2; |
| private javax.swing.JLabel jLabelDistDir; |
| private javax.swing.JTextField jTextFieldDistDir; |
| private javax.swing.JTextField jTextFieldExcludes; |
| // End of variables declaration//GEN-END:variables |
| |
| } |