Changeset 5320
- Timestamp:
- 2003-08-28T12:40:22+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/BrowsingPane.java
r4675 r5320 90 90 refresh_button.setToolTipText(get("Reload")); 91 91 bookmarks_button = new JButton("", Utility.getImage("bookmark.gif")); 92 bookmarks_button.setEnabled(false); 92 93 bookmarks_button.setToolTipText(get("Bookmarks")); 93 94 home_button = new JButton("", Utility.getImage("home.gif")); … … 337 338 private class Observer 338 339 extends DefaultCalHTMLObserver { 340 341 /** Notification that a form submission has been initiated. */ 342 public void formSubmitUpdate(CalHTMLPane pane, URL docBaseURL, int method, String action, String data) { 343 ///ystem.err.println("Form submitted:" + docBaseURL.toString()); 344 ///ystem.err.println("Data: " + data); 345 } 346 347 339 348 public void linkActivatedUpdate(CalHTMLPane pane, URL url, String target_frame, String j_name) { 349 ///ystem.err.println("Link clicked: " + url.toString()); 340 350 address_field.setText(url.toString()); 341 351 back_count++; 342 352 validateControls(); 343 353 } 354 344 355 public void linkFocusUpdate(CalHTMLPane pane, URL url) { 345 356 ///ystem.err.println("Link in focus " + url.toString()); 346 357 args = new String[1]; 347 358 args[0] = url.toString(); … … 351 362 public void statusUpdate(CalHTMLPane pane, int state, URL url, int value, String message) { 352 363 switch(state) { 353 case 11: 364 // The Pane is attempting to connect to the given URL to receive data. 365 case CalCons.PRE_CONNECT: 366 ///ystem.err.println("Preconnect: " + url.toString()); 367 break; 368 // The Pane was unable to connect to the given URL or was unable to parse the content. Most likely this will be due to an incorrectly specified URL. The message argument may contain further details of the reason for failure. 369 case CalCons.PARSE_FAILED: 370 ///ystem.err.println("Parse Failed: " + url.toString()); 371 ///ystem.err.println("Message: " + message); 372 break; 373 // The Pane has established a connection to the given URL and is receiving any content. 374 case CalCons.CONNECTED: 354 375 // Can only stop if somethings happening. 355 376 stop_button.setEnabled(true); … … 359 380 args = null; 360 381 break; 361 case 14: 382 // The size of the content at the given URL is known and is contained in the value argument. 383 case CalCons.DOC_LENGTH: 384 break; 385 // The title of the document for the given URL is known and is contained in the message argument. Only the title of a document in the Pane's top level frame will be sent to this method. If the document has no name, the message will be null, unless the document is a Frameset document in which case the message "Frameset" will be sent. 386 case CalCons.TITLE: 387 break; 388 // An exception has been thrown during parsing of the data from the URL. This will most likely be an IOException such as a server time-out. 389 case CalCons.PARSE_FAILED_POST_CONNECT: 390 ///ystem.err.println("Parse Failed Post Connect: " + url.toString()); 391 break; 392 // The document has been parsed but formatting cannot be completed because the document contains images of unspecified size. The parsing thread is waiting for image updates to give it the information it needs to format and display the document. 393 case CalCons.WAITING_FOR_IMAGES: 394 break; 395 // All text and image data has been received, parsed and the document structure determined. 396 case CalCons.DOC_LOADED: 362 397 // All done. 363 398 stop_button.setEnabled(false); … … 370 405 Gatherer.g_man.mirror_pane.setURL(url.toString()); 371 406 break; 372 case 74:373 address_field.setText(url.toString());374 default:375 ///ystem.err.println(state + ": " + url + " \"" + message + "\"");376 407 } 377 408 }
Note:
See TracChangeset
for help on using the changeset viewer.