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
| 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 |
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
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.
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.