net.sourceforge.atunes.kernel.controllers.audioScrobbler
Class AudioScrobblerController

java.lang.Object
  extended by net.sourceforge.atunes.kernel.controllers.model.Controller
      extended by net.sourceforge.atunes.kernel.controllers.model.PanelController<AudioScrobblerPanel>
          extended by net.sourceforge.atunes.kernel.controllers.audioScrobbler.AudioScrobblerController

public class AudioScrobblerController
extends PanelController<AudioScrobblerPanel>

The Class AudioScrobblerController.


Constructor Summary
AudioScrobblerController(AudioScrobblerPanel panel)
          Instantiates a new audio scrobbler controller.
 
Method Summary
protected  void addBindings()
          Adds the bindings.
protected  void addStateBindings()
          Adds the state bindings.
 void clear(boolean clearArtistAndSimilar)
          Clear.
 void clearAlbumsContainer()
          Clear albums container.
 void clearSimilarArtistsContainer()
          Clear similar artists container.
protected  void copyToClipboard()
          Copies current lyric to clipboard.
protected  AudioScrobblerPanel getPanelControlled()
          Gets the panel controlled.
 void notifyArtistImage(java.awt.Image img)
          Notify artist image.
 void notifyFinishGetAlbumInfo(java.lang.String artist, AudioScrobblerAlbum album, java.awt.Image img)
          Notify finish get album info.
 void notifyFinishGetAlbumsInfo(AudioScrobblerAlbum album, java.awt.Image cover)
          Notify finish get albums info.
 void notifyFinishGetSimilarArtist(AudioScrobblerArtist artist, java.awt.Image img)
          Notify finish get similar artist.
 void notifyPodcast(PodcastFeedEntry entry)
          Notify podcast.
 void notifyRadio(Radio radio)
          Notify radio.
protected  void notifyReload()
          Notify reload.
 void searchForVideo()
          Opens a navigator to search for video.
 void setAudioObjectInfo(AudioObject audioObject)
          Sets the audio object info
 void setLyrics(AudioObject audioObject, java.lang.String lyrics)
          Sets the lyrics.
 void setWikiInformation(java.lang.String wikiText, java.lang.String wikiURL)
          Sets the wiki information.
 void showAllTabsDisabled()
          Delegate method to show all tabs disabled
 void updatePanel(AudioObject ao)
          Updates panel with audio object information.
 
Methods inherited from class net.sourceforge.atunes.kernel.controllers.model.Controller
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioScrobblerController

public AudioScrobblerController(AudioScrobblerPanel panel)
Instantiates a new audio scrobbler controller.

Parameters:
panel - the panel
Method Detail

addBindings

protected void addBindings()
Description copied from class: Controller
Adds the bindings.

Specified by:
addBindings in class Controller

addStateBindings

protected void addStateBindings()
Description copied from class: Controller
Adds the state bindings.

Specified by:
addStateBindings in class Controller

clear

public void clear(boolean clearArtistAndSimilar)
Clear.

Parameters:
clearArtistAndSimilar - the clear artist and similar

clearAlbumsContainer

public void clearAlbumsContainer()
Clear albums container.


clearSimilarArtistsContainer

public void clearSimilarArtistsContainer()
Clear similar artists container.


copyToClipboard

protected void copyToClipboard()
Copies current lyric to clipboard.


getPanelControlled

protected AudioScrobblerPanel getPanelControlled()
Gets the panel controlled.

Overrides:
getPanelControlled in class PanelController<AudioScrobblerPanel>
Returns:
the panel controlled

notifyArtistImage

public void notifyArtistImage(java.awt.Image img)
Notify artist image.

Parameters:
img - the img

notifyFinishGetAlbumInfo

public void notifyFinishGetAlbumInfo(java.lang.String artist,
                                     AudioScrobblerAlbum album,
                                     java.awt.Image img)
Notify finish get album info.

Parameters:
artist - the artist
album - the album
img - the img

notifyFinishGetAlbumsInfo

public void notifyFinishGetAlbumsInfo(AudioScrobblerAlbum album,
                                      java.awt.Image cover)
Notify finish get albums info.

Parameters:
album - the album
cover - the cover

notifyFinishGetSimilarArtist

public void notifyFinishGetSimilarArtist(AudioScrobblerArtist artist,
                                         java.awt.Image img)
Notify finish get similar artist.

Parameters:
artist - the artist
img - the img

notifyPodcast

public void notifyPodcast(PodcastFeedEntry entry)
Notify podcast.

Parameters:
entry - the entry

notifyRadio

public void notifyRadio(Radio radio)
Notify radio.

Parameters:
radio - the radio

notifyReload

protected void notifyReload()
Description copied from class: Controller
Notify reload.

Specified by:
notifyReload in class Controller

searchForVideo

public void searchForVideo()
Opens a navigator to search for video.


setAudioObjectInfo

public void setAudioObjectInfo(AudioObject audioObject)
Sets the audio object info

Parameters:
audioObject - the audio object

setLyrics

public void setLyrics(AudioObject audioObject,
                      java.lang.String lyrics)
Sets the lyrics.

Parameters:
audioObject - the audio object
lyrics - the lyrics

setWikiInformation

public void setWikiInformation(java.lang.String wikiText,
                               java.lang.String wikiURL)
Sets the wiki information.

Parameters:
wikiText - the wiki text
wikiURL - the wiki url

updatePanel

public void updatePanel(AudioObject ao)
Updates panel with audio object information.

Parameters:
ao - the audio object

showAllTabsDisabled

public void showAllTabsDisabled()
Delegate method to show all tabs disabled



Copyright © 2006-2008 The aTunes Team. All Rights Reserved.