|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.atunes.kernel.controllers.model.Controller
net.sourceforge.atunes.kernel.controllers.model.PanelController<NavigationPanel>
net.sourceforge.atunes.kernel.controllers.navigation.NavigationController
public class NavigationController
The Class NavigationController.
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. |
java.lang.Object |
getCurrentAlbumToolTipContent()
Gets the last album tool tip content. |
javax.swing.JTree |
getDeviceTree()
Returns navigator device tree |
javax.swing.JScrollPane |
getDeviceTreeScrollPane()
Returns navigator device tree scroll pane |
javax.swing.tree.DefaultTreeModel |
getFavoritesTreeModel()
Gets the favorites tree model. |
java.util.List<AudioFile> |
getFilesSelectedInNavigator()
Get files of all selected elements in navigator. |
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. |
javax.swing.Timer |
getToolTipTimer()
|
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. |
boolean |
sameParentFile(java.util.Collection<? extends java.io.File> c)
Checks if a collection of files have the same parent file. |
void |
setCurrentAlbumToolTipContent(java.lang.Object currentAlbumToolTipContent)
Sets the current 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 |
---|
public NavigationController(NavigationPanel panel)
panel
- the panelMethod Detail |
---|
protected void addBindings()
Controller
addBindings
in class Controller
protected NavigationPanel getPanelControlled()
PanelController
getPanelControlled
in class PanelController<NavigationPanel>
protected void addStateBindings()
Controller
addStateBindings
in class Controller
public javax.swing.Timer getToolTipTimer()
public AlbumToolTip getAlbumToolTip()
public javax.swing.tree.DefaultTreeModel getFavoritesTreeModel()
public java.util.List<AudioFile> getFilesSelectedInNavigator()
public boolean sameParentFile(java.util.Collection<? extends java.io.File> c)
c
- collection of files
public java.lang.Object getCurrentAlbumToolTipContent()
public AudioObject getSongInNavigationTable(int row)
row
- the row
public java.util.List<AudioObject> getSongsForDeviceTreeNode(javax.swing.tree.DefaultMutableTreeNode node)
node
- the node
public java.util.List<AudioObject> getSongsForFavoriteTreeNode(javax.swing.tree.DefaultMutableTreeNode node)
node
- the node
public java.util.List<AudioObject> getSongsForNavigationTree()
public java.util.List<AudioObject> getSongsForPodcastFeedTreeNode(javax.swing.tree.DefaultMutableTreeNode node)
node
- the node
public java.util.List<AudioObject> getSongsForRadioTreeNode(javax.swing.tree.DefaultMutableTreeNode node)
node
- the node
public java.util.List<AudioObject> getSongsForTreeNode(javax.swing.tree.DefaultMutableTreeNode node)
node
- the node
public NavigationControllerState getState()
public void notifyDeviceReload()
public void notifyReload()
Controller
notifyReload
in class Controller
public void refreshDeviceTreeContent()
public void refreshFavoriteTree()
public void refreshPodcastFeedTreeContent()
public void refreshRadioTreeContent()
public void refreshTable()
public void refreshRepositoryViewTreeContent()
public void refreshTreeContent()
public void setCurrentAlbumToolTipContent(java.lang.Object currentAlbumToolTipContent)
currentAlbumToolTipContent
- the new current album tool tip contentpublic void setNavigationView(int view)
view
- the new navigation viewpublic java.util.List<AudioObject> sort(java.util.List<AudioObject> songs, RepositoryHandler.SortType type)
songs
- the songstype
- the type
public javax.swing.JTree getDeviceTree()
public javax.swing.JScrollPane getDeviceTreeScrollPane()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |