OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 74 Rev 181
Line 20... Line 20...
20
        this.tableInfoPanel = tableInfoPanel;
20
        this.tableInfoPanel = tableInfoPanel;
21
    }
21
    }
22
 
22
 
23
    @Override
23
    @Override
24
    public void addNewItem() {
24
    public void addNewItem() {
25
        ((CreateComponentListModel) dataModel).addComponentList();
25
        ((CreateComponentListModel) this.dataModel).addComponentList();
26
    }
26
    }
27
 
27
 
28
    @Override
28
    @Override
29
    public void renameItem(Object item) {
29
    public void renameItem(Object item) {
30
        final ComponentDescritor e = (ComponentDescritor) item;
30
        final ComponentDescritor e = (ComponentDescritor) item;
Line 37... Line 37...
37
        }
37
        }
38
    }
38
    }
39
 
39
 
40
    @Override
40
    @Override
41
    public void removeItem(Object item) {
41
    public void removeItem(Object item) {
42
        ((CreateComponentListModel) dataModel).removeElement(item);
42
        ((CreateComponentListModel) this.dataModel).removeElement(item);
43
        extension.removeCreateComponent((ComponentDescritor) item);
43
        this.extension.removeCreateComponent((ComponentDescritor) item);
44
    }
44
    }
45
 
45
 
46
    @Override
46
    @Override
47
    public void itemSelected(Object item) {
47
    public void itemSelected(Object item) {
48
        if (item != null) {
48
        if (item != null) {
49
            ComponentDescritor n = (ComponentDescritor) item;
49
            ComponentDescritor n = (ComponentDescritor) item;
50
            final ComponentCreatePanel p = new ComponentCreatePanel(n, extension);
50
            final ComponentCreatePanel p = new ComponentCreatePanel(n, this.extension);
51
            tableInfoPanel.setRightPanel(p);
51
            this.tableInfoPanel.setRightPanel(p);
52
        } else {
52
        } else {
53
            tableInfoPanel.setRightPanel(new JPanel());
53
            this.tableInfoPanel.setRightPanel(new JPanel());
54
        }
54
        }
55
    }
55
    }
56
}
56
}
57
57