javazoom.jlGui.playlist
Class PlaylistItem

java.lang.Object
  |
  +--javazoom.jlGui.playlist.PlaylistItem

public class PlaylistItem
extends java.lang.Object

PlaylistItem. ----------------------------------------------------------------------- This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ----------------------------------------------------------------------


Field Summary
protected  java.lang.String _displayName
           
protected  boolean _isFile
           
protected  boolean _isSelected
           
protected  java.lang.String _location
           
protected  java.lang.String _name
           
protected  long _seconds
           
protected  TagInfo _taginfo
           
 
Constructor Summary
protected PlaylistItem()
           
  PlaylistItem(java.lang.String name, java.lang.String location, long seconds, boolean isFile)
           
 
Method Summary
 java.lang.String getFormattedLength()
          Returns item lenght such as hh:mm:ss
 java.lang.String getFormattedName()
          Returns item name such as (hh:mm:ss) Title - Artist if available.
 long getLength()
          Returns playtime in seconds.
 java.lang.String getLocation()
           
 java.lang.String getM3UExtInf()
          Return item name such as hh:mm:ss,Title,Artist
 java.lang.String getName()
           
 TagInfo getTagInfo()
          Return TagInfo.
 boolean isFile()
          Returns true if item to play is coming for a file.
 boolean isSelected()
           
 void setLocation(java.lang.String l)
          Reads file comments/tags.
 void setSelected(boolean mode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_name

protected java.lang.String _name

_displayName

protected java.lang.String _displayName

_location

protected java.lang.String _location

_isFile

protected boolean _isFile

_seconds

protected long _seconds

_isSelected

protected boolean _isSelected

_taginfo

protected TagInfo _taginfo
Constructor Detail

PlaylistItem

protected PlaylistItem()

PlaylistItem

public PlaylistItem(java.lang.String name,
                    java.lang.String location,
                    long seconds,
                    boolean isFile)
Method Detail

getFormattedName

public java.lang.String getFormattedName()
Returns item name such as (hh:mm:ss) Title - Artist if available.

Returns:

getName

public java.lang.String getName()

getLocation

public java.lang.String getLocation()

isFile

public boolean isFile()
Returns true if item to play is coming for a file.

Returns:

getLength

public long getLength()
Returns playtime in seconds. If tag info is available then its playtime will be returned.

Returns:
playtime

setSelected

public void setSelected(boolean mode)

isSelected

public boolean isSelected()

setLocation

public void setLocation(java.lang.String l)
Reads file comments/tags.

Parameters:
l -

getFormattedLength

public java.lang.String getFormattedLength()
Returns item lenght such as hh:mm:ss

Returns:
formatted String.

getM3UExtInf

public java.lang.String getM3UExtInf()
Return item name such as hh:mm:ss,Title,Artist

Returns:
formatted String.

getTagInfo

public TagInfo getTagInfo()
Return TagInfo.

Returns:


JavaZOOM 1999-2003