Handle the proper commands.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1133 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2003-05-19 02:53:25 +00:00
parent 9e01d5b9fc
commit 8aa1d804fe
@@ -1,5 +1,5 @@
//
// $Id: EntryController.java,v 1.1 2003/05/04 18:16:06 mdb Exp $
// $Id: EntryController.java,v 1.2 2003/05/19 02:53:25 mdb Exp $
package robodj.chooser;
@@ -103,12 +103,12 @@ public abstract class EntryController extends ItemController
// start up the task that reads this CDs songs from the database
TaskMaster.invokeMethodTask("readSongs", this, this);
} else if (cmd.equals("playall")) {
} else if (cmd.equals(EntryItem.PLAY)) {
_entry = EntryItem.getEntry(e.getSource());
// start up the task that reads this CDs songs from the database
TaskMaster.invokeMethodTask("readAndPlay", this, this);
} else if (cmd.equals("play")) {
} else if (cmd.equals(SongItem.PLAY)) {
Song song = SongItem.getSong(e.getSource());
Chooser.scontrol.append(song.entryid, song.songid, song.location);