ch.braincell.stickbackup.gui
Class BackupController

java.lang.Object
  extended by ch.braincell.stickbackup.gui.BackupController
All Implemented Interfaces:
ProcessListener

public class BackupController
extends java.lang.Object
implements ProcessListener


Nested Class Summary
 class BackupController.PrepareBackupRunnable
           
 class BackupController.ProcessBackupRunnable
           
 class BackupController.ProcessProgressBar
           
 
Field Summary
protected  boolean backupFinished
           
protected  boolean backupPrepared
           
protected  java.lang.Thread backupThread
           
protected  Config config
           
protected  MainJFrame frame
           
protected  BackupTask tasks
           
 
Constructor Summary
BackupController(MainJFrame frame)
           
 
Method Summary
 void onCancel()
           
 void onContinue()
           
 void onException(java.lang.Throwable exception)
          Will be used if an exception happens.
 void onInit()
           
 void onProcess(Process process, java.io.File... files)
          Indicates on which files the process is working on.
protected  void prepareBackup()
           
protected  void processBackup()
           
 void resetBackup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frame

protected MainJFrame frame

tasks

protected BackupTask tasks

backupThread

protected java.lang.Thread backupThread

backupPrepared

protected volatile boolean backupPrepared

backupFinished

protected volatile boolean backupFinished

config

protected Config config
Constructor Detail

BackupController

public BackupController(MainJFrame frame)
Method Detail

onInit

public void onInit()

onCancel

public void onCancel()

onContinue

public void onContinue()

resetBackup

public void resetBackup()

prepareBackup

protected void prepareBackup()

processBackup

protected void processBackup()

onException

public void onException(java.lang.Throwable exception)
Description copied from interface: ProcessListener
Will be used if an exception happens.

Specified by:
onException in interface ProcessListener
Parameters:
exception - exception be thrown.

onProcess

public void onProcess(Process process,
                      java.io.File... files)
Description copied from interface: ProcessListener
Indicates on which files the process is working on.

Specified by:
onProcess in interface ProcessListener
Parameters:
process - process state.
files - files working on in the process. These are up to two files: depending on the process it is source and destination / source / destination.


Copyright © 2007. All Rights Reserved.