Added processing of "END_DOCUMENT_LOAD" and MouseExited events.
git-svn-id: svn://10.0.0.236/trunk@71306 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user