Statistics
| Revision:

root / org.gvsig.expressionfield / trunk / org.gvsig.expressionfield / src / main / java / org / gvsig / expressionfield / project / documents / table / gui / AdvancedPanelLayout.java @ 43

History | View | Annotate | Download (4.6 KB)

1
/*
2
 * To change this license header, choose License Headers in Project Properties.
3
 * To change this template file, choose Tools | Templates
4
 * and open the template in the editor.
5
 */
6
package org.gvsig.expressionfield.project.documents.table.gui;
7

    
8
/**
9
 *
10
 * @author jjdelcerro
11
 */
12
public class AdvancedPanelLayout extends javax.swing.JPanel {
13

    
14
    /**
15
     * Creates new form AdvancedPanel
16
     */
17
    public AdvancedPanelLayout() {
18
        initComponents();
19
    }
20

    
21
    /**
22
     * This method is called from within the constructor to initialize the form.
23
     * WARNING: Do NOT modify this code. The content of this method is always
24
     * regenerated by the Form Editor.
25
     */
26
    @SuppressWarnings("unchecked")
27
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
28
    private void initComponents() {
29
        java.awt.GridBagConstraints gridBagConstraints;
30

    
31
        filler2 = new javax.swing.Box.Filler(new java.awt.Dimension(4, 4), new java.awt.Dimension(4, 4), new java.awt.Dimension(4, 4));
32
        butLoad = new javax.swing.JButton();
33
        butSave = new javax.swing.JButton();
34
        butTest = new javax.swing.JButton();
35
        filler3 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 0));
36
        filler4 = new javax.swing.Box.Filler(new java.awt.Dimension(4, 4), new java.awt.Dimension(4, 4), new java.awt.Dimension(4, 4));
37
        editorContainer = new javax.swing.JPanel();
38

    
39
        java.awt.GridBagLayout layout = new java.awt.GridBagLayout();
40
        layout.columnWidths = new int[] {0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0};
41
        layout.rowHeights = new int[] {0, 5, 0, 5, 0, 5, 0};
42
        setLayout(layout);
43
        gridBagConstraints = new java.awt.GridBagConstraints();
44
        gridBagConstraints.gridx = 0;
45
        gridBagConstraints.gridy = 0;
46
        add(filler2, gridBagConstraints);
47

    
48
        butLoad.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/gvsig/expressionfield/project/documents/table/gui/document-open.png"))); // NOI18N
49
        butLoad.setToolTipText("Load script from file"); // NOI18N
50
        butLoad.setBorder(null);
51
        gridBagConstraints = new java.awt.GridBagConstraints();
52
        gridBagConstraints.gridx = 2;
53
        gridBagConstraints.gridy = 2;
54
        add(butLoad, gridBagConstraints);
55

    
56
        butSave.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/gvsig/expressionfield/project/documents/table/gui/document-save.png"))); // NOI18N
57
        butSave.setToolTipText("Save script to file");
58
        butSave.setBorder(null);
59
        gridBagConstraints = new java.awt.GridBagConstraints();
60
        gridBagConstraints.gridx = 4;
61
        gridBagConstraints.gridy = 2;
62
        add(butSave, gridBagConstraints);
63

    
64
        butTest.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/gvsig/expressionfield/project/documents/table/gui/tools-scripting-launcher.png"))); // NOI18N
65
        butTest.setToolTipText("Run script for testing");
66
        butTest.setBorder(null);
67
        gridBagConstraints = new java.awt.GridBagConstraints();
68
        gridBagConstraints.gridx = 6;
69
        gridBagConstraints.gridy = 2;
70
        add(butTest, gridBagConstraints);
71
        gridBagConstraints = new java.awt.GridBagConstraints();
72
        gridBagConstraints.gridx = 8;
73
        gridBagConstraints.gridy = 2;
74
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
75
        gridBagConstraints.weightx = 0.1;
76
        add(filler3, gridBagConstraints);
77
        gridBagConstraints = new java.awt.GridBagConstraints();
78
        gridBagConstraints.gridx = 10;
79
        gridBagConstraints.gridy = 6;
80
        add(filler4, gridBagConstraints);
81

    
82
        editorContainer.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
83
        gridBagConstraints = new java.awt.GridBagConstraints();
84
        gridBagConstraints.gridx = 2;
85
        gridBagConstraints.gridy = 4;
86
        gridBagConstraints.gridwidth = 7;
87
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
88
        gridBagConstraints.weightx = 0.1;
89
        gridBagConstraints.weighty = 0.1;
90
        add(editorContainer, gridBagConstraints);
91
    }// </editor-fold>//GEN-END:initComponents
92

    
93

    
94
    // Variables declaration - do not modify//GEN-BEGIN:variables
95
    protected javax.swing.JButton butLoad;
96
    protected javax.swing.JButton butSave;
97
    protected javax.swing.JButton butTest;
98
    protected javax.swing.JPanel editorContainer;
99
    protected javax.swing.Box.Filler filler2;
100
    protected javax.swing.Box.Filler filler3;
101
    protected javax.swing.Box.Filler filler4;
102
    // End of variables declaration//GEN-END:variables
103
}