Class ContextShop
- java.lang.Object
-
- com.tagtraum.beatunes.songtable.SongContextComponent
-
- com.tagtraum.beatunes.contextshop.ContextShop
-
- All Implemented Interfaces:
View,ApplicationComponent<BeaTunes>
public class ContextShop extends SongContextComponent
Shows Amazon content that's related to the currently selected song.- Author:
- Hendrik Schreiber
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContextShop.ArtistAlbumKey.
-
Constructor Summary
Constructors Constructor Description ContextShop()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JComponent$$$getRootComponent$$$()protected voidadjustToTheme(Theme theme)React to theme changes.JComponentgetComponent()The actual visual component for this view.StringgetId()Component id.NavigationgetNavigation()JTextFieldgetSearchTextField()voidinit()Initializes this component.voidopenURL(AudioSong song)Opens a file matching a certain song in the ContextShop browser window.voidopenURL(String url)Opens a URL in the ContextShop browser window.voidupdate(AudioSong song)Updates the current view depending on what song is selected in the SongTable.-
Methods inherited from class com.tagtraum.beatunes.songtable.SongContextComponent
fireDelayedUpdate, getApplication, getShowHideAction, getShowHideActionId, getSongTable, initVisibility, setApplication, setShowHideActionId, shutdown
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.tagtraum.beatunes.View
getFocusRoot
-
-
-
-
Method Detail
-
adjustToTheme
protected void adjustToTheme(Theme theme)
Description copied from class:SongContextComponentReact to theme changes. Default implementation is empty.- Overrides:
adjustToThemein classSongContextComponent- Parameters:
theme- theme
-
getId
public String getId()
Description copied from class:SongContextComponentComponent id. Useful forPluginManager.getPlugin(Object).- Specified by:
getIdin interfaceApplicationComponent<BeaTunes>- Specified by:
getIdin classSongContextComponent- Returns:
- component id
-
$$$getRootComponent$$$
public JComponent $$$getRootComponent$$$()
-
update
public void update(AudioSong song)
Updates the current view depending on what song is selected in the SongTable.- Specified by:
updatein classSongContextComponent- Parameters:
song- selected song- See Also:
SongContextComponent.getSongTable(),SongTable.getSelectedSong()
-
init
public void init()
Description copied from class:SongContextComponentInitializes this component. This is a non-empty implementation. Make sure to call super.init() when you override this.- Specified by:
initin interfaceApplicationComponent<BeaTunes>- Overrides:
initin classSongContextComponent
-
getNavigation
public Navigation getNavigation()
-
getSearchTextField
public JTextField getSearchTextField()
-
openURL
public void openURL(String url)
Opens a URL in the ContextShop browser window.- Parameters:
url- url- See Also:
openURL(AudioSong)
-
openURL
public void openURL(AudioSong song)
Opens a file matching a certain song in the ContextShop browser window.- Parameters:
song- song- See Also:
openURL(String)
-
getComponent
public JComponent getComponent()
Description copied from interface:ViewThe actual visual component for this view.- Returns:
- detail component
-
-