net.livesite.jfile
Class UploadAction

java.lang.Object
  extended by net.livesite.jfile.UploadAction
All Implemented Interfaces:
ActionListener, EventListener

public class UploadAction
extends Object
implements ActionListener


Constructor Summary
UploadAction(JFileChooser chooser, JFileApplet applet, String postUrl, String postArgs)
          Constructs a new UploadAction.
 
Method Summary
 void actionPerformed(ActionEvent event)
          We handle the cases when the user clicks "Upload", and when the upload is complete.
 void setReplaceFiles(boolean replaceFiles)
          Property which controls whether the server will replace existing files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UploadAction

public UploadAction(JFileChooser chooser,
                    JFileApplet applet,
                    String postUrl,
                    String postArgs)
Constructs a new UploadAction.

Parameters:
chooser - JFileChooser selected files
applet - JFileApplet the applet
postUrl - String where we post the data
postArgs - String additional parameters for posting
Method Detail

setReplaceFiles

public void setReplaceFiles(boolean replaceFiles)
Property which controls whether the server will replace existing files.

Parameters:
replaceFiles - boolean

actionPerformed

public void actionPerformed(ActionEvent event)
We handle the cases when the user clicks "Upload", and when the upload is complete.

Specified by:
actionPerformed in interface ActionListener
Parameters:
event - ActionEvent