com.bbn.swede.core.libraries
Class LibraryChangeEvent

java.lang.Object
  extended bycom.bbn.swede.core.libraries.LibraryChangeEvent

public class LibraryChangeEvent
extends Object

An event that represents a change with a library.

Author:
aperezlo

Field Summary
static int CHANGED
          Event type constant indicating that the contents of a library changed.
static int CLOSED
          Event type constant indicating that a library was closed.
static int DELETED
          Event type constant indicating that a library was deleted.
static int OPENED
          Event type constant indicating that a library was opened.
static int REFRESHED
          Event type constant indicating that a library was refreshed.
static int RENAMED
          Event type constant indicating that a library was renamed.
 
Constructor Summary
LibraryChangeEvent(ILibraryDescriptor source, int type)
          Creates a library change event.
 
Method Summary
 ILibraryDescriptor getLibrary()
          Retrieves the library the caused the event.
 int getType()
          Retrieves the type of the event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHANGED

public static final int CHANGED
Event type constant indicating that the contents of a library changed.

See Also:
Constant Field Values

DELETED

public static final int DELETED
Event type constant indicating that a library was deleted.

See Also:
Constant Field Values

RENAMED

public static final int RENAMED
Event type constant indicating that a library was renamed.

See Also:
Constant Field Values

REFRESHED

public static final int REFRESHED
Event type constant indicating that a library was refreshed.

See Also:
Constant Field Values

OPENED

public static final int OPENED
Event type constant indicating that a library was opened.

See Also:
Constant Field Values

CLOSED

public static final int CLOSED
Event type constant indicating that a library was closed.

See Also:
Constant Field Values
Constructor Detail

LibraryChangeEvent

public LibraryChangeEvent(ILibraryDescriptor source,
                          int type)
Creates a library change event.

Parameters:
source - the library that changed
type - the type of event that occurred. Must be one of the change constants CHANGED, DELETED, RENAMED, REFRESHED, OPENED, or CLOSED.
Method Detail

getLibrary

public ILibraryDescriptor getLibrary()
Retrieves the library the caused the event.

Returns:
the library

getType

public int getType()
Retrieves the type of the event. This will be one of the change constants CHANGED, DELETED, RENAMED, REFRESHED, OPENED, or CLOSED.

Returns:
the type of the event


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.