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 19... Line 19...
19
        this.tableInfoPanel = tableInfoPanel;
19
        this.tableInfoPanel = tableInfoPanel;
20
    }
20
    }
21
 
21
 
22
    @Override
22
    @Override
23
    public void addNewItem() {
23
    public void addNewItem() {
24
        ((CreateListListModel) dataModel).addNewList();
24
        ((CreateListListModel) this.dataModel).addNewList();
25
    }
25
    }
26
 
26
 
27
    @Override
27
    @Override
28
    public void renameItem(Object item) {
28
    public void renameItem(Object item) {
29
        final ListDescriptor e = (ListDescriptor) item;
29
        final ListDescriptor e = (ListDescriptor) item;
Line 34... Line 34...
34
        }
34
        }
35
    }
35
    }
36
 
36
 
37
    @Override
37
    @Override
38
    public void removeItem(Object item) {
38
    public void removeItem(Object item) {
39
        ((CreateListListModel) dataModel).removeElement(item);
39
        ((CreateListListModel) this.dataModel).removeElement(item);
40
        extension.removeCreateList((ListDescriptor) item);
40
        this.extension.removeCreateList((ListDescriptor) item);
41
    }
41
    }
42
 
42
 
43
    @Override
43
    @Override
44
    public void itemSelected(Object item) {
44
    public void itemSelected(Object item) {
45
        if (item != null) {
45
        if (item != null) {
46
            ListDescriptor n = (ListDescriptor) item;
46
            ListDescriptor n = (ListDescriptor) item;
47
            final ListCreatePanel p = new ListCreatePanel(n, extension);
47
            final ListCreatePanel p = new ListCreatePanel(n, this.extension);
48
            tableInfoPanel.setRightPanel(p);
48
            this.tableInfoPanel.setRightPanel(p);
49
        } else {
49
        } else {
50
            tableInfoPanel.setRightPanel(new JPanel());
50
            this.tableInfoPanel.setRightPanel(new JPanel());
51
        }
51
        }
52
    }
52
    }
53
}
53
}