com.lightdev.lib.audio
Class PlaylistItem


java.lang.Object

  extended by com.lightdev.lib.audio.PlaylistItem

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MP3PlaylistItem

public abstract class PlaylistItem
extends Object
implements Serializable

Class PlaylistItem is the base class for other classes that model an audio file

Version:
1, May 15, 2004
Author:
Ulrich Hilger, Light Development, http://www.lightdev.com, info@lightdev.com, published under the terms and conditions of the GNU General Public License, for details see file 'license.txt' in the distribution package of this software as well as any licensing notes inside this documentation
See Also:
Serialized Form

Field Summary
protected  File audioFile
          the audio file this PlaylistItem represents
protected  boolean playing
          indicates if this item is currently playing
 
Constructor Summary
PlaylistItem(File audioFile)
          construct a PlaylistItem to represent a given audio file
PlaylistItem(String pathname)
          construct a PlaylistItem from a given path and name of an audio file
 
Method Summary
 File getAudioFile()
          get the audio file this PlaylistItem represents
 boolean getPlayingIndicator()
          get the playing indicator of this PlaylistItem
 void setPlayingIndicator(boolean isPlaying)
          set the play indicator of this PlaylistItem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

audioFile


protected File audioFile
the audio file this PlaylistItem represents


playing


protected boolean playing
indicates if this item is currently playing

Constructor Detail

PlaylistItem


public PlaylistItem(File audioFile)
construct a PlaylistItem to represent a given audio file

Parameters:
audioFile - File the audio file this PlaylistItem represents

PlaylistItem


public PlaylistItem(String pathname)
construct a PlaylistItem from a given path and name of an audio file

Parameters:
pathname - String the path and name of the audio file of the PlaylistItem
Method Detail

setPlayingIndicator


public void setPlayingIndicator(boolean isPlaying)
set the play indicator of this PlaylistItem

Parameters:
isPlaying - boolean true, if this item is currently played, false if not

getPlayingIndicator


public boolean getPlayingIndicator()
get the playing indicator of this PlaylistItem

Returns:
boolean true, if this item is being played, false if not

getAudioFile


public File getAudioFile()
get the audio file this PlaylistItem represents

Returns:
File the audio file

Copyright (c) 2004, 2005 Ulrich Hilger