1 18 19 package org.apache.batik.script; 20 21 import org.apache.batik.bridge.BridgeContext; 22 import org.w3c.dom.Document ; 23 import org.w3c.dom.Node ; 24 25 32 public interface Window { 33 39 Object setInterval(String script, long interval); 40 41 48 Object setInterval(Runnable r, long interval); 49 50 53 void clearInterval(Object interval); 54 55 61 Object setTimeout(String script, long timeout); 62 63 69 Object setTimeout(Runnable r, long timeout); 70 71 74 void clearTimeout(Object timeout); 75 76 81 Node parseXML(String text, Document doc); 82 83 88 void getURL(String uri, URLResponseHandler h); 89 90 96 void getURL(String uri, URLResponseHandler h, String enc); 97 98 104 void postURL(String uri, String content, URLResponseHandler h); 105 106 113 void postURL(String uri, String content, URLResponseHandler h, 114 String mimeType); 115 116 125 void postURL(String uri, String content, URLResponseHandler h, 126 String mimeType, String enc); 127 128 129 132 public interface URLResponseHandler { 133 134 140 void getURLDone(boolean success, String mime, String content); 141 } 142 143 147 148 149 152 void alert(String message); 153 154 157 boolean confirm(String message); 158 159 163 String prompt(String message); 164 165 169 String prompt(String message, String defVal); 170 171 175 BridgeContext getBridgeContext(); 176 177 180 Interpreter getInterpreter(); 181 } 182 | Popular Tags |