Package com.tagtraum.beatunes
Class PlayListExporterComponent
- java.lang.Object
-
- com.tagtraum.beatunes.PlayListExporterComponent
-
- All Implemented Interfaces:
ApplicationComponent<BeaTunes>
public class PlayListExporterComponent extends Object implements ApplicationComponent<BeaTunes>
PlayList Exporter Component.- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description PlayListExporterComponent(BeaTunes application)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPropertyChangeListener(PropertyChangeListener propertyChangeListener)
void
addPropertyChangeListener(String property, PropertyChangeListener propertyChangeListener)
File
exportPlayList(PlayList playList, ProgressListener progressListener)
File
getActualFile(PlayList[] path)
BeaTunes
getApplication()
Returns the main application component.File
getBaseDirectory()
String
getId()
Unique id for each instance of this object.PlayListExporter
getPlayListExporter()
void
init()
Initializes this component and its sub-components.boolean
isEnabled()
void
setApplication(BeaTunes beaTunes)
Sets the main application component.void
setEnabled(boolean enabled)
void
setPlayListExporter(PlayListExporter playListExporter)
void
shutdown()
Shuts down this component and its sub-components.
-
-
-
Constructor Detail
-
PlayListExporterComponent
public PlayListExporterComponent(BeaTunes application)
-
-
Method Detail
-
getApplication
public BeaTunes getApplication()
Description copied from interface:ApplicationComponent
Returns the main application component.- Specified by:
getApplication
in interfaceApplicationComponent<BeaTunes>
- Returns:
- application object
-
setApplication
public void setApplication(BeaTunes beaTunes)
Description copied from interface:ApplicationComponent
Sets the main application component.- Specified by:
setApplication
in interfaceApplicationComponent<BeaTunes>
- Parameters:
beaTunes
- main application component
-
getId
public String getId()
Description copied from interface:ApplicationComponent
Unique id for each instance of this object.- Specified by:
getId
in interfaceApplicationComponent<BeaTunes>
- Returns:
- id
-
getPlayListExporter
public PlayListExporter getPlayListExporter()
-
setPlayListExporter
public void setPlayListExporter(PlayListExporter playListExporter)
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
init
public void init()
Description copied from interface:ApplicationComponent
Initializes this component and its sub-components.- Specified by:
init
in interfaceApplicationComponent<BeaTunes>
-
getBaseDirectory
public File getBaseDirectory()
-
exportPlayList
public File exportPlayList(PlayList playList, ProgressListener progressListener)
-
shutdown
public void shutdown() throws ShutdownVetoException
Description copied from interface:ApplicationComponent
Shuts down this component and its sub-components.- Specified by:
shutdown
in interfaceApplicationComponent<BeaTunes>
- Throws:
ShutdownVetoException
- if this component wants to veto the shutdown. This exception is not guaranteed to be honored, i.e. a calling component may simply ignore it
-
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener propertyChangeListener)
-
addPropertyChangeListener
public void addPropertyChangeListener(String property, PropertyChangeListener propertyChangeListener)
-
-