1 |
/* |
/* |
2 |
* JSampler - a java front-end for LinuxSampler |
* JSampler - a java front-end for LinuxSampler |
3 |
* |
* |
4 |
* Copyright (C) 2005, 2006 Grigor Kirilov Iliev |
* Copyright (C) 2005-2006 Grigor Iliev <grigor@grigoriliev.com> |
5 |
* |
* |
6 |
* This file is part of JSampler. |
* This file is part of JSampler. |
7 |
* |
* |
22 |
|
|
23 |
package org.jsampler; |
package org.jsampler; |
24 |
|
|
25 |
import org.jsampler.event.OrchestraListListener; |
import org.jsampler.event.ListListener; |
26 |
|
|
27 |
import org.w3c.dom.Document; |
import org.w3c.dom.Document; |
28 |
import org.w3c.dom.Node; |
import org.w3c.dom.Node; |
37 |
* Registers the specified listener for receiving event messages. |
* Registers the specified listener for receiving event messages. |
38 |
* @param l The <code>OrchestraListListener</code> to register. |
* @param l The <code>OrchestraListListener</code> to register. |
39 |
*/ |
*/ |
40 |
public void addOrchestraListListener(OrchestraListListener l); |
public void addOrchestraListListener(ListListener<OrchestraModel> l); |
41 |
|
|
42 |
/** |
/** |
43 |
* Removes the specified listener. |
* Removes the specified listener. |
44 |
* @param l The <code>OrchestraListListener</code> to remove. |
* @param l The <code>OrchestraListListener</code> to remove. |
45 |
*/ |
*/ |
46 |
public void removeOrchestraListListener(OrchestraListListener l); |
public void removeOrchestraListListener(ListListener<OrchestraModel> l); |
47 |
|
|
48 |
/** |
/** |
49 |
* Gets the current number of orchestras in the list. |
* Gets the current number of orchestras in the list. |
88 |
*/ |
*/ |
89 |
public boolean removeOrchestra(OrchestraModel orchestraModel); |
public boolean removeOrchestra(OrchestraModel orchestraModel); |
90 |
|
|
91 |
|
/** Removes all orchestras from the list. */ |
92 |
|
public void removeAllOrchestras(); |
93 |
|
|
94 |
/** |
/** |
95 |
* Gets the position of the specified orchestra in this orchestra list. |
* Gets the position of the specified orchestra in this orchestra list. |
96 |
* @param orchestra The orchestra whose index should be returned. |
* @param orchestra The orchestra whose index should be returned. |