All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.util.ResultEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----com.sgi.sysadm.util.ResultEvent

public class ResultEvent
extends EventObject
ResultEvent represents the result of some operation. The success or failure of an operation is represented by which method on ResultListener is being called.


Constructor Index

 o ResultEvent(Object)
ResultEvent constructor.
 o ResultEvent(Object, Object)
Construct a ResultEvent.

Method Index

 o getReason()
Get the reason this operation failed.
 o getResult()
Get an Object representing the result of an operation.
 o setReason(String)
Set the reason that this operation failed.
 o setResult(Object)
Set the Object representing the result of this operation.

Constructors

 o ResultEvent
 public ResultEvent(Object source)
ResultEvent constructor.

Parameters:
source - source of this event.
 o ResultEvent
 public ResultEvent(Object source,
                    Object result)
Construct a ResultEvent. This constructor specifies an Object that is the result.

Parameters:
source - source of this event.
result - event of the operation that completed.

Methods

 o setReason
 public void setReason(String reason)
Set the reason that this operation failed.

Parameters:
reason - The reason this operation failed.
 o getReason
 public String getReason()
Get the reason this operation failed.

Returns:
The reason this operation failed.
 o setResult
 public void setResult(Object result)
Set the Object representing the result of this operation.

Parameters:
result - An Object representing the result of this operation.
 o getResult
 public Object getResult()
Get an Object representing the result of an operation.

Returns:
The result of this operation.

All Packages  Class Hierarchy  This Package  Previous  Next  Index