Package com.tagtraum.beatunes.songinfo
Class SingleItemInfoDialog
- java.lang.Object
-
- com.tagtraum.beatunes.songinfo.SingleItemInfoDialog
-
- All Implemented Interfaces:
DetailView,ReferenceCheck.Callback,View,org.jdesktop.animation.timing.TimingTarget
public class SingleItemInfoDialog extends Object implements DetailView, ReferenceCheck.Callback, org.jdesktop.animation.timing.TimingTarget
Detailview for editing a single song.- Author:
- Hendrik Schreiber
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSingleItemInfoDialog.AutoInfoActionstatic classSingleItemInfoDialog.Tabs
-
Constructor Summary
Constructors Constructor Description SingleItemInfoDialog(BeaTunes application)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JComponent$$$getRootComponent$$$()voidaddArtworkAction(AudioArtwork artwork, AudioSong song)voidaddReferenceSongs(List<AudioSong> referenceSongs)voidbegin()voiddone()voidend()BeaTunesgetApplication()JComponentgetComponent()The actual visual component for this view.AudioSonggetSong()StringgetStatusLabel()Status label to show in the status bar when this component becomes visible.booleanisIndeterminateProgress()Indicates that the current status is an operation with indeterminate progress which should be reflected in the rendering of the status bar.voidrepeat()voidselectTab(SingleItemInfoDialog.Tabs tab)static Property.PropertyUndoableEdit<AudioArtwork[]>setArtworkUndoable(AudioSong song, AudioArtwork... artworks)Sets artwork regardless of whether the its front or back.static Property.PropertyUndoableEdit<AudioArtwork[]>setFrontBackArtworkUndoable(AudioSong song, AudioArtwork front, AudioArtwork back)Sets the front and back artwork.voidsetIndeterminateProgress(boolean indeterminateProgress)voidsetStatusLabel(String statusLabel)voidsetTable(JTable table, int index)voidtimingEvent(float fraction)static StringtoDescription(BeaTunes application, Mood mood)voidupdateLyricsTab()-
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
-
SingleItemInfoDialog
public SingleItemInfoDialog(BeaTunes application)
-
-
Method Detail
-
$$$getRootComponent$$$
public JComponent $$$getRootComponent$$$()
-
timingEvent
public void timingEvent(float fraction)
- Specified by:
timingEventin interfaceorg.jdesktop.animation.timing.TimingTarget
-
begin
public void begin()
- Specified by:
beginin interfaceorg.jdesktop.animation.timing.TimingTarget
-
end
public void end()
- Specified by:
endin interfaceorg.jdesktop.animation.timing.TimingTarget
-
repeat
public void repeat()
- Specified by:
repeatin interfaceorg.jdesktop.animation.timing.TimingTarget
-
getStatusLabel
public String getStatusLabel()
Description copied from interface:DetailViewStatus label to show in the status bar when this component becomes visible.- Specified by:
getStatusLabelin interfaceDetailView- Returns:
- label
- See Also:
MainWindow.getStatusLabel()
-
setStatusLabel
public void setStatusLabel(String statusLabel)
- Specified by:
setStatusLabelin interfaceReferenceCheck.Callback
-
isIndeterminateProgress
public boolean isIndeterminateProgress()
Description copied from interface:DetailViewIndicates that the current status is an operation with indeterminate progress which should be reflected in the rendering of the status bar.- Specified by:
isIndeterminateProgressin interfaceDetailView- Returns:
- true if an indeterminate progress indicator is supposed to be rendered
-
setIndeterminateProgress
public void setIndeterminateProgress(boolean indeterminateProgress)
- Specified by:
setIndeterminateProgressin interfaceReferenceCheck.Callback
-
getComponent
public JComponent getComponent()
Description copied from interface:ViewThe actual visual component for this view.- Specified by:
getComponentin interfaceView- Returns:
- detail component
-
getApplication
public BeaTunes getApplication()
-
setTable
public void setTable(JTable table, int index)
-
selectTab
public void selectTab(SingleItemInfoDialog.Tabs tab)
-
getSong
public AudioSong getSong()
-
setArtworkUndoable
public static Property.PropertyUndoableEdit<AudioArtwork[]> setArtworkUndoable(AudioSong song, AudioArtwork... artworks)
Sets artwork regardless of whether the its front or back. The first artwork is set as the first image, replacing the current first image. The second artwork is set as the second image, replacing the second image and so on.- Parameters:
artworks- artworks- Returns:
- edit
-
setFrontBackArtworkUndoable
public static Property.PropertyUndoableEdit<AudioArtwork[]> setFrontBackArtworkUndoable(AudioSong song, AudioArtwork front, AudioArtwork back)
Sets the front and back artwork.- Parameters:
front- front imageback- back image- Returns:
- edit
-
updateLyricsTab
public void updateLyricsTab()
-
addReferenceSongs
public void addReferenceSongs(List<AudioSong> referenceSongs)
- Specified by:
addReferenceSongsin interfaceReferenceCheck.Callback
-
addArtworkAction
public void addArtworkAction(AudioArtwork artwork, AudioSong song)
- Specified by:
addArtworkActionin interfaceReferenceCheck.Callback
-
done
public void done()
- Specified by:
donein interfaceReferenceCheck.Callback
-
-