1 |
/* |
2 |
* JSampler - a java front-end for LinuxSampler |
3 |
* |
4 |
* Copyright (C) 2005 Grigor Kirilov Iliev |
5 |
* |
6 |
* This file is part of JSampler. |
7 |
* |
8 |
* JSampler is free software; you can redistribute it and/or modify |
9 |
* it under the terms of the GNU General Public License version 2 |
10 |
* as published by the Free Software Foundation. |
11 |
* |
12 |
* JSampler is distributed in the hope that it will be useful, |
13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 |
* GNU General Public License for more details. |
16 |
* |
17 |
* You should have received a copy of the GNU General Public License |
18 |
* along with JSampler; if not, write to the Free Software |
19 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
20 |
* MA 02111-1307 USA |
21 |
*/ |
22 |
|
23 |
package org.jsampler.view.classic; |
24 |
|
25 |
import net.sf.juife.NavigationPage; |
26 |
import net.sf.juife.NavigationPane; |
27 |
|
28 |
|
29 |
/** |
30 |
* |
31 |
* @author Grigor Iliev |
32 |
*/ |
33 |
public class LeftPane extends NavigationPane { |
34 |
private final static LeftPane leftPane = new LeftPane(); |
35 |
|
36 |
private TasksPage tasksPage = new TasksPage(); |
37 |
private MidiDevicesPage midiDevicesPage = new MidiDevicesPage(); |
38 |
private AudioDevicesPage audioDevicesPage = new AudioDevicesPage(); |
39 |
private OrchestrasPage orchestrasPage = new OrchestrasPage(); |
40 |
private ManageOrchestrasPage manageOrchestrasPage = new ManageOrchestrasPage(); |
41 |
|
42 |
/** Creates a new instance of LeftPane */ |
43 |
private |
44 |
LeftPane() { |
45 |
NavigationPage[] pages = { |
46 |
tasksPage, |
47 |
midiDevicesPage, |
48 |
audioDevicesPage, |
49 |
orchestrasPage, |
50 |
manageOrchestrasPage |
51 |
}; |
52 |
|
53 |
setPages(pages); |
54 |
showTasksPage(); |
55 |
} |
56 |
|
57 |
public static LeftPane |
58 |
getLeftPane() { return leftPane; } |
59 |
|
60 |
public OrchestrasPage |
61 |
getOrchestrasPage() { return orchestrasPage; } |
62 |
|
63 |
/** Shows the <code>TasksPage</code> in the left pane. */ |
64 |
public void |
65 |
showTasksPage() { getModel().addPage(tasksPage); } |
66 |
|
67 |
/** Shows the <code>MidiDevicesPage</code> in the left pane. */ |
68 |
public void |
69 |
showMidiDevicesPage() { getModel().addPage(midiDevicesPage); } |
70 |
|
71 |
/** Shows the <code>AudioDevicesPage</code> in the left pane. */ |
72 |
public void |
73 |
showAudioDevicesPage() { getModel().addPage(audioDevicesPage); } |
74 |
|
75 |
/** Shows the <code>OrchestrasPage</code> in the left pane. */ |
76 |
public void |
77 |
showOrchestrasPage() { getModel().addPage(orchestrasPage); } |
78 |
|
79 |
/** Shows the <code>ManageOrchestrasPage</code> in the left pane. */ |
80 |
public void |
81 |
showManageOrchestrasPage() { getModel().addPage(manageOrchestrasPage); } |
82 |
} |