|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.dt.iTunesController.ITTrackCollection
public class ITTrackCollection
Represents a collection of track objects.
Note that collection indices are always 1-based.
You can retrieve all the tracks defined for a playlist using
ITPlaylist.getTracks().
You can retrieve the currently selected track or tracks using
iTunes.getSelectedTracks().
| Field Summary | |
|---|---|
protected com.jacob.com.Dispatch |
object
|
| Constructor Summary | |
|---|---|
ITTrackCollection(com.jacob.com.Dispatch d)
|
|
| Method Summary | |
|---|---|
int |
getCount()
Returns the number of tracks in the collection. |
ITTrack |
getItem(int index)
Returns an ITTrack object corresponding to the given index (1-based). |
ITTrack |
getItemByPersistentID(int highID,
int lowID)
Returns an ITTrack object with the specified persistent ID. |
ITTrack |
getItemByPlayOrder(int index)
Returns an ITTrack object corresponding to the given index (1-based). |
ITTrack |
ItemByName(java.lang.String name)
Returns an ITTrack object withthe specified name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected com.jacob.com.Dispatch object
| Constructor Detail |
|---|
public ITTrackCollection(com.jacob.com.Dispatch d)
| Method Detail |
|---|
public int getCount()
public ITTrack getItem(int index)
index - Index of the track to retrieve, must be less than or
equal to ITTrackCollection.getCount().
public ITTrack getItemByPlayOrder(int index)
index - Index of the track to retrieve, must be less than or
equal to ITTrackCollection.getCount().
public ITTrack ItemByName(java.lang.String name)
name - The name of the track to retrieve.
public ITTrack getItemByPersistentID(int highID,
int lowID)
highID - The high 32 bits of the 64-bit persistent ID.lowID - The low 32 bits of the 64-bit persistent ID.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||