net.sourceforge.atunes.kernel.controllers.playList
Class PlayListController

java.lang.Object
  extended by net.sourceforge.atunes.kernel.controllers.model.Controller
      extended by net.sourceforge.atunes.kernel.controllers.model.PanelController<PlayListPanel>
          extended by net.sourceforge.atunes.kernel.controllers.playList.PlayListController
All Implemented Interfaces:
PlayListColumnClickedListener

public class PlayListController
extends PanelController<PlayListPanel>
implements PlayListColumnClickedListener

The Class PlayListController.


Constructor Summary
PlayListController(PlayListPanel panel)
          Instantiates a new play list controller.
 
Method Summary
protected  void addBindings()
          Adds the bindings.
protected  void addStateBindings()
          Adds the state bindings.
 void arrangeColumns()
          Arrange columns.
 void columnClicked(Column columnClicked)
          Notifies when user clicks on a column header.
 void deleteSelection()
          Delete selection.
 void disablePlayListItems(boolean disable, boolean radioOrPodcastFeedEntrySelected)
          Disable play list items.
 javax.swing.JScrollPane getMainPlayListScrollPane()
          Gets the main play list scroll pane.
 PlayListTable getMainPlayListTable()
          Gets the main play list table.
protected  PlayListPanel getPanelControlled()
          Returns panel controlled
 java.util.List<AudioObject> getSelectedAudioObjects()
          Gets the selected audio objects.
 void moveDown()
          Move down.
 void moveToBottom()
          Move to bottom.
 void moveToTop()
          Move to top.
 void moveUp()
          Move up.
 void notifyAudioObjectsAddedToController(java.util.List<? extends AudioObject> audioObjects, int selected)
          Notify audio objects added to controller.
protected  void notifyReload()
          Notify reload.
 void openFolder()
          Opens folder containing selected audio file.
 void playSelectedAudioObject()
          Play selected audio object.
 void scrollPlayList()
          Scrolls to songs currently playing.
 void setAlbumAsPlaylist()
          Sets the album as playlist.
 void setArtistAsPlaylist()
          Sets the artist as playlist.
 void setGenre()
          Sets the genre.
 void setLyrics()
          Sets the lyrics.
 void setSelectedSong(int song)
          Sets the selected song.
 void setTitle()
          Gets selected songs on play list and sets title based on artist, album and track.
 void setTrackNumber()
          Sets the track number.
 void showPlaylistControls(boolean show)
          Show playlist controls.
 void updatePositionInTable(int pos)
          Update position in table.
 
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

PlayListController

public PlayListController(PlayListPanel panel)
Instantiates a new play list 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

arrangeColumns

public void arrangeColumns()
Arrange columns.


columnClicked

public void columnClicked(Column columnClicked)
Notifies when user clicks on a column header.

Specified by:
columnClicked in interface PlayListColumnClickedListener
Parameters:
columnClicked - the column clicked

deleteSelection

public void deleteSelection()
Delete selection.


disablePlayListItems

public void disablePlayListItems(boolean disable,
                                 boolean radioOrPodcastFeedEntrySelected)
Disable play list items.

Parameters:
disable - the disable
radioOrPodcastFeedEntrySelected - the radio or podcast feed entry selected

getMainPlayListScrollPane

public javax.swing.JScrollPane getMainPlayListScrollPane()
Gets the main play list scroll pane.

Returns:
the main play list scroll pane

getMainPlayListTable

public PlayListTable getMainPlayListTable()
Gets the main play list table.

Returns:
the main play list table

getSelectedAudioObjects

public java.util.List<AudioObject> getSelectedAudioObjects()
Gets the selected audio objects.

Returns:
the selected audio objects

moveDown

public void moveDown()
Move down.


moveToBottom

public void moveToBottom()
Move to bottom.


moveToTop

public void moveToTop()
Move to top.


moveUp

public void moveUp()
Move up.


notifyAudioObjectsAddedToController

public void notifyAudioObjectsAddedToController(java.util.List<? extends AudioObject> audioObjects,
                                                int selected)
Notify audio objects added to controller.

Parameters:
audioObjects - the audio objects
selected - the selected

notifyReload

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

Specified by:
notifyReload in class Controller

playSelectedAudioObject

public void playSelectedAudioObject()
Play selected audio object.


scrollPlayList

public void scrollPlayList()
Scrolls to songs currently playing.


getPanelControlled

protected PlayListPanel getPanelControlled()
Returns panel controlled

Overrides:
getPanelControlled in class PanelController<PlayListPanel>
Returns:

setAlbumAsPlaylist

public void setAlbumAsPlaylist()
Sets the album as playlist.


setArtistAsPlaylist

public void setArtistAsPlaylist()
Sets the artist as playlist.


setGenre

public void setGenre()
Sets the genre.


setLyrics

public void setLyrics()
Sets the lyrics.


setSelectedSong

public void setSelectedSong(int song)
Sets the selected song.

Parameters:
song - the new selected song

setTitle

public void setTitle()
Gets selected songs on play list and sets title based on artist, album and track.


setTrackNumber

public void setTrackNumber()
Sets the track number.


showPlaylistControls

public void showPlaylistControls(boolean show)
Show playlist controls.

Parameters:
show - the show

updatePositionInTable

public void updatePositionInTable(int pos)
Update position in table.

Parameters:
pos - the pos

openFolder

public void openFolder()
Opens folder containing selected audio file.



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