private Window window = null;
// Genuinely global variables
- public PrintStream dtxt = null;
- private int uploadcounter = 0;
+ private PrintStream dtxt = null;
+ public int uploadcounter = 0;
// UI objects which are enabled/disabled, cleared/set, created/destroyed,
// etc., for each upload
* error and error_html may be called from any thread
*/
- private void error(final String msg) {
+ public void error(final String msg) {
try {
new UIX() { public void body() {
resultSummary.setText("failed");
}
}
- private void error_html(final String msg, String html) {
+ public void error_html(final String msg, String html) {
Pattern body = Pattern.compile("<body>(.*)</body>",
Pattern.DOTALL | Pattern.CASE_INSENSITIVE);
Matcher m = body.matcher(html);
error(whole_msg);
}
- private void progressNote(final String s_in) throws Exception {
+ public void progressNote(final String s_in) throws Exception {
new UIA() { public void body() {
String arb = null;
arb = arbitrageResult.getText();
progmon.setNote(s);
}}.exec("progressNote "+s_in);
}
- private void setProgress(final int nv) throws Exception {
+ public void setProgress(final int nv) throws Exception {
new UIA() { public void body() {
progmon.setProgress(nv);
}}.exec("setProgress "+nv);
}
- private boolean checkCancelled() throws Exception {
+ public boolean checkCancelled() throws Exception {
return new UIXR<Boolean>() { public Boolean bodyr() {
boolean can = progmon.isCanceled();
if (can) resultSummary.setText("cancelled");