001     
002    /*****************************************************************************
003    
004        jBudget.
005        Copyright (C) 2006  Dmitri Petrov
006    
007        This program is free software: you can redistribute it and/or modify
008        it under the terms of the GNU General Public License as published by
009        the Free Software Foundation, either version 3 of the License, or
010        (at your option) any later version.
011    
012        This program is distributed in the hope that it will be useful,
013        but WITHOUT ANY WARRANTY; without even the implied warranty of
014        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
015        GNU General Public License for more details.
016    
017        You should have received a copy of the GNU General Public License
018        along with this program.  If not, see <http://www.gnu.org/licenses/>.
019     
020    /*****************************************************************************
021    
022    /*
023     * CategoryRemovePanel.java
024     *
025     * Created on April 6, 2006, 2:17 PM
026     */
027    
028    package org.jbudget.gui.budget;
029    
030    /**
031     *
032     * @author  petrov
033     */
034    public class CategoryRemovePanel extends javax.swing.JPanel
035    {
036      
037      /** Creates new form CategoryRemovePanel */
038      public CategoryRemovePanel()
039      {
040        initComponents();
041      }
042      
043      /** This method is called from within the constructor to
044       * initialize the form.
045       * WARNING: Do NOT modify this code. The content of this method is
046       * always regenerated by the Form Editor.
047       */
048      // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
049      private void initComponents()
050      {
051        subcategoriesBG = new javax.swing.ButtonGroup();
052        allocationsBG = new javax.swing.ButtonGroup();
053        jPanel1 = new javax.swing.JPanel();
054        titleLabel = new javax.swing.JLabel();
055        jSeparator1 = new javax.swing.JSeparator();
056        jPanel2 = new javax.swing.JPanel();
057        jPanel3 = new javax.swing.JPanel();
058        removeSubRB = new javax.swing.JRadioButton();
059        promoteSubRB = new javax.swing.JRadioButton();
060        jPanel4 = new javax.swing.JPanel();
061        removeAllocRB = new javax.swing.JRadioButton();
062        promoteAllocRB = new javax.swing.JRadioButton();
063    
064        setLayout(new java.awt.BorderLayout());
065    
066        jPanel1.setLayout(new java.awt.BorderLayout());
067    
068        titleLabel.setFont(new java.awt.Font("Dialog", 1, 14));
069        titleLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
070        titleLabel.setText("Remove Budget Category [Name]");
071        titleLabel.setMaximumSize(new java.awt.Dimension(52, 25));
072        titleLabel.setMinimumSize(new java.awt.Dimension(52, 21));
073        titleLabel.setPreferredSize(new java.awt.Dimension(237, 25));
074        jPanel1.add(titleLabel, java.awt.BorderLayout.CENTER);
075    
076        jPanel1.add(jSeparator1, java.awt.BorderLayout.SOUTH);
077    
078        add(jPanel1, java.awt.BorderLayout.NORTH);
079    
080        jPanel2.setLayout(new java.awt.GridLayout());
081    
082        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Subcategories", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 14)));
083        subcategoriesBG.add(removeSubRB);
084        removeSubRB.setFont(new java.awt.Font("Dialog", 0, 14));
085        removeSubRB.setSelected(true);
086        removeSubRB.setText("Remove");
087        removeSubRB.setToolTipText("Remove subcategories");
088        removeSubRB.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
089        removeSubRB.setMargin(new java.awt.Insets(0, 0, 0, 0));
090    
091        subcategoriesBG.add(promoteSubRB);
092        promoteSubRB.setFont(new java.awt.Font("Dialog", 0, 14));
093        promoteSubRB.setText("Promote");
094        promoteSubRB.setToolTipText("Promote subcategories");
095        promoteSubRB.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
096        promoteSubRB.setMargin(new java.awt.Insets(0, 0, 0, 0));
097    
098        org.jdesktop.layout.GroupLayout jPanel3Layout = new org.jdesktop.layout.GroupLayout(jPanel3);
099        jPanel3.setLayout(jPanel3Layout);
100        jPanel3Layout.setHorizontalGroup(
101          jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
102          .add(jPanel3Layout.createSequentialGroup()
103            .addContainerGap()
104            .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
105              .add(removeSubRB)
106              .add(promoteSubRB))
107            .addContainerGap(103, Short.MAX_VALUE))
108        );
109        jPanel3Layout.setVerticalGroup(
110          jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
111          .add(jPanel3Layout.createSequentialGroup()
112            .add(removeSubRB)
113            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
114            .add(promoteSubRB)
115            .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
116        );
117        jPanel2.add(jPanel3);
118    
119        jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Allocations & Deductions", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 14)));
120        allocationsBG.add(removeAllocRB);
121        removeAllocRB.setFont(new java.awt.Font("Dialog", 0, 14));
122        removeAllocRB.setSelected(true);
123        removeAllocRB.setText("Remove");
124        removeAllocRB.setToolTipText("Remove allocations and deductions");
125        removeAllocRB.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
126        removeAllocRB.setMargin(new java.awt.Insets(0, 0, 0, 0));
127    
128        allocationsBG.add(promoteAllocRB);
129        promoteAllocRB.setFont(new java.awt.Font("Dialog", 0, 14));
130        promoteAllocRB.setText("Promote");
131        promoteAllocRB.setToolTipText("Promote allocations and deductions");
132        promoteAllocRB.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
133        promoteAllocRB.setMargin(new java.awt.Insets(0, 0, 0, 0));
134    
135        org.jdesktop.layout.GroupLayout jPanel4Layout = new org.jdesktop.layout.GroupLayout(jPanel4);
136        jPanel4.setLayout(jPanel4Layout);
137        jPanel4Layout.setHorizontalGroup(
138          jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
139          .add(jPanel4Layout.createSequentialGroup()
140            .addContainerGap()
141            .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
142              .add(removeAllocRB)
143              .add(promoteAllocRB))
144            .addContainerGap(103, Short.MAX_VALUE))
145        );
146        jPanel4Layout.setVerticalGroup(
147          jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
148          .add(jPanel4Layout.createSequentialGroup()
149            .add(removeAllocRB)
150            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
151            .add(promoteAllocRB, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 15, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
152            .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
153        );
154        jPanel2.add(jPanel4);
155    
156        add(jPanel2, java.awt.BorderLayout.CENTER);
157    
158      }// </editor-fold>//GEN-END:initComponents
159      
160      
161      // Variables declaration - do not modify//GEN-BEGIN:variables
162      private javax.swing.ButtonGroup allocationsBG;
163      private javax.swing.JPanel jPanel1;
164      private javax.swing.JPanel jPanel2;
165      private javax.swing.JPanel jPanel3;
166      private javax.swing.JPanel jPanel4;
167      private javax.swing.JSeparator jSeparator1;
168      public javax.swing.JRadioButton promoteAllocRB;
169      public javax.swing.JRadioButton promoteSubRB;
170      public javax.swing.JRadioButton removeAllocRB;
171      public javax.swing.JRadioButton removeSubRB;
172      private javax.swing.ButtonGroup subcategoriesBG;
173      public javax.swing.JLabel titleLabel;
174      public javax.swing.JRadioButton toUnknownRB;
175      // End of variables declaration//GEN-END:variables
176      
177    }