Changeset 181
- Timestamp:
- 03/28/07 20:34:22 (2 years ago)
- Files:
-
- dmp/trunk/gwt-windows-1.3.3/src/DMP/DMPWebsite.gwt.xml (modified) (1 diff)
- dmp/trunk/gwt-windows-1.3.3/src/DMP/client/DMPWebsite.java (modified) (3 diffs)
- dmp/trunk/gwt-windows-1.3.3/src/DMP/client/Song.java (modified) (3 diffs)
- dmp/trunk/gwt-windows-1.3.3/src/DMP/public/DMPWebsite.css (added)
- dmp/trunk/gwt-windows-1.3.3/src/DMP/public/DMPWebsite.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dmp/trunk/gwt-windows-1.3.3/src/DMP/DMPWebsite.gwt.xml
r115 r181 8 8 9 9 <servlet path="/music" class="DMP.server.MusicServImpl"/> 10 11 <stylesheet src="C:\Documents and Settings\Beverly Fitzpatrick\My Documents\Visual Studio 2005\Projects\DMP\gwt-windows-1.3.3\src\DMP\DMPWebsite.css"/>12 10 13 11 </module> dmp/trunk/gwt-windows-1.3.3/src/DMP/client/DMPWebsite.java
r179 r181 103 103 getSongsFromCollection(); 104 104 105 // configure tags for both panels 105 106 collectionTags = new Vector(); 106 collectionTags.add("id");107 //collectionTags.add("id"); 107 108 collectionTags.add("Title"); 108 109 collectionTags.add("Artist"); 109 110 collectionTags.add("Size"); 110 111 collectionTags.add("Duration"); 111 collectionTags.add("Format"); 112 collection.setTitle("Song Collection"); 113 114 playing.setTitle("Now Playing"); 115 playing.setTagList(collectionTags); //just use the same tags as the collection for now 116 112 //collectionTags.add("Format"); 113 114 // TOP PANEL 115 // creates the top panel 117 116 HorizontalPanel topPanel = new HorizontalPanel(); 118 117 … … 139 138 } 140 139 }); 140 refreshButton.setStyleName("DMP-SongButton"); 141 141 topPanel.add(refreshButton); 142 142 mainPanel.add(topPanel, DockPanel.NORTH); 143 143 144 // COLLECTION 145 // create the wrapper panel that holds the collection list 144 146 SimplePanel collectionPanel = new SimplePanel(); 145 147 collectionPanel.add(collection); 146 148 mainPanel.add(collectionPanel, DockPanel.CENTER); 147 149 150 // configure the collection list 151 collection.setSpacing(2); 152 collection.setTitle("Collection"); 153 154 // NOW PLAYING 155 // create the wrapper panel that holds the Now Playing list 148 156 SimplePanel playingPanel = new SimplePanel(); 149 157 playingPanel.add(playing); 150 158 mainPanel.add(playingPanel, DockPanel.EAST); 151 159 160 // configures the Now Playing panel 161 playing.setTitle("Now Playing"); 162 playing.setTagList(collectionTags); //just use the same tags as the collection for now 163 164 // MAIN WRAPPER PANEL 165 // configure the main, outer panel 152 166 mainPanel.setCellHeight(playingPanel, "100"); 153 167 mainPanel.setCellWidth(playingPanel, "150"); … … 231 245 public void onClick(Widget w) 232 246 { 247 // if the song is clicked on, add it to the playing lists, play it if 248 // there's nothing playing already 233 249 if(w instanceof Song) 234 250 { 235 251 Song song = (Song) w; 236 GWT.log("Adding " + song.getTagContents("title") + " to collection.", null);252 GWT.log("Adding " + song.getTagContents("title") + " to playing.", null); 237 253 playing.addSong(song.getSong()); 238 254 musicServ.addSongToPlaying(song.getSong(), new AsyncCallback(){ dmp/trunk/gwt-windows-1.3.3/src/DMP/client/Song.java
r180 r181 32 32 this.songMap = songMap; 33 33 this.tagList = tagList; 34 displayPanel.setSpacing(2); 34 35 refresh(); 35 36 this.add(displayPanel); … … 54 55 { 55 56 displayPanel.clear(); 57 displayPanel.setTitle((String) songMap.get("title")); 58 //displayPanel.setStyleName("DMP-Song"); 56 59 for(Iterator it = tagList.iterator(); it.hasNext(); ) 57 60 { … … 64 67 // tagContents = tagContents.substring(0, columnSize - 1); 65 68 // } 66 displayPanel.add(new Label(tagContents + "\t")); 69 // create label to hold the data from this tag 70 Label displayStuff = new Label(tagContents); 71 displayStuff.setStyleName("DMP-Song"); 72 displayPanel.add(displayStuff); 67 73 } 68 74 } dmp/trunk/gwt-windows-1.3.3/src/DMP/public/DMPWebsite.html
r67 r181 17 17 a:active{color:#ff0000} 18 18 </style> 19 20 <!-- Set up the css stylesheet(s). --> 21 <link rel="stylesheet" href="DMPWebsite.css" type="text/css"> 19 22 20 23 <!-- -->
