org.netbeans.lib.cvsclient.event
Class TerminationEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.netbeans.lib.cvsclient.event.CVSEvent
          extended byorg.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
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 December 18 2007.  |  Portions Copyright 1997-2003 Sun Microsystems, Inc. All rights reserved.