org.netbeans.lib.cvsclient.event
Class TerminationEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.netbeans.lib.cvsclient.event.CVSEvent
          extended by org.netbeans.lib.cvsclient.event.TerminationEvent
All Implemented Interfaces:
java.io.Serializable

public class TerminationEvent
extends CVSEvent

An event sent from the server to indicate that a the output from the server has ended for the current command

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TerminationEvent(java.lang.Object source)
          Construct a MessageEvent with no message text
TerminationEvent(java.lang.Object source, boolean isError)
          Construct a MessageEvent
 
Method Summary
protected  void fireEvent(CVSListener listener)
          Fire the event to the event listener.
 boolean isError()
          Get whether the command ended successfully or not
 void setError(boolean error)
          Get whether the command ended successfully or not
 
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
 

Constructor Detail

TerminationEvent

public TerminationEvent(java.lang.Object source,
                        boolean isError)
Construct a MessageEvent

Parameters:
source - the source of the event
message - the message text
isError - true if the message is an error message (i.e. intended for stderr rather than stdout), false otherwise

TerminationEvent

public TerminationEvent(java.lang.Object source)
Construct a MessageEvent with no message text

Parameters:
source - the source of the event
Method Detail

isError

public boolean isError()
Get whether the command ended successfully or not

Returns:
true if the successfull

setError

public void setError(boolean error)
Get whether the command ended successfully or not

Parameters:
error - true if successfull

fireEvent

protected void fireEvent(CVSListener listener)
Fire the event to the event listener. Subclasses should call the appropriate method on the listener to dispatch this event.

Specified by:
fireEvent in class CVSEvent
Parameters:
listener - the event listener

 

Built on August 7 2008.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.