org.netbeans.lib.cvsclient.event
Class ModuleExpansionEvent

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

public class ModuleExpansionEvent
extends CVSEvent

This event is really intended only for the use in the Checkout command. During a checkout command, the client must ask the server to expand modules to determine whether there are aliases defined for a particular module. The client must then use the expansion to determine if a local directory exists and if so, send appropriate Modified requests etc.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ModuleExpansionEvent(java.lang.Object source, java.lang.String module)
          Creates new ModuleExpansionEvent.
 
Method Summary
protected  void fireEvent(CVSListener listener)
          Fire the event to the event listener.
 java.lang.String getModule()
          Get the module name that the original module name has been expanded to.
 
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

ModuleExpansionEvent

public ModuleExpansionEvent(java.lang.Object source,
                            java.lang.String module)
Creates new ModuleExpansionEvent.

Parameters:
source - the source of the event
theModule - the module name that the original request has been "expanded" to.
Method Detail

getModule

public java.lang.String getModule()
Get the module name that the original module name has been expanded to.

Returns:
the expanded name

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.