Package core

Examples of core.XML_Parser


    if (src == menuBar.accountManager) {
    }

    if (src == menuBar.runAlways) {
      statusLabel.setText("Setting run mode...");
      parser = new XML_Parser(rpc.set_run_mode(RPC.RUN_MODE_ALWAYS).toString());
      if(parser.runMode()) {
        statusLabel.setText(statusLabel.getText()+" done");
      } else {
        statusLabel.setText(statusLabel.getText()+" ERROR!!!");
      }
    }

    if (src == menuBar.runBasedOnPreferences) {
      statusLabel.setText("Setting run mode...");
      parser = new XML_Parser(rpc.set_run_mode(RPC.RUN_MODE_AUTO).toString());
      if(parser.runMode()) {
        statusLabel.setText(statusLabel.getText()+" done");
      } else {
        statusLabel.setText(statusLabel.getText()+" ERROR!!!");
      }
    }

    if (src == menuBar.suspend) {
      statusLabel.setText("Setting run mode...");
      parser = new XML_Parser(rpc.set_run_mode(RPC.RUN_MODE_NEVER).toString());
      if(parser.runMode()) {
        statusLabel.setText(statusLabel.getText()+" done");
      } else {
        statusLabel.setText(statusLabel.getText()+" ERROR!!!");
      }
    }

    if (src == menuBar.networkActivityAlwaysAvailable) {
      statusLabel.setText("Setting network mode...");
      parser = new XML_Parser(rpc.set_network_mode(RPC.NETWORK_MODE_ALWAYS).toString());
      if(parser.networkMode()) {
        statusLabel.setText(statusLabel.getText()+" done");
      } else {
        statusLabel.setText(statusLabel.getText()+" ERROR!!!");
      }
    }

    if (src == menuBar.networkActivityBasedOnPreferences) {
      statusLabel.setText("Setting network mode...");
      parser = new XML_Parser(rpc.set_network_mode(RPC.NETWORK_MODE_AUTO).toString());
      if(parser.networkMode()) {
        statusLabel.setText(statusLabel.getText()+" done");
      } else {
        statusLabel.setText(statusLabel.getText()+" ERROR!!!");
      }
    }

    if (src == menuBar.networkActivitySuspended) {
      statusLabel.setText("Setting network mode...");
      parser = new XML_Parser(rpc.set_network_mode(RPC.NETWORK_MODE_NEVER).toString());
      if(parser.networkMode()) {
        statusLabel.setText(statusLabel.getText()+" done");
      } else {
        statusLabel.setText(statusLabel.getText()+" ERROR!!!");
      }
    }

    if (src == menuBar.options) {
    }

    if (src == menuBar.selectComputer) {
    }

    if (src == menuBar.runCPUBenchmarks) {
      statusLabel.setText("running Benchmarks...");
      parser = new XML_Parser(rpc.run_benchmarks().toString());
      if(parser.benchmark()) {
        statusLabel.setText(statusLabel.getText()+" done");
      } else {
        statusLabel.setText(statusLabel.getText()+" ERROR!!!");
      }
View Full Code Here


    // TODO
  }

  public void runAlways() {
    msg.setText("Setting run mode...");
    parser = new XML_Parser(rpc.set_run_mode(RPC.RUN_MODE_ALWAYS).toString());
    if(parser.runMode()) {
      msg.setText(msg.text()+" done");
    } else {
      msg.setText(msg.text()+" ERROR!!!");
    }
View Full Code Here

    }
  }

  public void runBasedOnPreferences() {
    msg.setText("Setting run mode...");
    parser = new XML_Parser(rpc.set_run_mode(RPC.RUN_MODE_AUTO).toString());
    if(parser.runMode()) {
      msg.setText(msg.text()+" done");
    } else {
      msg.setText(msg.text()+" ERROR!!!");
    }
View Full Code Here

    }
  }

  public void suspend() {
    msg.setText("Setting run mode...");
    parser = new XML_Parser(rpc.set_run_mode(RPC.RUN_MODE_NEVER).toString());
    if(parser.runMode()) {
      msg.setText(msg.text()+" done");
    } else {
      msg.setText(msg.text()+" ERROR!!!");
    }
View Full Code Here

    }
  }

  public void networkAlwaysAvailable() {
    msg.setText("Setting network mode...");
    parser = new XML_Parser(rpc.set_network_mode(RPC.NETWORK_MODE_ALWAYS).toString());
    if(parser.networkMode()) {
      msg.setText(msg.text()+" done");
    } else {
      msg.setText(msg.text()+" ERROR!!!");
    }
View Full Code Here

    }
  }

  public void networkAuto() {
    msg.setText("Setting network mode...");
    parser = new XML_Parser(rpc.set_network_mode(RPC.NETWORK_MODE_AUTO).toString());
    if(parser.networkMode()) {
      msg.setText(msg.text()+" done");
    } else {
      msg.setText(msg.text()+" ERROR!!!");
    }
View Full Code Here

    }
  }

  public void networkSuspend() {
    msg.setText("Setting network mode...");
    parser = new XML_Parser(rpc.set_network_mode(RPC.NETWORK_MODE_NEVER).toString());
    if(parser.networkMode()) {
      msg.setText(msg.text()+" done");
    } else {
      msg.setText(msg.text()+" ERROR!!!");
    }
View Full Code Here

    // TODO
  }

  public void benchark() {
    msg.setText("running Benchmarks...");
    parser = new XML_Parser(rpc.run_benchmarks().toString());
    if(parser.benchmark()) {
      msg.setText(msg.text()+" done");
    } else {
      msg.setText(msg.text()+" ERROR!!!");
    }
View Full Code Here

TOP

Related Classes of core.XML_Parser

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.