1 20 21 package org.jdesktop.jdic.browser; 22 23 import java.util.EventObject ; 24 25 43 public class WebBrowserEvent extends EventObject  44 { 45 private static final int WEBBROWSER_FIRST = 3000; 46 50 static final int WEBBROWSER_BEFORE_NAVIGATE 51 = 1 + WEBBROWSER_FIRST; 52 53 56 static final int WEBBROWSER_BEFORE_NEWWINDOW 57 = 2 + WEBBROWSER_FIRST; 58 59 62 public static final int WEBBROWSER_DOWNLOAD_STARTED 63 = 3 + WEBBROWSER_FIRST; 64 65 70 public static final int WEBBROWSER_DOWNLOAD_COMPLETED 71 = 4 + WEBBROWSER_FIRST; 72 73 77 public static final int WEBBROWSER_DOWNLOAD_PROGRESS 78 = 5 + WEBBROWSER_FIRST; 79 80 83 public static final int WEBBROWSER_DOWNLOAD_ERROR 84 = 6 + WEBBROWSER_FIRST; 85 86 91 public static final int WEBBROWSER_DOCUMENT_COMPLETED 92 = 7 + WEBBROWSER_FIRST; 93 94 98 static final int WEBBROWSER_RETURN_URL 99 = 21 + WEBBROWSER_FIRST; 100 101 104 static final int WEBBROWSER_COMMAND_STATE_CHANGE 105 = 22 + WEBBROWSER_FIRST; 106 109 public static final int WEBBROWSER_TITLE_CHANGE 110 = 23 + WEBBROWSER_FIRST; 111 114 public static final int WEBBROWSER_STATUSTEXT_CHANGE 115 = 24 + WEBBROWSER_FIRST; 116 117 120 static final int WEBBROWSER_INIT_FAILED 121 = 41 + WEBBROWSER_FIRST; 122 125 static final int WEBBROWSER_INIT_WINDOW_SUCC 126 = 42 + WEBBROWSER_FIRST; 127 130 static final int WEBBROWSER_FOCUS_REQUEST 131 = 43 + WEBBROWSER_FIRST; 132 133 136 static final int WEBBROWSER_DESTROYWINDOW_SUCC 137 = 44 + WEBBROWSER_FIRST; 138 139 143 static final int WEBBROWSER_GETCONTENT 144 = 61 + WEBBROWSER_FIRST; 145 149 static final int WEBBROWSER_SETCONTENT 150 = 62 + WEBBROWSER_FIRST; 151 155 static final int WEBBROWSER_EXECUTESCRIPT 156 = 63 + WEBBROWSER_FIRST; 157 158 161 int id; 162 165 String data; 166 167 173 public WebBrowserEvent(WebBrowser source, int id) { 174 this(source, id, null); 175 } 176 177 185 public WebBrowserEvent(WebBrowser source, int id, String data) { 186 super(source); 187 this.id = id; 188 this.data = data; 189 } 190 191 194 public int getID() { 195 return id; 196 } 197 198 201 public String getData() { 202 return data; 203 } 204 }
| Popular Tags
|