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 class
ContextShop.ArtistAlbum
Key.
-
Constructor Summary
Constructors Constructor Description ContextShop()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JComponent
$$$getRootComponent$$$()
protected void
adjustToTheme(Theme theme)
React to theme changes.JComponent
getComponent()
The actual visual component for this view.String
getId()
Component id.Navigation
getNavigation()
JTextField
getSearchTextField()
void
init()
Initializes this component.void
openURL(AudioSong song)
Opens a file matching a certain song in the ContextShop browser window.void
openURL(String url)
Opens a URL in the ContextShop browser window.void
update(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:SongContextComponent
React to theme changes. Default implementation is empty.- Overrides:
adjustToTheme
in classSongContextComponent
- Parameters:
theme
- theme
-
getId
public String getId()
Description copied from class:SongContextComponent
Component id. Useful forPluginManager.getPlugin(Object)
.- Specified by:
getId
in interfaceApplicationComponent<BeaTunes>
- Specified by:
getId
in 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:
update
in classSongContextComponent
- Parameters:
song
- selected song- See Also:
SongContextComponent.getSongTable()
,SongTable.getSelectedSong()
-
init
public void init()
Description copied from class:SongContextComponent
Initializes this component. This is a non-empty implementation. Make sure to call super.init() when you override this.- Specified by:
init
in interfaceApplicationComponent<BeaTunes>
- Overrides:
init
in 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:View
The actual visual component for this view.- Returns:
- detail component
-
-