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 class
SingleItemInfoDialog.AutoInfoAction
static class
SingleItemInfoDialog.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$$$()
void
addArtworkAction(AudioArtwork artwork, AudioSong song)
void
addReferenceSongs(List<AudioSong> referenceSongs)
void
begin()
void
done()
void
end()
BeaTunes
getApplication()
JComponent
getComponent()
The actual visual component for this view.AudioSong
getSong()
String
getStatusLabel()
Status label to show in the status bar when this component becomes visible.boolean
isIndeterminateProgress()
Indicates that the current status is an operation with indeterminate progress which should be reflected in the rendering of the status bar.void
repeat()
void
selectTab(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.void
setIndeterminateProgress(boolean indeterminateProgress)
void
setStatusLabel(String statusLabel)
void
setTable(JTable table, int index)
void
timingEvent(float fraction)
static String
toDescription(BeaTunes application, Mood mood)
void
updateLyricsTab()
-
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:
timingEvent
in interfaceorg.jdesktop.animation.timing.TimingTarget
-
begin
public void begin()
- Specified by:
begin
in interfaceorg.jdesktop.animation.timing.TimingTarget
-
end
public void end()
- Specified by:
end
in interfaceorg.jdesktop.animation.timing.TimingTarget
-
repeat
public void repeat()
- Specified by:
repeat
in interfaceorg.jdesktop.animation.timing.TimingTarget
-
getStatusLabel
public String getStatusLabel()
Description copied from interface:DetailView
Status label to show in the status bar when this component becomes visible.- Specified by:
getStatusLabel
in interfaceDetailView
- Returns:
- label
- See Also:
MainWindow.getStatusLabel()
-
setStatusLabel
public void setStatusLabel(String statusLabel)
- Specified by:
setStatusLabel
in interfaceReferenceCheck.Callback
-
isIndeterminateProgress
public boolean isIndeterminateProgress()
Description copied from interface:DetailView
Indicates that the current status is an operation with indeterminate progress which should be reflected in the rendering of the status bar.- Specified by:
isIndeterminateProgress
in interfaceDetailView
- Returns:
- true if an indeterminate progress indicator is supposed to be rendered
-
setIndeterminateProgress
public void setIndeterminateProgress(boolean indeterminateProgress)
- Specified by:
setIndeterminateProgress
in interfaceReferenceCheck.Callback
-
getComponent
public JComponent getComponent()
Description copied from interface:View
The actual visual component for this view.- Specified by:
getComponent
in 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:
addReferenceSongs
in interfaceReferenceCheck.Callback
-
addArtworkAction
public void addArtworkAction(AudioArtwork artwork, AudioSong song)
- Specified by:
addArtworkAction
in interfaceReferenceCheck.Callback
-
done
public void done()
- Specified by:
done
in interfaceReferenceCheck.Callback
-
-