net.sourceforge.atunes.kernel.controllers.contextInformation
Class ContextInformationPanelController

java.lang.Object
  extended by net.sourceforge.atunes.kernel.controllers.model.Controller
      extended by net.sourceforge.atunes.kernel.controllers.model.PanelController<ContextInformationPanel>
          extended by net.sourceforge.atunes.kernel.controllers.contextInformation.ContextInformationPanelController

public class ContextInformationPanelController
extends PanelController<ContextInformationPanel>

The Class ContextInformationPanelController.


Constructor Summary
ContextInformationPanelController(ContextInformationPanel 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  ContextInformationPanel getPanelControlled()
          Gets the panel controlled.
 void notifyArtistImage(java.awt.Image img)
          Notify artist image.
 void notifyFinishGetAlbumInfo(java.lang.String artist, AlbumInfo album, java.awt.Image img)
          Notify finish get album info.
 void notifyFinishGetAlbumsInfo(AlbumInfo album, java.awt.Image cover)
          Notify finish get albums info.
 void notifyFinishGetSimilarArtist(ArtistInfo 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 setAudioObjectInfo(AudioObject audioObject)
          Sets the audio object info
 void setLyrics(AudioObject audioObject, Lyrics lyrics)
          Sets the lyrics.
 void setSelectedIndex(int index)
           
 void setWikiInformation(java.lang.String wikiText, java.lang.String wikiURL)
          Sets the wiki information.
 void showAllTabs(boolean b)
           
 void showAllTabs(java.lang.String firstTabTitle, javax.swing.ImageIcon firstTabIcon, boolean enabled)
           
 void showAllTabsDisabled()
          Delegate method to show all tabs disabled
 void showFirstTab(java.lang.String string, javax.swing.ImageIcon icon)
           
 
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

ContextInformationPanelController

public ContextInformationPanelController(ContextInformationPanel 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.


getPanelControlled

protected ContextInformationPanel getPanelControlled()
Gets the panel controlled.

Overrides:
getPanelControlled in class PanelController<ContextInformationPanel>
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,
                                     AlbumInfo album,
                                     java.awt.Image img)
Notify finish get album info.

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

notifyFinishGetAlbumsInfo

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

Parameters:
album - the album
cover - the cover

notifyFinishGetSimilarArtist

public void notifyFinishGetSimilarArtist(ArtistInfo 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

setAudioObjectInfo

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

Parameters:
audioObject - the audio object

setLyrics

public void setLyrics(AudioObject audioObject,
                      Lyrics 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

showAllTabsDisabled

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


showFirstTab

public void showFirstTab(java.lang.String string,
                         javax.swing.ImageIcon icon)

showAllTabs

public void showAllTabs(java.lang.String firstTabTitle,
                        javax.swing.ImageIcon firstTabIcon,
                        boolean enabled)

showAllTabs

public void showAllTabs(boolean b)

setSelectedIndex

public void setSelectedIndex(int index)


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