站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

RevisionEvent (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore.versioning
Class RevisionEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byjavax.swing.event.ChangeEvent
          extended byorg.netbeans.modules.vcscore.versioning.RevisionEvent
All Implemented Interfaces:
Serializable

public class RevisionEvent
extends ChangeEvent

The event, that is fired, when the revisions are changed.

See Also:
Serialized Form

Field Summary
static int REVISION_ADDED
           
static int REVISION_ALL_CHANGED
           
static int REVISION_CHANGED
           
static int REVISION_NO_CHANGE
           
static int REVISION_REMOVED
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RevisionEvent()
           
RevisionEvent(Object fileObject)
          Creates new RevisionEvent
 
Method Summary
 String getChangedRevision()
          Get the changed/added/removed revision name.
 Object getFileObject()
           
 String getFilePath()
           
 int getRevisionChangeID()
          Get the revision change id.
 void setChangedRevision(String changedRevision)
          Set the changed/added/removed revision name.
 void setRevisionChangeID(int revisionChangeID)
          Set the revision change id.
 
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
 

Field Detail

REVISION_NO_CHANGE

public static final int REVISION_NO_CHANGE
See Also:
Constant Field Values

REVISION_CHANGED

public static final int REVISION_CHANGED
See Also:
Constant Field Values

REVISION_ADDED

public static final int REVISION_ADDED
See Also:
Constant Field Values

REVISION_REMOVED

public static final int REVISION_REMOVED
See Also:
Constant Field Values

REVISION_ALL_CHANGED

public static final int REVISION_ALL_CHANGED
See Also:
Constant Field Values
Constructor Detail

RevisionEvent

public RevisionEvent()

RevisionEvent

public RevisionEvent(Object fileObject)
Creates new RevisionEvent

Parameters:
fileObject - the file object whose revisions has changed. It's an instance of FileObject or VcsFileObject.
Method Detail

getFileObject

public Object getFileObject()

getFilePath

public String getFilePath()

getChangedRevision

public String getChangedRevision()
Get the changed/added/removed revision name.

Returns:
the changed/added/removed revision name.

setChangedRevision

public void setChangedRevision(String changedRevision)
Set the changed/added/removed revision name.

Parameters:
changedRevision - the changed/added/removed revision name.

getRevisionChangeID

public int getRevisionChangeID()
Get the revision change id. One of REVISION_* constants is returned.

Returns:
the revision change id.

setRevisionChangeID

public void setRevisionChangeID(int revisionChangeID)
Set the revision change id. One of REVISION_* constants should be used.

Parameters:
revisionChangeID - the revision change id.

 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.