com.ptc.wvs.client.pview
Class PViewGetFile

java.lang.Object
  extended bycom.ptc.wvs.client.pview.PViewGetFile
All Implemented Interfaces:
Runnable

public class PViewGetFile
extends Object
implements Runnable

Copies a file referenced via a url, and stores the results in the PViewCache. The viewer is then messaged to inform it that the file has arrived. Progress bars will be displayed and updated to indicate the state of the transfer.



Supported API: false

Extendable: false


Field Summary
private  PViewCache cache
           
private  boolean canCancelActive
           
private  boolean debug
           
private  String extension
           
private  String fileUrl
           
private  String name
           
private  PViewPanel panel
           
private  long visualID
           
 
Constructor Summary
PViewGetFile(PViewCache cache, PViewPanel pviewPanel, String fileUrl, String extension, long visualID)
          Create the class with the parameters that will run to access the data.
 
Method Summary
 void run()
          Starts the transfer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

panel

private PViewPanel panel

cache

private PViewCache cache

fileUrl

private String fileUrl

extension

private String extension

name

private String name

visualID

private long visualID

debug

private boolean debug

canCancelActive

private boolean canCancelActive
Constructor Detail

PViewGetFile

public PViewGetFile(PViewCache cache,
                    PViewPanel pviewPanel,
                    String fileUrl,
                    String extension,
                    long visualID)
Create the class with the parameters that will run to access the data.

Parameters:
cache - the cache used by the viewers
pviewPanel - the viewer panel which references this canvas
fileUrl - the url to the file
extension - the extension to the filename held in the cache
visualID - the identifier to the node whose data is being accessed
Method Detail

run

public void run()
Starts the transfer

Specified by:
run in interface Runnable