Changeset 5320


Ignore:
Timestamp:
2003-08-28T12:40:22+12:00 (21 years ago)
Author:
jmt12
Message:

Disabled bookmark button. Maybe someday in the future someone would like to restore it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/BrowsingPane.java

    r4675 r5320  
    9090    refresh_button.setToolTipText(get("Reload"));
    9191    bookmarks_button = new JButton("", Utility.getImage("bookmark.gif"));
     92    bookmarks_button.setEnabled(false);
    9293    bookmarks_button.setToolTipText(get("Bookmarks"));
    9394    home_button = new JButton("", Utility.getImage("home.gif"));
     
    337338    private class Observer
    338339    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
    339348    public void linkActivatedUpdate(CalHTMLPane pane, URL url, String target_frame, String j_name) {
     349        ///ystem.err.println("Link clicked: " + url.toString());
    340350        address_field.setText(url.toString());
    341351        back_count++;
    342352        validateControls();
    343353    }
     354
    344355    public void linkFocusUpdate(CalHTMLPane pane, URL url) {
    345                 ///ystem.err.println("Link in focus " + url.toString());
     356        ///ystem.err.println("Link in focus " + url.toString());
    346357        args = new String[1];
    347358        args[0] = url.toString();
     
    351362    public void statusUpdate(CalHTMLPane pane, int state, URL url, int value, String message) {
    352363        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:
    354375        // Can only stop if somethings happening.
    355376        stop_button.setEnabled(true);
     
    359380        args = null;
    360381        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:
    362397        // All done.
    363398        stop_button.setEnabled(false);
     
    370405        Gatherer.g_man.mirror_pane.setURL(url.toString());
    371406        break;
    372         case 74:
    373         address_field.setText(url.toString());
    374         default:
    375         ///ystem.err.println(state + ": " + url + " \"" + message + "\"");
    376407        }
    377408    }
Note: See TracChangeset for help on using the changeset viewer.