Package javax.microedition.lcdui

Examples of javax.microedition.lcdui.Alert


    private Alert getSendMsgFailedAlert()
    {
        if(sendMsgFailedAlert == null)
        {
            sendMsgFailedAlert = new Alert("Sending Failed");
            sendMsgFailedAlert.setString("Unable to send message.");
            sendMsgFailedAlert.setTimeout(2000);
        }
        return sendMsgFailedAlert;
    }
View Full Code Here


                    os.close();
                    //#ifdef debug
                    System.out.println("DONE");
                    //#endif

                    Alert a = new Alert(T._("Save"), T._("Done"), null, AlertType.INFO);
                    display.setCurrent(a, gobanCanvas);
                } catch (Exception e) {
                    onError(T._("Save"), e);
                }
            }
View Full Code Here

        //#endif
        onError(title, e.toString());
    }

    private void onError(String title, String text) {
        Alert a = new Alert(title, text, null, AlertType.ERROR);
        a.setTimeout(Alert.FOREVER);
        display.setCurrent(a, gobanCanvas);
        //game.board.print();
    }
View Full Code Here

    public void igMenuNextProblem() {
        if (probEnum != null) {
            if (probEnum.hasMoreElements())
                setProblem(probEnum.nextElement());
            else {
                Alert alert = new Alert(T._("Problem solving"),
                        T._("End of enumeration, start with new filter."),
                        null, AlertType.INFO);
                display.setCurrent(alert, menuScreen.getProblemFilterForm());
            }
        }
View Full Code Here

    public void igMenuPrevProblem() {
        if (probEnum != null) {
            if (probEnum.current() > 0)
                setProblem(probEnum.prevElement());
            else {
                Alert alert = new Alert(T._("Problem solving"),
                        T._("Start of enumeration reached."),
                        null, AlertType.INFO);
                display.setCurrent(alert);
            }
        }
View Full Code Here

    public void timeSystemShortOnTime(boolean isBlack, int millisLeft) {
        snd.playShortOnTime();
    }

    public void timeSystemTimeout(boolean isBlack) {
        Alert a = new Alert(T._("Game timer"), (isBlack ? T._("Black") : T._("White")) + T._(" timeout!"), null, AlertType.INFO);
        a.setTimeout(Alert.FOREVER);
        display.setCurrent(a, gobanCanvas);
    }
View Full Code Here

                    os.close();
                    //#ifdef debug
                    System.out.println("DONE");
                    //#endif

                    Alert a = new Alert(T._("Save"), T._("Done"), null, AlertType.INFO);
                    display.setCurrent(a, gobanCanvas);
                } catch (Exception e) {
                    onError(T._("Save"), e);
                }
            }
View Full Code Here

        //#endif
        onError(title, e.toString());
    }

    private void onError(String title, String text) {
        Alert a = new Alert(title, text, null, AlertType.ERROR);
        a.setTimeout(Alert.FOREVER);
        display.setCurrent(a, gobanCanvas);
        //game.board.print();
    }
View Full Code Here

    public void igMenuNextProblem() {
        if (probEnum != null) {
            if (probEnum.hasMoreElements())
                setProblem(probEnum.nextElement());
            else {
                Alert alert = new Alert(T._("Problem solving"),
                        T._("End of enumeration, start with new filter."),
                        null, AlertType.INFO);
                display.setCurrent(alert, menuScreen.getProblemFilterForm());
            }
        }
View Full Code Here

    public void igMenuPrevProblem() {
        if (probEnum != null) {
            if (probEnum.current() > 0)
                setProblem(probEnum.prevElement());
            else {
                Alert alert = new Alert(T._("Problem solving"),
                        T._("Start of enumeration reached."),
                        null, AlertType.INFO);
                display.setCurrent(alert);
            }
        }
View Full Code Here

TOP

Related Classes of javax.microedition.lcdui.Alert

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.