Package com.tagtraum.beatunes.songtable
Class DelegatingSongContextComponent
- java.lang.Object
-
- com.tagtraum.beatunes.songtable.SongContextComponent
-
- com.tagtraum.beatunes.songtable.DelegatingSongContextComponent
-
- All Implemented Interfaces:
View,ApplicationComponent<BeaTunes>
public class DelegatingSongContextComponent extends SongContextComponent
Delegates calls fromSongContextComponentto aSongContextViewin order to avoid inheritance.- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description DelegatingSongContextComponent(BeaTunes beaTunes, SongContextView songContextView)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JComponentgetComponent()The actual visual component for this view.StringgetId()Component id.StringtoString()voidupdate(AudioSong selectedSong)Is called when the component is expected to update its view.-
Methods inherited from class com.tagtraum.beatunes.songtable.SongContextComponent
adjustToTheme, fireDelayedUpdate, getApplication, getShowHideAction, getShowHideActionId, getSongTable, init, initVisibility, setApplication, setShowHideActionId, shutdown
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.tagtraum.beatunes.View
getFocusRoot
-
-
-
-
Constructor Detail
-
DelegatingSongContextComponent
public DelegatingSongContextComponent(BeaTunes beaTunes, SongContextView songContextView)
-
-
Method Detail
-
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
-
update
public void update(AudioSong selectedSong)
Description copied from class:SongContextComponentIs called when the component is expected to update its view. This can have programmatic reasons or happen as a result ofSongContextComponent.fireDelayedUpdate(). Typically you are notified when the selection in the mainSongTablechanges and stays stable for at least 250ms (SongContextComponent.UPDATE_DELAY).- Specified by:
updatein classSongContextComponent- Parameters:
selectedSong- (first) song that was selected or null, if no songs are selected- See Also:
SongContextComponent.getSongTable(),SongTable.getSelectedSong()
-
getComponent
public JComponent getComponent()
Description copied from interface:ViewThe actual visual component for this view.- Returns:
- detail component
-
-