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.
-
ResultEvent(Object)
- ResultEvent constructor.
-
ResultEvent(Object, Object)
- Construct a ResultEvent.
-
getReason()
- Get the reason this operation failed.
-
getResult()
- Get an Object representing the result of an operation.
-
setReason(String)
- Set the reason that this operation failed.
-
setResult(Object)
- Set the Object representing the result of this operation.
ResultEvent
public ResultEvent(Object source)
- ResultEvent constructor.
- Parameters:
- source - source of this event.
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.
setReason
public void setReason(String reason)
- Set the reason that this operation failed.
- Parameters:
- reason - The reason this operation failed.
getReason
public String getReason()
- Get the reason this operation failed.
- Returns:
- The reason this operation failed.
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.
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