dog.util
Class StatusEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--dog.util.StatusEvent
All Implemented Interfaces:
java.io.Serializable

public class StatusEvent
extends java.util.EventObject

A status message.

See Also:
Serialized Form

Field Summary
protected  int maximum
           
protected  int minimum
           
protected  java.lang.String operation
           
static int OPERATION_END
           
static int OPERATION_START
           
static int OPERATION_UPDATE
           
protected  int type
           
static int UNKNOWN
           
protected  int value
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
StatusEvent(java.lang.Object source, int type, java.lang.String operation)
          Creates a new status event with the specified type and operation.
StatusEvent(java.lang.Object source, int type, java.lang.String operation, int minimum, int maximum, int value)
          Creates a new status event representing an update of the specified operation.
 
Method Summary
 int getMaximum()
          Returns the end point of the operation.
 int getMinimum()
          Returns the start point of the operation.
 java.lang.String getOperation()
          Returns a string describing the operation being performed.
 int getType()
          Returns the type of event (OPERATION_START, OPERATION_UPDATE, or OPERATION_END).
 int getValue()
          Returns the current point in the operation.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OPERATION_START

public static final int OPERATION_START

OPERATION_UPDATE

public static final int OPERATION_UPDATE

OPERATION_END

public static final int OPERATION_END

UNKNOWN

public static final int UNKNOWN

type

protected int type

operation

protected java.lang.String operation

minimum

protected int minimum

maximum

protected int maximum

value

protected int value
Constructor Detail

StatusEvent

public StatusEvent(java.lang.Object source,
                   int type,
                   java.lang.String operation)
Creates a new status event with the specified type and operation.

StatusEvent

public StatusEvent(java.lang.Object source,
                   int type,
                   java.lang.String operation,
                   int minimum,
                   int maximum,
                   int value)
Creates a new status event representing an update of the specified operation.
Method Detail

getType

public int getType()
Returns the type of event (OPERATION_START, OPERATION_UPDATE, or OPERATION_END).

getOperation

public java.lang.String getOperation()
Returns a string describing the operation being performed.

getMinimum

public int getMinimum()
Returns the start point of the operation.

getMaximum

public int getMaximum()
Returns the end point of the operation.

getValue

public int getValue()
Returns the current point in the operation.