Package javax.microedition.lcdui

Examples of javax.microedition.lcdui.TextField


        return intervalTextField;
    }

    private static TextField getCallFromTextField() {
        if (callFromTextField == null) {
            callFromTextField = new TextField("Call From:", callFrom, 15, TextField.PHONENUMBER);
        }
        return callFromTextField;
    }
View Full Code Here


        }

        // ---------------------------------------------------------------
        newGameBoardSize = new ChoiceGroup(T._("Board Size"), Choice.POPUP, boardSizeList, null);
        newGameBoardSize.setSelectedIndex(0, true);
        newGameCustomBoardSize = new TextField(T._("Custom Value"), null, 2, TextField.NUMERIC);
        newGameHandicap = new TextField(T._("Handicap"), "0", 1, TextField.NUMERIC);
        newGameKomi = new TextField(T._("Komi"), "5.5", 8, TextField.DECIMAL);
        newGameRuleSet = new ChoiceGroup(T._("Rule Set"), Choice.POPUP, ruleSetList, null);
        newGameRuleSet.setSelectedIndex(0, true);
        newGameTimeSystem = new ChoiceGroup(T._("Time System"), Choice.POPUP, timeSystemList, null);
        newGameTimeSystem.setSelectedIndex(0, true);
        newGameMainTime = new TextField(T._("Main Time"), "180", 5, TextField.NUMERIC);
        newGameByoYomiTime = new TextField(T._("Byo-Yomi Time"), "30", 5, TextField.NUMERIC);
        newGameByoYomiAttr = new TextField(T._("Byo-Yomi Attr"), "5", 5, TextField.NUMERIC);

        newGameWhitePlayerName = new TextField(T._("White"), T._("White"), 32, TextField.ANY);
        newGameBlackPlayerName = new TextField(T._("Black"), T._("Black"), 32, TextField.ANY);

        newGameForm = new Form(T._("New game"));
        newGameForm.setCommandListener(this);
        newGameForm.addCommand(startCommand);
        newGameForm.addCommand(backCommand);
        newGameForm.append(newGameRuleSet);
        newGameForm.append(newGameBoardSize);
        newGameForm.append(newGameCustomBoardSize);
        newGameForm.append(newGameHandicap);
        newGameForm.append(newGameKomi);
        newGameForm.append(newGameTimeSystem);
        newGameForm.append(newGameMainTime);
        newGameForm.append(newGameByoYomiTime);
        newGameForm.append(newGameByoYomiAttr);
        newGameForm.append(newGameWhitePlayerName);
        newGameForm.append(newGameBlackPlayerName);

        // ---------------------------------------------------------------
        optPlayForm = new Form(T._("Play mode"));
        optPlayForm.setCommandListener(this);
        optPlayForm.addCommand(backCommand);
        optPlaySwitches = new ChoiceGroup(T._("On board"), Choice.MULTIPLE, playOptList, null);
        optPlaySwitches.setSelectedIndex(PLAY_OPT_MOVE_STATUS, true); // default show move status
        optPlayCommentLines = new TextField(T._("Comment lines"), "0", 1, TextField.NUMERIC);
        optPlayForm.append(optPlaySwitches);
        optPlayForm.append(optPlayCommentLines);

        optProbForm = new Form(T._("Problem mode"));
        optProbForm.setCommandListener(this);
        optProbForm.addCommand(backCommand);
        optProbSwitches = new ChoiceGroup(T._("On board"), Choice.MULTIPLE, probOptList, null);
        optProbSwitches.setSelectedIndex(PROB_OPT_COLOR_TO_PLAY, true);
        optProbSwitches.setSelectedIndex(PROB_OPT_SOLVED_FAILED, true);
        optProbCommentLines = new TextField(T._("Comment lines"), "1", 1, TextField.NUMERIC);
        optProbForm.append(optProbSwitches);
        optProbForm.append(optProbCommentLines);

        optGenForm = new Form(T._("General"));
        optGenForm.setCommandListener(this);
        optGenForm.addCommand(backCommand);
        optGenSwitches = new ChoiceGroup(null, Choice.MULTIPLE, genOptList, null);
        optGenSwitches.setSelectedIndex(GEN_OPT_SOUND, true);
        optCommentFontSize = new TextField(T._("Comment font size"), "14", 2, TextField.NUMERIC);
        optGenForm.append(optGenSwitches);
        optGenForm.append(optCommentFontSize);

        optForm = new List(T._("Options"), Choice.IMPLICIT, optGroupList, null);
        optForm.setCommandListener(this);
View Full Code Here

        }
    }

    void createFile() {
        Form creator = new Form(T._("New File"));
        nameInput = new TextField(T._("Enter Name"), null, 256, TextField.ANY);
        typeInput = new ChoiceGroup(T._("Enter File Type"), Choice.EXCLUSIVE,
                typeList, iconList);
        creator.append(nameInput);
        creator.append(typeInput);
        creator.addCommand(newOkCommand);
View Full Code Here

        }

        // ---------------------------------------------------------------
        newGameBoardSize = new ChoiceGroup(T._("Board Size"), Choice.POPUP, boardSizeList, null);
        newGameBoardSize.setSelectedIndex(0, true);
        newGameCustomBoardSize = new TextField(T._("Custom Value"), null, 2, TextField.NUMERIC);
        newGameHandicap = new TextField(T._("Handicap"), "0", 1, TextField.NUMERIC);
        newGameKomi = new TextField(T._("Komi"), "5.5", 8, TextField.DECIMAL);
        newGameRuleSet = new ChoiceGroup(T._("Rule Set"), Choice.POPUP, ruleSetList, null);
        newGameRuleSet.setSelectedIndex(0, true);
        newGameTimeSystem = new ChoiceGroup(T._("Time System"), Choice.POPUP, timeSystemList, null);
        newGameTimeSystem.setSelectedIndex(0, true);
        newGameMainTime = new TextField(T._("Main Time"), "180", 5, TextField.NUMERIC);
        newGameByoYomiTime = new TextField(T._("Byo-Yomi Time"), "30", 5, TextField.NUMERIC);
        newGameByoYomiAttr = new TextField(T._("Byo-Yomi Attr"), "5", 5, TextField.NUMERIC);

        newGameWhitePlayerName = new TextField(T._("White"), T._("White"), 32, TextField.ANY);
        newGameBlackPlayerName = new TextField(T._("Black"), T._("Black"), 32, TextField.ANY);

        newGameForm = new Form(T._("New game"));
        newGameForm.setCommandListener(this);
        newGameForm.addCommand(startCommand);
        newGameForm.addCommand(backCommand);
        newGameForm.append(newGameRuleSet);
        newGameForm.append(newGameBoardSize);
        newGameForm.append(newGameCustomBoardSize);
        newGameForm.append(newGameHandicap);
        newGameForm.append(newGameKomi);
        newGameForm.append(newGameTimeSystem);
        newGameForm.append(newGameMainTime);
        newGameForm.append(newGameByoYomiTime);
        newGameForm.append(newGameByoYomiAttr);
        newGameForm.append(newGameWhitePlayerName);
        newGameForm.append(newGameBlackPlayerName);

        // ---------------------------------------------------------------
        optPlayForm = new Form(T._("Play mode"));
        optPlayForm.setCommandListener(this);
        optPlayForm.addCommand(backCommand);
        optPlaySwitches = new ChoiceGroup(T._("On board"), Choice.MULTIPLE, playOptList, null);
        optPlaySwitches.setSelectedIndex(PLAY_OPT_MOVE_STATUS, true); // default show move status
        optPlayCommentLines = new TextField(T._("Comment lines"), "0", 1, TextField.NUMERIC);
        optPlayForm.append(optPlaySwitches);
        optPlayForm.append(optPlayCommentLines);

        optProbForm = new Form(T._("Problem mode"));
        optProbForm.setCommandListener(this);
        optProbForm.addCommand(backCommand);
        optProbSwitches = new ChoiceGroup(T._("On board"), Choice.MULTIPLE, probOptList, null);
        optProbSwitches.setSelectedIndex(PROB_OPT_COLOR_TO_PLAY, true);
        optProbSwitches.setSelectedIndex(PROB_OPT_SOLVED_FAILED, true);
        optProbCommentLines = new TextField(T._("Comment lines"), "1", 1, TextField.NUMERIC);
        optProbForm.append(optProbSwitches);
        optProbForm.append(optProbCommentLines);

        optGenForm = new Form(T._("General"));
        optGenForm.setCommandListener(this);
        optGenForm.addCommand(backCommand);
        optGenSwitches = new ChoiceGroup(null, Choice.MULTIPLE, genOptList, null);
        optGenSwitches.setSelectedIndex(GEN_OPT_SOUND, true);
        optCommentFontSize = new TextField(T._("Comment font size"), "14", 2, TextField.NUMERIC);
        optGenForm.append(optGenSwitches);
        optGenForm.append(optCommentFontSize);

        optForm = new List(T._("Options"), Choice.IMPLICIT, optGroupList, null);
        optForm.setCommandListener(this);
View Full Code Here

        }

        // ---------------------------------------------------------------
        newGameBoardSize = new ChoiceGroup(T._("Board Size"), Choice.POPUP, boardSizeList, null);
        newGameBoardSize.setSelectedIndex(0, true);
        newGameCustomBoardSize = new TextField(T._("Custom Value"), null, 2, TextField.NUMERIC);
        newGameHandicap = new TextField(T._("Handicap"), "0", 1, TextField.NUMERIC);
        newGameKomi = new TextField(T._("Komi"), "5.5", 8, TextField.DECIMAL);
        newGameRuleSet = new ChoiceGroup(T._("Rule Set"), Choice.POPUP, ruleSetList, null);
        newGameRuleSet.setSelectedIndex(0, true);
        newGameTimeSystem = new ChoiceGroup(T._("Time System"), Choice.POPUP, timeSystemList, null);
        newGameTimeSystem.setSelectedIndex(0, true);
        newGameMainTime = new TextField(T._("Main Time"), "180", 5, TextField.NUMERIC);
        newGameByoYomiTime = new TextField(T._("Byo-Yomi Time"), "30", 5, TextField.NUMERIC);
        newGameByoYomiAttr = new TextField(T._("Byo-Yomi Attr"), "5", 5, TextField.NUMERIC);

        newGameWhitePlayerName = new TextField(T._("White"), T._("White"), 32, TextField.ANY);
        newGameBlackPlayerName = new TextField(T._("Black"), T._("Black"), 32, TextField.ANY);

        newGameForm = new Form(T._("New game"));
        newGameForm.setCommandListener(this);
        newGameForm.addCommand(startCommand);
        newGameForm.addCommand(backCommand);
        newGameForm.append(newGameRuleSet);
        newGameForm.append(newGameBoardSize);
        newGameForm.append(newGameCustomBoardSize);
        newGameForm.append(newGameHandicap);
        newGameForm.append(newGameKomi);
        newGameForm.append(newGameTimeSystem);
        newGameForm.append(newGameMainTime);
        newGameForm.append(newGameByoYomiTime);
        newGameForm.append(newGameByoYomiAttr);
        newGameForm.append(newGameWhitePlayerName);
        newGameForm.append(newGameBlackPlayerName);

        // ---------------------------------------------------------------
        optPlayForm = new Form(T._("Play mode"));
        optPlayForm.setCommandListener(this);
        optPlayForm.addCommand(backCommand);
        optPlaySwitches = new ChoiceGroup(T._("On board"), Choice.MULTIPLE, playOptList, null);
        optPlaySwitches.setSelectedIndex(PLAY_OPT_MOVE_STATUS, true); // default show move status
        optPlayCommentLines = new TextField(T._("Comment lines"), "0", 1, TextField.NUMERIC);
        optPlayForm.append(optPlaySwitches);
        optPlayForm.append(optPlayCommentLines);

        optProbForm = new Form(T._("Problem mode"));
        optProbForm.setCommandListener(this);
        optProbForm.addCommand(backCommand);
        optProbSwitches = new ChoiceGroup(T._("On board"), Choice.MULTIPLE, probOptList, null);
        optProbSwitches.setSelectedIndex(PROB_OPT_COLOR_TO_PLAY, true);
        optProbSwitches.setSelectedIndex(PROB_OPT_SOLVED_FAILED, true);
        optProbCommentLines = new TextField(T._("Comment lines"), "1", 1, TextField.NUMERIC);
        optProbForm.append(optProbSwitches);
        optProbForm.append(optProbCommentLines);

        optGenForm = new Form(T._("General"));
        optGenForm.setCommandListener(this);
        optGenForm.addCommand(backCommand);
        optGenSwitches = new ChoiceGroup(null, Choice.MULTIPLE, genOptList, null);
        optGenSwitches.setSelectedIndex(GEN_OPT_SOUND, true);
        optCommentFontSize = new TextField(T._("Comment font size"), "14", 2, TextField.NUMERIC);
        optGenForm.append(optGenSwitches);
        optGenForm.append(optCommentFontSize);

        optForm = new List(T._("Options"), Choice.IMPLICIT, optGroupList, null);
        optForm.setCommandListener(this);
View Full Code Here

        }
    }

    void createFile() {
        Form creator = new Form(T._("New File"));
        nameInput = new TextField(T._("Enter Name"), null, 256, TextField.ANY);
        typeInput = new ChoiceGroup(T._("Enter File Type"), Choice.EXCLUSIVE,
                typeList, iconList);
        creator.append(nameInput);
        creator.append(typeInput);
        creator.addCommand(newOkCommand);
View Full Code Here

        }
    }

    void createFile() {
        Form creator = new Form(T._("New File"));
        nameInput = new TextField(T._("Enter Name"), null, 256, TextField.ANY);
        typeInput = new ChoiceGroup(T._("Enter File Type"), Choice.EXCLUSIVE,
                typeList, iconList);
        creator.append(nameInput);
        creator.append(typeInput);
        creator.addCommand(newOkCommand);
View Full Code Here

    public LoginView( Display d , Othello c ) {
        _display = d ;
        _controler = c ;

        _form = new Form("Saisir le login et le mot de passe :");
        _fieldLogin = new TextField("Login", "", 5, TextField.ANY) ;
        _fieldPass = new TextField("Pass","", 5,TextField.PASSWORD);
        _form.addCommand(CANCEL);
        _form.addCommand(VALID);
        _form.append( _fieldLogin ) ;
        _form.append( _fieldPass ) ;
View Full Code Here

    // #[regen=yes,id=DCE.0F96E763-C08A-FEF9-50FE-43BA1BC87382]
    // </editor-fold>
    public LoginView (Display disp, OthelloController ctrl){
        super(disp,ctrl);
        this.set_form(new Form("Saisir le login et le mot de passe :"));
        this.set_fieldLogin(new TextField("Login", "", 5, TextField.ANY) );
        this.set_fieldPass(new TextField("Pass","", 5,TextField.PASSWORD));

        this.get_form().addCommand(CANCEL);
        this.get_form().addCommand(VALID);
        this.get_form().append( _fieldLogin ) ;
        this.get_form().append( _fieldPass ) ;
View Full Code Here

  public LogView( Display d , Sudoku c ) {
        _display = d ;
        _controler = c ;

        _form = new Form("Saisir le pseudo");
        _field = new TextField("Pseudo", "", 5, TextField.ANY) ;
        _form.addCommand(CANCEL);
        _form.addCommand(VALID);
        _form.append( _field ) ;

        // prepare wait screen
View Full Code Here

TOP

Related Classes of javax.microedition.lcdui.TextField

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.