|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OrchestraListModel
A data model representing list of orchestras.
| 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. |
| Method Detail |
|---|
void addOrchestraListListener(ListListener<OrchestraModel> l)
l - The OrchestraListListener to register.void removeOrchestraListListener(ListListener<OrchestraModel> l)
l - The OrchestraListListener to remove.int getOrchestraCount()
OrchestraModel getOrchestra(int idx)
idx - The index of the orchestra to be returned.
void addOrchestra(OrchestraModel orchestra)
orchestra - The model of the orchestra to be added.
java.lang.IllegalArgumentException - If orchestra is null.
void insertOrchestra(OrchestraModel orchestra,
int idx)
orchestra - 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.void removeOrchestra(int idx)
idx - The index of the orchestra to remove.boolean removeOrchestra(OrchestraModel orchestraModel)
orchestraModel - The model of the orchestra to remove.
true if the specified orchestra was in the list,
false otherwise.void removeAllOrchestras()
int getOrchestraIndex(OrchestraModel orchestra)
orchestra - The orchestra whose index should be returned.
orchestra is null or
the orchestra list does not contain the specified orchestra.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.
orchestra - The orchestra to move on top.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.
orchestra - The orchestra to move up.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.
orchestra - The orchestra to move down.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.
orchestra - The orchestra to move at bottom.void readObject(org.w3c.dom.Node node)
node to this orchestra list.
node - The node providing the content of this orchestra list.
java.lang.IllegalArgumentException - If an error occurs while
reading the content of this orchestra list.
void writeObject(org.w3c.dom.Document doc,
org.w3c.dom.Node node)
doc.
doc - 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 | |||||||||