au.edu.jcu.hermes.core.transfer
Class ProgressModel

java.lang.Object
  extended by au.edu.jcu.hermes.util.ListenerContainer
      extended by au.edu.jcu.hermes.core.transfer.ProgressModel
All Implemented Interfaces:
IProgressModel, IEventDispatcher

public class ProgressModel
extends ListenerContainer
implements IProgressModel

Author: Mathew Wyatt Organisation: James Cook University Date: Sep 24, 2007 Time: 11:18:16 AM


Constructor Summary
ProgressModel(ObjectCopyBean objectCopyBean, java.util.concurrent.ExecutorService exeService, IEventShower eventShower)
           
 
Method Summary
 void addProgessListener(java.awt.event.ActionListener actionListener)
          Listner which listens for updates of the transfer process
 void addTransferFailedlistener(java.awt.event.ActionListener actionListener)
          Listens for a failure event
 void cancelTransfer()
          Cancels the current transfer
 java.lang.String getFailureMessage()
          Returns the failure message - stacktrace
 ObjectCopyBean getObjectCopyBean()
           
 ProgressBean getProgress()
          Hold details about the progress of a transfer
 void invokeProgressListeners()
           
 void startTransfer()
          Start the transfer
 
Methods inherited from class au.edu.jcu.hermes.util.ListenerContainer
addListener, invoke, invoke, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressModel

public ProgressModel(ObjectCopyBean objectCopyBean,
                     java.util.concurrent.ExecutorService exeService,
                     IEventShower eventShower)
Method Detail

startTransfer

public void startTransfer()
Description copied from interface: IProgressModel
Start the transfer

Specified by:
startTransfer in interface IProgressModel

addTransferFailedlistener

public void addTransferFailedlistener(java.awt.event.ActionListener actionListener)
Description copied from interface: IProgressModel
Listens for a failure event

Specified by:
addTransferFailedlistener in interface IProgressModel

getFailureMessage

public java.lang.String getFailureMessage()
Description copied from interface: IProgressModel
Returns the failure message - stacktrace

Specified by:
getFailureMessage in interface IProgressModel
Returns:

cancelTransfer

public void cancelTransfer()
Description copied from interface: IProgressModel
Cancels the current transfer

Specified by:
cancelTransfer in interface IProgressModel

getObjectCopyBean

public ObjectCopyBean getObjectCopyBean()
Specified by:
getObjectCopyBean in interface IProgressModel
Returns:

addProgessListener

public void addProgessListener(java.awt.event.ActionListener actionListener)
Description copied from interface: IProgressModel
Listner which listens for updates of the transfer process

Specified by:
addProgessListener in interface IProgressModel

getProgress

public ProgressBean getProgress()
Description copied from interface: IProgressModel
Hold details about the progress of a transfer

Specified by:
getProgress in interface IProgressModel
Returns:

invokeProgressListeners

public void invokeProgressListeners()