Package abstrasy.consoleui

Examples of abstrasy.consoleui.OutputTextArea


    public final static void LogTitle(String str) {
        if (debugMode) {
            System.out.println("### " + str);
            Interpreter interpreter = Interpreter.mySelf();
            if (interpreter != null) {
                OutputTextArea logArea = interpreter.getLogTextArea();
                if (logArea != null) {
                    try{
                        logArea.write("### " + str + "\n");
                    }
                    catch(Exception e){e.printStackTrace();}
                }
            }
        }
View Full Code Here


    public final static void Log(String str) {
        if (debugMode) {
            System.out.println("  # " + str);
            Interpreter interpreter = Interpreter.mySelf();
            if (interpreter != null) {
                OutputTextArea logArea = interpreter.getLogTextArea();
                if (logArea != null) {
                    try{
                        logArea.write("  # " + str + "\n");
                    }
                    catch(Exception e){e.printStackTrace();}
                }
            }
        }
View Full Code Here

    public final static void LogAlways(String str) {
        System.out.println("  > " + str);
        Interpreter interpreter = Interpreter.mySelf();
        if (interpreter != null) {
            OutputTextArea logArea = interpreter.getLogTextArea();
            if (logArea != null) {
                try{
                    logArea.write("  # " + str + "\n");
                }
                catch(Exception e){e.printStackTrace();}
            }
        }
    }
View Full Code Here

   * @throws Exception
   * @todo Implémenter cette méthode abstrasy.PCFx
   */
  public Node eval(Node startAt) throws Exception {
    startAt.isGoodArgsCnt(1,2);
    OutputTextArea out = Interpreter.mySelf().getOutputTextArea();
     if(out!=null){
         if(startAt.size()==2){
         String x = (Node.node2VString(startAt.getSubNode(1, Node.VTYPE_VALUABLE))).getString();
            out.clr(x);
            if(!System.getProperty("os.name").toLowerCase().startsWith("windows")){
                byte[] esc=new byte[]{
                           27,91,50,74, // <esc>[2J
                           27,91,72     // <esc>[H
                                };
                System.out.write(esc);
            }
            System.out.print(x);
         }
         else{
            if(!System.getProperty("os.name").toLowerCase().startsWith("windows")){
                byte[] esc=new byte[]{
                           27,91,50,74, // <esc>[2J
                           27,91,72     // <esc>[H
                                };
                System.out.write(esc);
            }
            out.clr();
         }
     }
    return null;
  }
View Full Code Here

     * @throws Exception
     * @todo Implémenter cette méthode abstrasy.PCFx
     */
    public Node eval(Node startAt) throws Exception {
        int i = 1;
        OutputTextArea out = Interpreter.mySelf().getOutputTextArea();
        while (i < startAt.size()) {
            String x = (Node.node2VString(startAt.getSubNode(i++, Node.VTYPE_VALUABLE))).getString();
            System.out.print(x);
            if (out != null) {
                out.write(x);
            }
        }
        return null;
    }
View Full Code Here

     * @throws Exception
     * @todo Implémenter cette méthode abstrasy.PCFx
     */
    public Node eval(Node startAt) throws Exception {
        int i = 1;
        OutputTextArea out = Interpreter.mySelf().getOutputTextArea();
        while (i < startAt.size()) {
            String x = Node.node2VString(startAt.getSubNode(i++, Node.VTYPE_VALUABLE)).getString();
            System.out.print(x);
            if (out != null) {
                out.write(x);
            }
        }
        System.out.println();
        if (out != null) {
            out.write("\n");
        }

        return null;

    }
View Full Code Here

     * @throws Exception
     * @todo Implémenter cette méthode abstrasy.PCFx
     */
    public Node eval(Node startAt) throws Exception {
        String read = null;
        OutputTextArea out = Interpreter.mySelf().getOutputTextArea();
        if (out != null) {
            // OutputConsole...
            int i = 1;
            while (i < startAt.size()) {
                String x = Node.node2VString(startAt.getSubNode(i++, Node.VTYPE_VALUABLE)).getString();
                System.out.print(x);
                if (out != null) {
                    out.write(x);
                }
            }
            while (read == null) {
                try {
                    read = out.readln(startAt);
                }
                catch (Exception ex) {
                    read = null;
                    if (Interpreter.isDebugMode()) {
                        ex.printStackTrace();
View Full Code Here

TOP

Related Classes of abstrasy.consoleui.OutputTextArea

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.