Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.plugin / org.gvsig.app / org.gvsig.app.mainplugin / src / main / java / org / gvsig / app / extension / develtools / EditingListenerPanelLayout.java @ 44455

History | View | Annotate | Download (6.14 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24

    
25
package org.gvsig.app.extension.develtools;
26

    
27
import java.awt.GridBagConstraints;
28
import java.awt.GridBagLayout;
29
import javax.swing.BorderFactory;
30
import javax.swing.JButton;
31
import javax.swing.JCheckBox;
32
import javax.swing.JLabel;
33
import javax.swing.JPanel;
34
import javax.swing.JScrollPane;
35
import javax.swing.JSeparator;
36
import javax.swing.JTextArea;
37
import javax.swing.JTextPane;
38
import javax.swing.border.TitledBorder;
39
import org.jdesktop.layout.GroupLayout;
40

    
41

    
42
public class EditingListenerPanelLayout extends javax.swing.JPanel {
43

    
44
    /**
45
     * Creates new form EditingListenerPanelLayout
46
     */
47
    public EditingListenerPanelLayout() {
48
        initComponents();
49
    }
50

    
51
    /**
52
     * This method is called from within the constructor to
53
     * initialize the form.
54
     * WARNING: Do NOT modify this code. The content of this method is
55
     * always regenerated by the Form Editor.
56
     */
57
    @SuppressWarnings("unchecked")
58
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
59
    private void initComponents() {
60
        GridBagConstraints gridBagConstraints;
61

    
62
        lblEditNotifications = new JLabel();
63
        btnClose = new JButton();
64
        btnClear = new JButton();
65
        jSeparator1 = new JSeparator();
66
        jSeparator2 = new JSeparator();
67
        chkAskToAceptNotification = new JCheckBox();
68
        jScrollPane2 = new JScrollPane();
69
        txtNotifications = new JTextPane();
70
        chkShowFeatureInForm = new JCheckBox();
71
        chkSkipFeatureValidation = new JCheckBox();
72

    
73
        setBorder(null);
74
        GridBagLayout layout = new GridBagLayout();
75
        layout.columnWidths = new int[] {0, 4, 0, 4, 0, 4, 0, 4, 0};
76
        layout.rowHeights = new int[] {0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0};
77
        setLayout(layout);
78

    
79
        lblEditNotifications.setText("Editing notifications");
80
        gridBagConstraints = new GridBagConstraints();
81
        gridBagConstraints.gridx = 2;
82
        gridBagConstraints.gridy = 1;
83
        gridBagConstraints.anchor = GridBagConstraints.LINE_START;
84
        gridBagConstraints.weightx = 1.0;
85
        add(lblEditNotifications, gridBagConstraints);
86

    
87
        btnClose.setText("Close");
88
        gridBagConstraints = new GridBagConstraints();
89
        gridBagConstraints.gridx = 3;
90
        gridBagConstraints.gridy = 10;
91
        gridBagConstraints.anchor = GridBagConstraints.LINE_END;
92
        add(btnClose, gridBagConstraints);
93

    
94
        btnClear.setText("Clear");
95
        gridBagConstraints = new GridBagConstraints();
96
        gridBagConstraints.gridx = 2;
97
        gridBagConstraints.gridy = 10;
98
        gridBagConstraints.anchor = GridBagConstraints.LINE_END;
99
        add(btnClear, gridBagConstraints);
100
        gridBagConstraints = new GridBagConstraints();
101
        gridBagConstraints.gridx = 0;
102
        gridBagConstraints.gridy = 0;
103
        add(jSeparator1, gridBagConstraints);
104
        gridBagConstraints = new GridBagConstraints();
105
        gridBagConstraints.gridx = 0;
106
        gridBagConstraints.gridy = 0;
107
        add(jSeparator2, gridBagConstraints);
108

    
109
        chkAskToAceptNotification.setText("Ask to acept or cancel notification");
110
        gridBagConstraints = new GridBagConstraints();
111
        gridBagConstraints.gridx = 2;
112
        gridBagConstraints.gridy = 4;
113
        gridBagConstraints.anchor = GridBagConstraints.LINE_START;
114
        add(chkAskToAceptNotification, gridBagConstraints);
115

    
116
        txtNotifications.setContentType("text/html"); // NOI18N
117
        jScrollPane2.setViewportView(txtNotifications);
118

    
119
        gridBagConstraints = new GridBagConstraints();
120
        gridBagConstraints.gridx = 2;
121
        gridBagConstraints.gridy = 2;
122
        gridBagConstraints.gridwidth = 2;
123
        gridBagConstraints.fill = GridBagConstraints.BOTH;
124
        gridBagConstraints.anchor = GridBagConstraints.LINE_START;
125
        gridBagConstraints.weightx = 1.0;
126
        gridBagConstraints.weighty = 1.0;
127
        add(jScrollPane2, gridBagConstraints);
128

    
129
        chkShowFeatureInForm.setText("Show feature in form"); // NOI18N
130
        gridBagConstraints = new GridBagConstraints();
131
        gridBagConstraints.gridx = 2;
132
        gridBagConstraints.gridy = 6;
133
        gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
134
        gridBagConstraints.anchor = GridBagConstraints.LINE_START;
135
        add(chkShowFeatureInForm, gridBagConstraints);
136

    
137
        chkSkipFeatureValidation.setText("Skip feature validation");
138
        gridBagConstraints = new GridBagConstraints();
139
        gridBagConstraints.gridx = 2;
140
        gridBagConstraints.gridy = 8;
141
        gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
142
        gridBagConstraints.anchor = GridBagConstraints.LINE_START;
143
        add(chkSkipFeatureValidation, gridBagConstraints);
144
    }// </editor-fold>//GEN-END:initComponents
145

    
146

    
147
    // Variables declaration - do not modify//GEN-BEGIN:variables
148
    protected JButton btnClear;
149
    protected JButton btnClose;
150
    protected JCheckBox chkAskToAceptNotification;
151
    protected JCheckBox chkShowFeatureInForm;
152
    protected JCheckBox chkSkipFeatureValidation;
153
    protected JScrollPane jScrollPane2;
154
    protected JSeparator jSeparator1;
155
    protected JSeparator jSeparator2;
156
    protected JLabel lblEditNotifications;
157
    protected JTextPane txtNotifications;
158
    // End of variables declaration//GEN-END:variables
159
}