Package com.tagtraum.beatunes.songtable
Class SongTableEditCreator
- java.lang.Object
-
- com.tagtraum.beatunes.songtable.SongTableEditCreator
-
public class SongTableEditCreator extends Object
Executes setting ofAudioSongproperties via aAbstractSongTableModel. Modifies properties and creates anUndoableEditfor 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 voidsetValueUndoable(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 givenAudioSongcorresponding to the givenrowandcolumnto 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, anUndoableEditis returned.- Parameters:
model- table modelsong- song that should be changednewValue- new valuerow- rowcolumn- column- Throws:
Exception- if something goes wrong
-
-