Xj3D VRML/X3D Code API

org.web3d.browser
Class DownloadProgressListener

java.lang.Object
  extended byorg.web3d.browser.DownloadProgressListener
All Implemented Interfaces:
org.ietf.uri.event.ProgressListener

public class DownloadProgressListener
extends java.lang.Object
implements org.ietf.uri.event.ProgressListener

An implemenetion of the URI progress listener for putting messages to various parts of the screen.

Version:
$Revision: 1.1 $
Author:
Justin Couch

Constructor Summary
DownloadProgressListener(javax.swing.JLabel status, ErrorReporter rep)
          Create a new listener that puts information in these diferent places.
 
Method Summary
 void connectionEstablished(org.ietf.uri.event.ProgressEvent evt)
          A connection to the resource has been established.
 void downloadEnded(org.ietf.uri.event.ProgressEvent evt)
          The download has ended.
 void downloadError(org.ietf.uri.event.ProgressEvent evt)
          An error has occurred during the download.
 void downloadStarted(org.ietf.uri.event.ProgressEvent evt)
          The download has started.
 void downloadUpdate(org.ietf.uri.event.ProgressEvent evt)
          The download has updated its status.
 void handshakeInProgress(org.ietf.uri.event.ProgressEvent evt)
          The header information reading and handshaking is taking place.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownloadProgressListener

public DownloadProgressListener(javax.swing.JLabel status,
                                ErrorReporter rep)
Create a new listener that puts information in these diferent places. Assumes that both references are non-null.

Parameters:
status - The status label to write to
rep - The place for error messages
Method Detail

connectionEstablished

public void connectionEstablished(org.ietf.uri.event.ProgressEvent evt)
A connection to the resource has been established. At this point, no data has yet been downloaded.

Specified by:
connectionEstablished in interface org.ietf.uri.event.ProgressListener
Parameters:
evt - The event that caused this method to be called.

handshakeInProgress

public void handshakeInProgress(org.ietf.uri.event.ProgressEvent evt)
The header information reading and handshaking is taking place. Reading and intepreting of the data (a download started event) should commence shortly. When that begins, you will be given the appropriate event.

Specified by:
handshakeInProgress in interface org.ietf.uri.event.ProgressListener
Parameters:
evt - The event that caused this method to be called.

downloadStarted

public void downloadStarted(org.ietf.uri.event.ProgressEvent evt)
The download has started.

Specified by:
downloadStarted in interface org.ietf.uri.event.ProgressListener
Parameters:
evt - The event that caused this method to be called.

downloadUpdate

public void downloadUpdate(org.ietf.uri.event.ProgressEvent evt)
The download has updated its status.

Specified by:
downloadUpdate in interface org.ietf.uri.event.ProgressListener
Parameters:
evt - The event that caused this method to be called.

downloadEnded

public void downloadEnded(org.ietf.uri.event.ProgressEvent evt)
The download has ended.

Specified by:
downloadEnded in interface org.ietf.uri.event.ProgressListener
Parameters:
evt - The event that caused this method to be called.

downloadError

public void downloadError(org.ietf.uri.event.ProgressEvent evt)
An error has occurred during the download.

Specified by:
downloadError in interface org.ietf.uri.event.ProgressListener
Parameters:
evt - The event that caused this method to be called.

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium