Package com.screenrunner.data

Examples of com.screenrunner.data.Song


    }
    return true;
  }
 
  public void songEditorSave() {
    Song s = ScreenRunner.songs.get(songEditorCurrentSong);
    songEditorDataToSong(s);
    s.saveAs(songEditorCurrentSong);
    setSongEditorModified(false);
    loadSong();
  }
View Full Code Here


  }
 
  public void songEditorSaveAs() {
    String newName = InputBox.showDialog("Enter a name for the song:", "Save As", InputBox.ICON_NONE, songEditorCurrentSong);
    if(newName == null || newName.length() == 0) return;
    Song s = Song.createNew(songEditorTitleField.getText());
    songEditorCurrentSong = newName;
    songEditorDataToSong(s);
    s.saveAs(songEditorCurrentSong);
    ScreenRunner.songs.set(songEditorCurrentSong, s);
    setSongEditorModified(false);
    loadSong();
  }
View Full Code Here

    if(name == null) return;
   
    while(name.length() == 0) {
      name = InputBox.showDialog("Enter a name for the song:", "New Song", InputBox.ICON_QUESTION, name);
    }
    Song s = Song.createNew(name);
    s.saveAs(name);
    ScreenRunner.songs.set(name, s);
    songEditorCurrentSong = name;
    loadSong();
  }
View Full Code Here

      loadSong();
    }
  }
 
  public void loadSong() {
    Song s = ScreenRunner.songs.get(songEditorCurrentSong);
   
    if(s != null) {
      ignoreChanges = true;
      songEditorTitleField.setText(s.getTitle());
      songEditorAuthorField.setText(s.getAuthor());
      songEditorCopyrightField.setText(s.getCopyright());
      songEditorCcliField.setText(s.getCCLINumber());
      songEditorPresentationField.setText(s.getPresentationOrder());
      songEditorHymnField.setText(s.getHymnNumber());
      songEditorLyricsArea.setText(s.getLyrics());
      songEditorCapoCombo.setSelectedItem(s.getCapo());
      songEditorKeyField.setText(s.getKey());
      songEditorAkaField.setText(s.getAKA());
      songEditorTimeSigCombo.setSelectedItem(s.getTimeSignature());
      songEditorTempoCombo.setSelectedItem(s.getTempo());
      songEditorKeyLineField.setText(s.getKeyLine());
      songEditorUser1Area.setText(s.getUser1());
      songEditorUser1Area.setText(s.getUser2());
      songEditorUser1Area.setText(s.getUser3());
      songEditorUserSelectorCombo.setSelectedItem("User 1");
      songEditorThemeList = new Vector<String>();
      String[] themes = s.getThemes();
      for(int i = 0; i < themes.length; i++) {
        songEditorThemeList.add(themes[i]);
      }
      ignoreChanges = false;
     
View Full Code Here

    while(true) {
      SongPicker dlg = new SongPicker();
      int rv = dlg.showDialog();
      if(rv == SongPicker.RESULT_CANCEL) break;
      String id = dlg.getSelectedSong();
      Song s = ScreenRunner.songs.get(id);
      if(s == null) {
        I18n.err("sys/playlist/songnotfound", id);
        continue;
      }
      ScreenRunner.playlist.add(s.cloneObject());
      setPlaylistEditorModified(true);
    }
  }
View Full Code Here

TOP

Related Classes of com.screenrunner.data.Song

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.