Package javax.microedition.lcdui

Examples of javax.microedition.lcdui.Displayable.addCommand()


      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")) {
        f = new VisorDeTexto(file_or_path);
View Full Code Here


      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")) {
        f = new VisorDeTexto(file_or_path);
      }
      Display.getDisplay(m).setCurrent(f);
      f.setCommandListener(this);
View Full Code Here

      } else if (file_or_path.endsWith(".txt")) {
        f = new VisorDeTexto(file_or_path);
      }
      Display.getDisplay(m).setCurrent(f);
      f.setCommandListener(this);
      f.addCommand(backCommand);
    }

    q = s;
  }
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.