Added processing of "END_DOCUMENT_LOAD" and MouseExited events.

This commit is contained in:
edburns%acm.org 2000-06-01 23:42:35 +00:00
Родитель faea4ed119
Коммит 8605f7ca5a
1 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -50,7 +50,7 @@ import org.mozilla.util.Assert;
* This is a test application for using the BrowserControl.
*
* @version $Id: EMWindow.java,v 1.8 2000/06/01 23:10:33 edburns%acm.org Exp $
* @version $Id: EMWindow.java,v 1.9 2000/06/01 23:42:35 edburns%acm.org Exp $
*
* @see org.mozilla.webclient.BrowserControlFactory
@ -474,14 +474,18 @@ public void dialogCancelled(Dialog d) {
public void eventDispatched(WebclientEvent event)
{
if (event instanceof DocumentLoadEvent) {
String currentURL;
switch ((int) event.getType()) {
case ((int) DocumentLoadEvent.START_DOCUMENT_LOAD_EVENT_MASK):
String currentURL = (String) event.getEventData();
currentURL = (String) event.getEventData();
System.out.println("debug: edburns: Currently Viewing: " +
currentURL);
statusLabel.setText("Starting to load " + currentURL);
urlField.setText(currentURL);
break;
case ((int) DocumentLoadEvent.END_DOCUMENT_LOAD_EVENT_MASK):
statusLabel.setText("Done.");
break;
}
}
}
@ -515,6 +519,7 @@ public void mouseEntered(java.awt.event.MouseEvent e)
public void mouseExited(java.awt.event.MouseEvent e)
{
statusLabel.setText("");
System.out.println("mouseExited");
}