Package com.tagtraum.beatunes
Class DummySongContextComponent
- java.lang.Object
-
- com.tagtraum.beatunes.songtable.SongContextComponent
-
- com.tagtraum.beatunes.DummySongContextComponent
-
- All Implemented Interfaces:
View
,ApplicationComponent<BeaTunes>
public class DummySongContextComponent extends SongContextComponent
DummySongContextComponent.- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description DummySongContextComponent(BeaTunes beaTunes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JComponent
getComponent()
The actual visual component for this view.String
getId()
Component id.SongContextComponentShowHideAction
getShowHideAction()
Returns the action that shows/hides this component.String
getStatusLabel()
void
init()
Initializes this component.void
shutdown()
Shuts this component down.void
update(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, getShowHideActionId, getSongTable, initVisibility, setApplication, setShowHideActionId
-
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
-
-
-
-
Constructor Detail
-
DummySongContextComponent
public DummySongContextComponent(BeaTunes beaTunes)
-
-
Method Detail
-
getShowHideAction
public SongContextComponentShowHideAction getShowHideAction()
Description copied from class:SongContextComponent
Returns the action that shows/hides this component. By default the action is obtained from theActionManager
via the id set withSongContextComponent.setShowHideActionId(String)
.- Overrides:
getShowHideAction
in classSongContextComponent
- Returns:
- actionManager.getAction(getShowHideActionId())
- See Also:
SongContextComponent.getShowHideActionId()
-
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
-
shutdown
public void shutdown()
Description copied from class:SongContextComponent
Shuts this component down. This is a non-empty implementation. Make sure to call super.shutdown() when you override this.- Specified by:
shutdown
in interfaceApplicationComponent<BeaTunes>
- Overrides:
shutdown
in classSongContextComponent
-
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
-
update
public void update(AudioSong selectedSong)
Description copied from class:SongContextComponent
Is 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 mainSongTable
changes and stays stable for at least 250ms (SongContextComponent.UPDATE_DELAY
).- Specified by:
update
in 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:View
The actual visual component for this view.- Returns:
- detail component
-
getStatusLabel
public String getStatusLabel()
-
-