|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jsampler.DefaultOrchestraListModel
public class DefaultOrchestraListModel
This class provides default implementation of the OrchestraListModel interface.
| Constructor Summary | |
|---|---|
DefaultOrchestraListModel()
Creates a new instance of DefaultOrchestraListModel. |
|
| Method Summary | |
|---|---|
void |
addOrchestra(OrchestraModel orchestra)
Adds the specified orchestra to the list. |
void |
addOrchestraListListener(ListListener<OrchestraModel> l)
Registers the specified listener for receiving event messages. |
OrchestraModel |
getOrchestra(int idx)
Gets the orchestra at the specified position. |
int |
getOrchestraCount()
Gets the current number of orchestras in the list. |
int |
getOrchestraIndex(OrchestraModel orchestra)
Gets the position of the specified orchestra in this orchestra list. |
void |
insertOrchestra(OrchestraModel orchestra,
int idx)
Inserts the specified orchestra at the specified position. |
void |
moveOrchestraAtBottom(OrchestraModel orchestra)
Moves the specified orchestra at the bottom of the orchestra list. |
void |
moveOrchestraDown(OrchestraModel orchestra)
Moves the specified orchestra one position down in the orchestra list. |
void |
moveOrchestraOnTop(OrchestraModel orchestra)
Moves the specified orchestra one the top of the orchestra list. |
void |
moveOrchestraUp(OrchestraModel orchestra)
Moves the specified orchestra one position up in the orchestra list. |
void |
readObject(org.w3c.dom.Node node)
Reads and loads the content provided by node to this orchestra list. |
void |
removeAllOrchestras()
Removes all orchestras from the list. |
void |
removeOrchestra(int idx)
Removes the specified orchestra from the list. |
boolean |
removeOrchestra(OrchestraModel orchestraModel)
Removes the specified orchestra from the list. |
void |
removeOrchestraListListener(ListListener<OrchestraModel> l)
Removes the specified listener. |
void |
writeObject(org.w3c.dom.Document doc,
org.w3c.dom.Node node)
Writes the content of this orchestra list to the specified node of document doc. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultOrchestraListModel()
DefaultOrchestraListModel.
| Method Detail |
|---|
public void addOrchestraListListener(ListListener<OrchestraModel> l)
addOrchestraListListener in interface OrchestraListModell - The OrchestraListListener to register.public void removeOrchestraListListener(ListListener<OrchestraModel> l)
removeOrchestraListListener in interface OrchestraListModell - The OrchestraListListener to remove.public int getOrchestraCount()
getOrchestraCount in interface OrchestraListModelpublic OrchestraModel getOrchestra(int idx)
getOrchestra in interface OrchestraListModelidx - The index of the orchestra to be returned.
public void addOrchestra(OrchestraModel orchestra)
addOrchestra in interface OrchestraListModelorchestra - The model of the orchestra to be added.
java.lang.IllegalArgumentException - If orchestra is null.
public void insertOrchestra(OrchestraModel orchestra,
int idx)
insertOrchestra in interface OrchestraListModelorchestra - The orchestra to be inserted.idx - The position of the orchestra.
java.lang.IllegalArgumentException - If orchestra is null.
java.lang.ArrayIndexOutOfBoundsException - If the specified index is invalid.public void removeOrchestra(int idx)
removeOrchestra in interface OrchestraListModelidx - The index of the orchestra to remove.public boolean removeOrchestra(OrchestraModel orchestraModel)
removeOrchestra in interface OrchestraListModelorchestraModel - The model of the orchestra to remove.
true if the specified orchestra was in the list,
false otherwise.public void removeAllOrchestras()
removeAllOrchestras in interface OrchestraListModelpublic int getOrchestraIndex(OrchestraModel orchestra)
getOrchestraIndex in interface OrchestraListModelorchestra - The orchestra whose index should be returned.
orchestra is null or
the orchestra list does not contain the specified orchestra.public void moveOrchestraOnTop(OrchestraModel orchestra)
orchestra is null,
the orchestra list does not contain the specified orchestra,
or if the orchestra is already on the top.
moveOrchestraOnTop in interface OrchestraListModelorchestra - The orchestra to move on top.public void moveOrchestraUp(OrchestraModel orchestra)
orchestra is null,
the orchestra list does not contain the specified orchestra,
or if the orchestra is already on the top.
moveOrchestraUp in interface OrchestraListModelorchestra - The orchestra to move up.public void moveOrchestraDown(OrchestraModel orchestra)
orchestra is null,
the orchestra list does not contain the specified orchestra,
or if the orchestra is already at the bottom.
moveOrchestraDown in interface OrchestraListModelorchestra - The orchestra to move down.public void moveOrchestraAtBottom(OrchestraModel orchestra)
orchestra is null,
the orchestra list does not contain the specified orchestra,
or if the orchestra is already at the bottom.
moveOrchestraAtBottom in interface OrchestraListModelorchestra - The orchestra to move at bottom.public void readObject(org.w3c.dom.Node node)
node to this orchestra list.
readObject in interface OrchestraListModelnode - The node providing the content of this orchestra list.
java.lang.IllegalArgumentException - If an error occurs while
reading the content of this orchestra list.
public void writeObject(org.w3c.dom.Document doc,
org.w3c.dom.Node node)
doc.
writeObject in interface OrchestraListModeldoc - The document containing node.node - Specifies the node where the content of this orchestra
list should be written.
|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||