Package displayables

Examples of displayables.DirectoryEditor


      int j = l.getSelectedIndex();
      String file_or_path = l.getTitle() + l.getString(j);
      Displayable f = null;
      currentPath = file_or_path;
      if (file_or_path.endsWith("/")) {
        f = new DirectoryEditor(file_or_path);
        f.addCommand(saveCommand);
      } else if (file_or_path.endsWith(".mp3")) {
        f = new FileEditor(file_or_path);
        f.addCommand(saveCommand);
      } else if (file_or_path.endsWith(".txt")) {
View Full Code Here


  public void commandAction(Command c, Displayable d) {

    if (c == saveCommand) {
      if (d instanceof DirectoryEditor) {
        DirectoryEditor fe_d = (DirectoryEditor)d;
        fe_d.saveTag();
      } else {
        FileEditor fe_d = (FileEditor) d;
        fe_d.saveTag();
      }
      c = backCommand;
      q = 2;
    }
View Full Code Here

TOP

Related Classes of displayables.DirectoryEditor

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.