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 5... Line 5...
5
import javax.swing.JPanel;
5
import javax.swing.JPanel;
6
import javax.swing.JTabbedPane;
6
import javax.swing.JTabbedPane;
7
 
7
 
8
import org.openconcerto.modules.extensionbuilder.Extension;
8
import org.openconcerto.modules.extensionbuilder.Extension;
9
import org.openconcerto.modules.extensionbuilder.menu.mainmenu.MainMenuPanel;
9
import org.openconcerto.modules.extensionbuilder.menu.mainmenu.MainMenuPanel;
10
import org.openconcerto.modules.extensionbuilder.meu.actions.ActionMainPanel;
-
 
11
 
10
 
12
public class MenuMainPanel extends JPanel {
11
public class MenuMainPanel extends JPanel {
13
    final MainMenuPanel mainMenuPanel;
12
    final MainMenuPanel mainMenuPanel;
14
 
13
 
15
    public MenuMainPanel(Extension extension) {
14
    public MenuMainPanel(Extension extension) {
16
        this.setLayout(new GridLayout(1, 1));
15
        this.setLayout(new GridLayout(1, 1));
17
        JTabbedPane tab = new JTabbedPane();
16
        JTabbedPane tab = new JTabbedPane();
18
        mainMenuPanel = new MainMenuPanel(extension);
17
        this.mainMenuPanel = new MainMenuPanel(extension);
19
        tab.addTab("Menu principal", mainMenuPanel);
18
        tab.addTab("Menu principal", this.mainMenuPanel);
-
 
19
        // TODO : terminer la gestion des actions
20
        tab.addTab("Actions contextuelles", new ActionMainPanel(extension));
20
        // tab.addTab("Actions contextuelles", new ActionMainPanel(extension));
21
        this.add(tab);
21
        this.add(tab);
22
    }
22
    }
23
 
23
 
24
}
24
}