Package javax.microedition.lcdui

Examples of javax.microedition.lcdui.List


        display.setCurrent(wc);

        try {
            Enumeration e;
            FileConnection currDir = null;
            List browser = createBrowser();

            if (MEGA_ROOT.equals(currDirName)) {
                e = FileSystemRegistry.listRoots();
            } else {
                currDir = (FileConnection) Connector.open("file://localhost/"
                        + currDirName);
                e = currDir.list();
                // not root - draw UP_DIRECTORY
                browser.append(UP_DIRECTORY, dirIcon);
            }

            while (e.hasMoreElements()) {
                String fileName = (String) e.nextElement();
                if (fileName.charAt(fileName.length() - 1) == FilePath.separatorChar)
                    browser.append(fileName, dirIcon);
                else if (fileName.toLowerCase().endsWith(".sgf"))
                    browser.append(fileName, sgfFileIcon);
                else if (fileName.toLowerCase().endsWith(".sgfi"))
                    browser.append(fileName, sgfiFileIcon);
                else
                    browser.append(fileName, fileIcon);
            }

            if (currDir != null)
                currDir.close();
View Full Code Here


     /**
   * Permet d'afficher la vue
   * @return
   */
    public void display() {
        List list = new List( "Choix du joueur :", List.IMPLICIT , PLAYER_LIST, null);
        list.addCommand(EXIT_GAME);
        list.addCommand(SELECT_PLAYER);
        list.setCommandListener(this);
        _display.setCurrent(list);
        System.out.println("ListWaitingPlayerView : display");
    }
View Full Code Here

    /**
   * Permet d'afficher la vue
   * @return
   */
  public void display() {
        List list = new List( "Choix du jeu :", List.IMPLICIT , MENU_LABELS, null);
        list.addCommand(EXIT_GAME);
        list.addCommand(NEW_GAME);
        list.setCommandListener(this);
        _display.setCurrent(list);
        System.out.println("VueChoiceGame : display");
    }
View Full Code Here

    // <editor-fold defaultstate="collapsed" desc=" UML Marker ">
    // #[regen=yes,id=DCE.E8635472-EACA-CC7C-F479-41F024E0C240]
    // </editor-fold>
    public void display () {
        List list = new List( "Choix du jeu :", List.IMPLICIT , MENU_LABELS, null);
        list.addCommand(EXIT_GAME);
        list.addCommand(NEW_GAME);
        list.setCommandListener(this);
        super.get_display().setCurrent(list);
        System.out.println("VueChoiceGame : display");
    }
View Full Code Here

    /**
   * Permet d'afficher la vue
   * @return
   */
  public void display() {
        List list = new List("Role?", List.IMPLICIT, MENU_LABELS, null);
        list.addCommand(EXIT_GAME);
        list.addCommand(NEW_GAME);
        list.setCommandListener(this);
        _display.setCurrent(list);
        System.out.println("VueClientServeur : paint");
    }
View Full Code Here

   * Permet d'afficher la vue
   * @return
   */
  public void display() {
        System.out.println("VueTypePartie : paint");
        List list = new List("Type de partie ?", List.IMPLICIT, TYPE_GAME_NAMES, null);
        list.addCommand(NEW_GAME_CANCEL);
        list.addCommand(NEW_GAME);
        list.setCommandListener(this);
        _display.setCurrent(list);
    }
View Full Code Here

   * Permet d'afficher la vue
   * @return
   */
  public void display() {
        System.out.println("VueTypePartie : paint");
        List list = new List("Difficulté ?", List.IMPLICIT, DIFF_LEVEL_NAMES, null);
        list.addCommand(NEW_GAME_CANCEL);
        list.addCommand(NEW_GAME);
        list.setCommandListener(this);
        _display.setCurrent(list);
    }
View Full Code Here

    }
  }

  public void requestPopup(InputWidget source, Vector options, int selectedIndex) {
    if (list == null) {
      list = new List("Select", List.EXCLUSIVE);
      list.addCommand(CMD_LIST_OK);
      list.addCommand(CMD_CANCEL);
      list.setCommandListener(this);
    }
View Full Code Here

    display.setCurrent(currentScreen);
  }

  public void menu() {
    if (menu == null) {
      menu = new List("Menu", List.IMPLICIT, MENU_OPTIONS, null);
      menu.addCommand(CMD_CANCEL);
      menu.setCommandListener(this);
    }
    display.setCurrent(menu);
  }
View Full Code Here

   *
   * @param polling Select method for button handling
   */
  public void startApp(boolean polling) {
    // Create main menu
    menu = new List("Test Components", Choice.IMPLICIT);
    menu.append("Test TextBox", null);
    menu.append("Test List", null);
      menu.append("Test Alert", null);
      menu.append("Test Form 1", null);
      menu.append("Test Form 2", null);
View Full Code Here

TOP

Related Classes of javax.microedition.lcdui.List

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.