00001 package i2bpro.playlist;
00002
00003 import java.util.HashMap;
00004
00005
00006
00022 public abstract class basePlayList
00023 {
00024
00025
00026 protected HashMap<Integer, HashMap<String, String>> playlist
00027 = new HashMap<Integer, HashMap<String, String>>();
00028
00029
00030 protected String playlisttype = null;
00031
00032
00033
00060 public HashMap<Integer, HashMap<String, String>> getPlayList()
00061 {
00062 return playlist;
00063 }
00064
00065
00066
00077 public String getPlayListType() {return playlisttype;}
00078
00079
00080
00091 public void DeleteMedia(int del_id)
00092 {
00093 HashMap<Integer, HashMap<String, String>> tmp =
00094 new HashMap<Integer, HashMap<String, String>>();
00095 int t = 0;
00096 for (int i=0; i<playlist.size(); i++)
00097 {
00098 if (i != del_id)
00099 {
00100 tmp.put(t, playlist.get(i));
00101 t++;
00102 }
00103 }
00104 playlist = tmp;
00105 }
00106 }