Package com.screenrunner.data

Examples of com.screenrunner.data.Song.saveAs()


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


    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

   
    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

TOP
Copyright © 2018 www.massapi.com. 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.