Changeset 181

Show
Ignore:
Timestamp:
03/28/07 20:34:22 (2 years ago)
Author:
bfitzpa2
Message:

Working stylesheet for website.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dmp/trunk/gwt-windows-1.3.3/src/DMP/DMPWebsite.gwt.xml

    r115 r181  
    88         
    99        <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"/> 
    1210   
    1311</module> 
  • dmp/trunk/gwt-windows-1.3.3/src/DMP/client/DMPWebsite.java

    r179 r181  
    103103                getSongsFromCollection(); 
    104104 
     105                // configure tags for both panels 
    105106                collectionTags = new Vector(); 
    106                 collectionTags.add("id"); 
     107                //collectionTags.add("id"); 
    107108                collectionTags.add("Title"); 
    108109                collectionTags.add("Artist"); 
    109110                collectionTags.add("Size"); 
    110111                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 
    117116                HorizontalPanel topPanel = new HorizontalPanel(); 
    118117                 
     
    139138                        } 
    140139                }); 
     140                refreshButton.setStyleName("DMP-SongButton"); 
    141141                topPanel.add(refreshButton); 
    142142                mainPanel.add(topPanel, DockPanel.NORTH); 
    143143                 
     144                // COLLECTION 
     145                // create the wrapper panel that holds the collection list 
    144146                SimplePanel collectionPanel = new SimplePanel(); 
    145147                collectionPanel.add(collection); 
    146148                mainPanel.add(collectionPanel, DockPanel.CENTER); 
    147149                 
     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 
    148156                SimplePanel playingPanel = new SimplePanel(); 
    149157                playingPanel.add(playing); 
    150158                mainPanel.add(playingPanel, DockPanel.EAST); 
    151159                 
     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 
    152166                mainPanel.setCellHeight(playingPanel, "100"); 
    153167                mainPanel.setCellWidth(playingPanel, "150"); 
     
    231245                                                public void onClick(Widget w) 
    232246                                                { 
     247                                                        // if the song is clicked on, add it to the playing lists, play it if  
     248                                                        // there's nothing playing already 
    233249                                                        if(w instanceof Song) 
    234250                                                        { 
    235251                                                                Song song = (Song) w; 
    236                                                                 GWT.log("Adding " + song.getTagContents("title") + " to collection.", null); 
     252                                                                GWT.log("Adding " + song.getTagContents("title") + " to playing.", null); 
    237253                                                                playing.addSong(song.getSong()); 
    238254                                                                musicServ.addSongToPlaying(song.getSong(), new AsyncCallback(){ 
  • dmp/trunk/gwt-windows-1.3.3/src/DMP/client/Song.java

    r180 r181  
    3232                this.songMap = songMap; 
    3333                this.tagList = tagList; 
     34                displayPanel.setSpacing(2); 
    3435                refresh(); 
    3536                this.add(displayPanel); 
     
    5455        { 
    5556                displayPanel.clear(); 
     57                displayPanel.setTitle((String) songMap.get("title")); 
     58                //displayPanel.setStyleName("DMP-Song"); 
    5659                for(Iterator it = tagList.iterator(); it.hasNext(); ) 
    5760                { 
     
    6467//                              tagContents = tagContents.substring(0, columnSize - 1); 
    6568//                      } 
    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); 
    6773                } 
    6874        } 
  • dmp/trunk/gwt-windows-1.3.3/src/DMP/public/DMPWebsite.html

    r67 r181  
    1717                        a:active{color:#ff0000} 
    1818                </style> 
     19                 
     20                <!-- Set up the css stylesheet(s). --> 
     21                <link rel="stylesheet" href="DMPWebsite.css" type="text/css"> 
    1922 
    2023                <!--                                           -->