org.lyra.Interface
Class PlaylistSaveDialog.PlaylistSave

java.lang.Object
  extended by org.lyra.Interface.PlaylistSaveDialog.PlaylistSave
Enclosing class:
PlaylistSaveDialog

public class PlaylistSaveDialog.PlaylistSave
extends java.lang.Object

Simple all encompassing class which is used to pass on all of the necessary class details in order to process a save request.

Author:
Martin Foster

Field Summary
private  boolean myLocal
           
private  java.lang.String myName
           
private  boolean myService
           
 
Constructor Summary
PlaylistSaveDialog.PlaylistSave()
          Stub constructor for the class.
PlaylistSaveDialog.PlaylistSave(boolean local, boolean service, java.lang.String name)
          Complete initialisation constructor, which is passed all necessary elements for which to use in saving a playlist.
PlaylistSaveDialog.PlaylistSave(boolean local, java.lang.String name)
          Complete initialisation constructor, which is passed all necessary elements for which to use in saving a playlist.
 
Method Summary
 boolean getLocal()
          Used to pass on the value of local.
 java.lang.String getName()
          Used to extract the value of name.
 boolean getService()
          Used to pass on the value of Save.
 boolean isLocal()
          Quick check to determine if this is to be saved locally.
 boolean isRemote()
          Quick check to determine if this is to be saved remotely
 boolean isService()
          Quick check to determine if this is to be saved to the Last.fm service.
 void setLocal(boolean local)
          Used to extract the value of local.
 void setName(java.lang.String name)
          Used to pass on the value of name.
 void setService(boolean Save)
          Used to extract the value of Save.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myLocal

private boolean myLocal

myService

private boolean myService

myName

private java.lang.String myName
Constructor Detail

PlaylistSaveDialog.PlaylistSave

public PlaylistSaveDialog.PlaylistSave()
Stub constructor for the class. Will not initialise any of the values in the class.


PlaylistSaveDialog.PlaylistSave

public PlaylistSaveDialog.PlaylistSave(boolean local,
                                       boolean service,
                                       java.lang.String name)
Complete initialisation constructor, which is passed all necessary elements for which to use in saving a playlist.

Parameters:
local - Boolean indicating local.
service - Boolean indicating saving to Last.fm service.
name - String indicating the name of the list.

PlaylistSaveDialog.PlaylistSave

public PlaylistSaveDialog.PlaylistSave(boolean local,
                                       java.lang.String name)
Complete initialisation constructor, which is passed all necessary elements for which to use in saving a playlist.

Parameters:
local - Boolean indicating local.
name - String indicating the name of the list.
Method Detail

setLocal

public void setLocal(boolean local)
Used to extract the value of local. When local is true the saving of the list will be done locally, otherwise it is assumed to be remote.

Parameters:
local - Boolean indicating local.

setService

public void setService(boolean Save)
Used to extract the value of Save. When Save is true a copy of the list will be sent off to the Last.fm service.

Parameters:
Save - Boolean indicating saving to Last.fm.

getLocal

public boolean getLocal()
Used to pass on the value of local. When local is true the saving of the list will be done locally, otherwise it is assumed to be remote.

Returns:
Boolean indicating local.

getService

public boolean getService()
Used to pass on the value of Save. When Save is true a copy of the list will be sent off to the Last.fm service.

Returns:
Boolean indicating saving to Last.fm.

setName

public void setName(java.lang.String name)
Used to pass on the value of name. The name is used to later identify the list for selection and play.

Parameters:
name - String indicating the name of the list.

getName

public java.lang.String getName()
Used to extract the value of name. The name is used to later identify the list for selection and play.

Returns:
String indicating the name of the list.

isLocal

public boolean isLocal()
Quick check to determine if this is to be saved locally.

Returns:
Boolean indicating local.

isService

public boolean isService()
Quick check to determine if this is to be saved to the Last.fm service.

Returns:
Boolean indicating saving to Last.fm.

isRemote

public boolean isRemote()
Quick check to determine if this is to be saved remotely

Returns:
Boolean indicating local.