OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 86 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 86 Rev 181
Line 86... Line 86...
86
    }
86
    }
87
 
87
 
88
    private void addField(final TableDescritor desc, final JPanel p, GridBagConstraints c, final FieldDescriptor field) {
88
    private void addField(final TableDescritor desc, final JPanel p, GridBagConstraints c, final FieldDescriptor field) {
89
        c.weightx = 1;
89
        c.weightx = 1;
90
        c.gridx = 0;
90
        c.gridx = 0;
91
        final FieldDescriptorEditor editor = new FieldDescriptorEditor(extension, field);
91
        final FieldDescriptorEditor editor = new FieldDescriptorEditor(this.extension, field);
92
        p.add(editor, c);
92
        p.add(editor, c);
93
 
93
 
94
        c.gridx++;
94
        c.gridx++;
95
        c.weightx = 0;
95
        c.weightx = 0;
96
        final JButton close = new JButton(new ImageIcon(DefaultListModel.class.getResource("close_popup.png")));
96
        final JButton close = new JButton(new ImageIcon(DefaultListModel.class.getResource("close_popup.png")));
Line 102... Line 102...
102
            public void actionPerformed(ActionEvent e) {
102
            public void actionPerformed(ActionEvent e) {
103
                desc.remove(field);
103
                desc.remove(field);
104
                p.remove(editor);
104
                p.remove(editor);
105
                p.remove(close);
105
                p.remove(close);
106
                p.revalidate();
106
                p.revalidate();
107
                extension.setChanged();
107
                TableModifyPanel.this.extension.setChanged();
108
            }
108
            }
109
        });
109
        });
110
        c.gridy++;
110
        c.gridy++;
111
    }
111
    }
112
 
112