com.pepper.guiutils.browser
Class ProgressChangeEventParam

java.lang.Object
  extended by com.pepper.guiutils.browser.ProgressChangeEventParam

public class ProgressChangeEventParam
extends Object

Class containing information about the progress of a request. Based on the ProgressListener interface in JRex, but adapted to support a generic progress event instead of JRex-specific events.


Constructor Summary
ProgressChangeEventParam(int curSelfProgress, int maxSelfProgress, int curTotalProgress, int maxTotalProgress)
          ProgressChangeEventParam constructor
 
Method Summary
 int getCurrentSelfProgress()
          Returns the current progress for request.
 int getCurrentTotalProgress()
          Returns the current progress for all the requests
 int getMaximumSelfProgress()
          Returns the maximum progress for request
 int getMaximumTotalProgress()
          Returns the total progress for all the requests being monitored.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProgressChangeEventParam

public ProgressChangeEventParam(int curSelfProgress,
                                int maxSelfProgress,
                                int curTotalProgress,
                                int maxTotalProgress)
ProgressChangeEventParam constructor

Parameters:
curSelfProgress - The current progress for request.
maxSelfProgress - The maximum progress for request. If this value is not known then -1 is passed.
curTotalProgress - The current progress for all the requests being monitored.
maxTotalProgress - The total progress for all the requests being monitored. If this value is not known then -1 is passed.
Method Detail

getCurrentSelfProgress

public int getCurrentSelfProgress()
Returns the current progress for request.


getMaximumSelfProgress

public int getMaximumSelfProgress()
Returns the maximum progress for request


getCurrentTotalProgress

public int getCurrentTotalProgress()
Returns the current progress for all the requests


getMaximumTotalProgress

public int getMaximumTotalProgress()
Returns the total progress for all the requests being monitored.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2007 Pepper Computer, Inc. All Rights Reserved.