qdown.quickDownloader.systemControl
Class NewDownloadControl

java.lang.Object
  extended byqdown.quickDownloader.systemControl.NewDownloadControl

public class NewDownloadControl
extends java.lang.Object

The New Download GUI Constrol Class


Constructor Summary
NewDownloadControl()
           
 
Method Summary
 boolean getApplicationStopStatus()
          Gets the application stop Status
 javax.swing.JTextField getNewDownloadStatus()
          Fetches the status bar
 long getPauseDuration()
          Gets the duration of the pause
 boolean getPauseStatus()
          Gets the application pause Status
 javax.swing.JProgressBar getProgressBar()
          Fetches the progress bar
 void pauseApplication()
          Sets the application state to pause
 void resumeApplication()
          Sets the application state to Resume
 void setNewDownloadStatus(javax.swing.JTextField statusField)
          Sets the new Download Status Bar
 void setProgressBar(javax.swing.JProgressBar bar)
          Sets The progress bar
 void stopApplication()
          Sets the application state to Stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewDownloadControl

public NewDownloadControl()
Method Detail

setProgressBar

public void setProgressBar(javax.swing.JProgressBar bar)
Sets The progress bar

Parameters:
bar - The progress bar

getProgressBar

public javax.swing.JProgressBar getProgressBar()
Fetches the progress bar

Returns:
the progress bar

setNewDownloadStatus

public void setNewDownloadStatus(javax.swing.JTextField statusField)
Sets the new Download Status Bar

Parameters:
statusField - The statusfield to set

getNewDownloadStatus

public javax.swing.JTextField getNewDownloadStatus()
Fetches the status bar

Returns:
the status bar

pauseApplication

public void pauseApplication()
Sets the application state to pause


resumeApplication

public void resumeApplication()
Sets the application state to Resume


stopApplication

public void stopApplication()
Sets the application state to Stop


getApplicationStopStatus

public boolean getApplicationStopStatus()
Gets the application stop Status

Returns:
stop status

getPauseStatus

public boolean getPauseStatus()
Gets the application pause Status

Returns:
pause status

getPauseDuration

public long getPauseDuration()
Gets the duration of the pause

Returns:
duration of the pause