Package com.tagtraum.beatunes.songtable
Class SongTableEditCreator
- java.lang.Object
-
- com.tagtraum.beatunes.songtable.SongTableEditCreator
-
public class SongTableEditCreator extends Object
Executes setting ofAudioSong
properties via aAbstractSongTableModel
. Modifies properties and creates anUndoableEdit
for the modification. Where it makes sense, and with agreement from the user, the modification is expanded to other songs (e.g. whole albums).- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description SongTableEditCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setValueUndoable(AbstractSongTableModel model, AudioSong song, Object newValue, int row, int column)
-
-
-
Method Detail
-
setValueUndoable
public void setValueUndoable(AbstractSongTableModel model, AudioSong song, Object newValue, int row, int column) throws Exception
Sets the property of the givenAudioSong
corresponding to the givenrow
andcolumn
to thenewValue
. If it makes sense, the user is asked, whether he would like to execute the same change for other songs in the library. Eventually, anUndoableEdit
is returned.- Parameters:
model
- table modelsong
- song that should be changednewValue
- new valuerow
- rowcolumn
- column- Throws:
Exception
- if something goes wrong
-
-