com.bramosystems.oss.player.playlist.client.spf
Class Track

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.bramosystems.oss.player.playlist.client.spf.Track

public final class Track
extends com.google.gwt.core.client.JavaScriptObject

Represents an XSPF/JSPF track entry

Since:
1.3
Author:
Sikirulai Braheem

Constructor Summary
protected Track()
          Constructor
 
Method Summary
 String getAlbum()
          Returns the name of the album to which this track belongs
 String getAnnotation()
          Returns the comment attached to this track
 String getCreator()
          Returns the creator (author) of this track
 double getDuration()
          Returns the time (in milliseconds) to render this track
 com.google.gwt.core.client.JsArrayString getIdentifier()
          Returns canonical IDs for this track.
 String getImage()
          Returns the URI of the image to display for the duration of the track
 String getInfo()
          Returns the URI of the location where more information about this track can be retrieved.
 com.google.gwt.core.client.JsArrayString getLocation()
          Returns the URI(s) of the media to be rendered.
 String getTitle()
          Returns the title of this track
 double getTrackNumber()
          Returns the ordinal position of this track on its album.
 void setAlbum(String album)
          Sets the name of the album to which this track belongs
 void setAnnotation(String annotation)
          Sets a comment on this track
 void setCreator(String creator)
          Sets the creator (author) of this track
 void setDuration(double duration)
          Sets the time (in milliseconds) to render this track
 void setIdentifier(com.google.gwt.core.client.JsArrayString identifier)
          Sets the canonical IDs for this track.
 void setImage(String image)
          Sets the URI of the image to display for the duration of the track
 void setInfo(String info)
          Sets the URI of the location where more information about this track can be retrieved.
 void setLocation(com.google.gwt.core.client.JsArrayString location)
          Sets the URI(s) of the media to be rendered.
 void setTitle(String title)
          Sets the title of this track
 void setTrackNumber(double trackNum)
          Sets the ordinal position of this track on its album
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Track

protected Track()
Constructor

Method Detail

getAlbum

public String getAlbum()
Returns the name of the album to which this track belongs

Returns:
the name of the album

setAlbum

public void setAlbum(String album)
Sets the name of the album to which this track belongs

Parameters:
album - the name of the album

getAnnotation

public String getAnnotation()
Returns the comment attached to this track

Returns:
a comment attached to this track

setAnnotation

public void setAnnotation(String annotation)
Sets a comment on this track

Parameters:
annotation - the comment to set on this track

getCreator

public String getCreator()
Returns the creator (author) of this track

Returns:
the creator of this track

setCreator

public void setCreator(String creator)
Sets the creator (author) of this track

Parameters:
creator - the creator of this track

getDuration

public double getDuration()
Returns the time (in milliseconds) to render this track

Returns:
the rendering time

setDuration

public void setDuration(double duration)
Sets the time (in milliseconds) to render this track

Parameters:
duration - the rendering time

getIdentifier

public com.google.gwt.core.client.JsArrayString getIdentifier()
Returns canonical IDs for this track. The identifier may be a hash or other location-independent name.

Returns:
canonical IDs for this track

setIdentifier

public void setIdentifier(com.google.gwt.core.client.JsArrayString identifier)
Sets the canonical IDs for this track.

Parameters:
identifier - canonical IDs for this track

getImage

public String getImage()
Returns the URI of the image to display for the duration of the track

Returns:
the URI of the image to display

setImage

public void setImage(String image)
Sets the URI of the image to display for the duration of the track

Parameters:
image - the URI of the image to display

getInfo

public String getInfo()
Returns the URI of the location where more information about this track can be retrieved.

Returns:
the URI of the location with more information

setInfo

public void setInfo(String info)
Sets the URI of the location where more information about this track can be retrieved.

Parameters:
info - the URI of the location with more information

getLocation

public com.google.gwt.core.client.JsArrayString getLocation()
Returns the URI(s) of the media to be rendered.

The track may be located with multiple URIs probably in different formats

Returns:
the URI(s) of the media

setLocation

public void setLocation(com.google.gwt.core.client.JsArrayString location)
Sets the URI(s) of the media to be rendered.

Parameters:
location - the URI(s) of the media

getTitle

public String getTitle()
Returns the title of this track

Returns:
the title of this track

setTitle

public void setTitle(String title)
Sets the title of this track

Parameters:
title - the title of this track

getTrackNumber

public double getTrackNumber()
Returns the ordinal position of this track on its album. The number is usually greater than zero.

Returns:
the ordinal position of this track on its album.

setTrackNumber

public void setTrackNumber(double trackNum)
Sets the ordinal position of this track on its album

Parameters:
trackNum - the ordinal position of this track on its album


Copyright © 2009-2011. All Rights Reserved.