org.openide.filesystems
Class RepositoryEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.openide.filesystems.RepositoryEvent
All Implemented Interfaces:
Serializable

public class RepositoryEvent
extends EventObject

Event describing adding a file system to, or removing a file system from, the file system pool.

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RepositoryEvent(Repository fsp, FileSystem fs, boolean add)
          Create a new file system pool event.
 
Method Summary
 FileSystem getFileSystem()
          Getter for the file system that is added or removed.
 Repository getRepository()
          Getter for the file system pool that is modified.
 boolean isAdded()
          Is the file system added or removed?
 
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

RepositoryEvent

public RepositoryEvent(Repository fsp,
                       FileSystem fs,
                       boolean add)
Create a new file system pool event.
Parameters:
fsp - file system pool that is being modified
fs - file system that is either being added or removed
add - true if the file system is added, false if removed
Method Detail

getRepository

public Repository getRepository()
Getter for the file system pool that is modified.
Returns:
the file system pool

getFileSystem

public FileSystem getFileSystem()
Getter for the file system that is added or removed.
Returns:
the file system

isAdded

public boolean isAdded()
Is the file system added or removed?
Returns:
true if the file system is added, false if removed


Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.