net.sourceforge.atunes.kernel.controllers.navigation
Class NavigationController

java.lang.Object
  extended by net.sourceforge.atunes.kernel.controllers.model.Controller
      extended by net.sourceforge.atunes.kernel.controllers.model.PanelController<NavigationPanel>
          extended by net.sourceforge.atunes.kernel.controllers.navigation.NavigationController

public class NavigationController
extends PanelController<NavigationPanel>

The Class NavigationController.

Author:
fleax

Constructor Summary
NavigationController(NavigationPanel panel)
          Instantiates a new navigation controller.
 
Method Summary
protected  void addBindings()
          Adds the bindings.
protected  void addStateBindings()
          Adds the state bindings.
 AlbumToolTip getAlbumToolTip()
          Gets the album tool tip.
 javax.swing.tree.DefaultTreeModel getFavoritesTreeModel()
          Gets the favorites tree model.
 java.lang.Object getLastAlbumToolTipContent()
          Gets the last album tool tip content.
protected  NavigationPanel getPanelControlled()
          Returns panel controlled
 AudioObject getSongInNavigationTable(int row)
          Gets the song in navigation table.
 java.util.List<AudioObject> getSongsForDeviceTreeNode(javax.swing.tree.DefaultMutableTreeNode node)
          Gets the songs for device tree node.
 java.util.List<AudioObject> getSongsForFavoriteTreeNode(javax.swing.tree.DefaultMutableTreeNode node)
          Gets the songs for favorite tree node.
 java.util.List<AudioObject> getSongsForNavigationTree()
          Gets the songs for navigation tree.
 java.util.List<AudioObject> getSongsForPodcastFeedTreeNode(javax.swing.tree.DefaultMutableTreeNode node)
          Gets the songs for podcast feed tree node.
 java.util.List<AudioObject> getSongsForRadioTreeNode(javax.swing.tree.DefaultMutableTreeNode node)
          Gets the songs for radio tree node.
 java.util.List<AudioObject> getSongsForTreeNode(javax.swing.tree.DefaultMutableTreeNode node)
          Gets the songs for tree node.
 NavigationControllerState getState()
          Gets the state.
 void notifyDeviceReload()
          Notify device reload.
 void notifyReload()
          Notify reload.
 void refreshDeviceTreeContent()
          Refresh device tree content.
 void refreshFavoriteTree()
          Refresh favorite tree.
 void refreshPodcastFeedTreeContent()
          Refresh podcast feed tree content.
 void refreshRadioTreeContent()
          Refreshes the radio view.
 void refreshRepositoryViewTreeContent()
          Refresh repository view tree content.
 void refreshTable()
          Refresh table.
 void refreshTreeContent()
          Refresh tree content.
 void setLastAlbumToolTipContent(java.lang.Object lastAlbumToolTipContent)
          Sets the last album tool tip content.
 void setNavigationView(int view)
          Sets the navigation view.
 java.util.List<AudioObject> sort(java.util.List<AudioObject> songs, RepositoryHandler.SortType type)
          Sort.
 
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

NavigationController

public NavigationController(NavigationPanel panel)
Instantiates a new navigation 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

getPanelControlled

protected NavigationPanel getPanelControlled()
Description copied from class: PanelController
Returns panel controlled

Overrides:
getPanelControlled in class PanelController<NavigationPanel>
Returns:

addStateBindings

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

Specified by:
addStateBindings in class Controller

getAlbumToolTip

public AlbumToolTip getAlbumToolTip()
Gets the album tool tip.

Returns:
the album tool tip

getFavoritesTreeModel

public javax.swing.tree.DefaultTreeModel getFavoritesTreeModel()
Gets the favorites tree model.

Returns:
the favorites tree model

getLastAlbumToolTipContent

public java.lang.Object getLastAlbumToolTipContent()
Gets the last album tool tip content.

Returns:
the last album tool tip content

getSongInNavigationTable

public AudioObject getSongInNavigationTable(int row)
Gets the song in navigation table.

Parameters:
row - the row
Returns:
the song in navigation table

getSongsForDeviceTreeNode

public java.util.List<AudioObject> getSongsForDeviceTreeNode(javax.swing.tree.DefaultMutableTreeNode node)
Gets the songs for device tree node.

Parameters:
node - the node
Returns:
the songs for device tree node

getSongsForFavoriteTreeNode

public java.util.List<AudioObject> getSongsForFavoriteTreeNode(javax.swing.tree.DefaultMutableTreeNode node)
Gets the songs for favorite tree node.

Parameters:
node - the node
Returns:
the songs for favorite tree node

getSongsForNavigationTree

public java.util.List<AudioObject> getSongsForNavigationTree()
Gets the songs for navigation tree.

Returns:
the songs for navigation tree

getSongsForPodcastFeedTreeNode

public java.util.List<AudioObject> getSongsForPodcastFeedTreeNode(javax.swing.tree.DefaultMutableTreeNode node)
Gets the songs for podcast feed tree node.

Parameters:
node - the node
Returns:
the songs for podcast feed tree node

getSongsForRadioTreeNode

public java.util.List<AudioObject> getSongsForRadioTreeNode(javax.swing.tree.DefaultMutableTreeNode node)
Gets the songs for radio tree node.

Parameters:
node - the node
Returns:
the songs for radio tree node

getSongsForTreeNode

public java.util.List<AudioObject> getSongsForTreeNode(javax.swing.tree.DefaultMutableTreeNode node)
Gets the songs for tree node.

Parameters:
node - the node
Returns:
the songs for tree node

getState

public NavigationControllerState getState()
Gets the state.

Returns:
the state

notifyDeviceReload

public void notifyDeviceReload()
Notify device reload.


notifyReload

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

Specified by:
notifyReload in class Controller

refreshDeviceTreeContent

public void refreshDeviceTreeContent()
Refresh device tree content.


refreshFavoriteTree

public void refreshFavoriteTree()
Refresh favorite tree.


refreshPodcastFeedTreeContent

public void refreshPodcastFeedTreeContent()
Refresh podcast feed tree content.


refreshRadioTreeContent

public void refreshRadioTreeContent()
Refreshes the radio view.


refreshTable

public void refreshTable()
Refresh table.


refreshRepositoryViewTreeContent

public void refreshRepositoryViewTreeContent()
Refresh repository view tree content.


refreshTreeContent

public void refreshTreeContent()
Refresh tree content.


setLastAlbumToolTipContent

public void setLastAlbumToolTipContent(java.lang.Object lastAlbumToolTipContent)
Sets the last album tool tip content.

Parameters:
lastAlbumToolTipContent - the new last album tool tip content

setNavigationView

public void setNavigationView(int view)
Sets the navigation view.

Parameters:
view - the new navigation view

sort

public java.util.List<AudioObject> sort(java.util.List<AudioObject> songs,
                                        RepositoryHandler.SortType type)
Sort.

Parameters:
songs - the songs
type - the type
Returns:
the list< audio object>


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