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

LibraryManager (NetBeans Project Libraries API) - NetBeans API Javadoc 5.0.0

 

org.netbeans.api.project.libraries
Class LibraryManager

java.lang.Object
  extended byorg.netbeans.api.project.libraries.LibraryManager

public final class LibraryManager
extends Object

LibraryManager provides registry of the installed libraries. LibraryManager can be used to list all installed libraries or to query library by its system name.


Field Summary
static String PROP_LIBRARIES
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Adds PropertyChangeListener.
static LibraryManager getDefault()
          Get the default instance of the library manager.
 Library[] getLibraries()
          List all library defined in the IDE.
 Library getLibrary(String name)
          Returns library by its name.
 void removePropertyChangeListener(PropertyChangeListener listener)
          Removes PropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_LIBRARIES

public static final String PROP_LIBRARIES
See Also:
Constant Field Values
Method Detail

getLibrary

public Library getLibrary(String name)
Returns library by its name.

Parameters:
name - of the library, must not be null
Returns:
library or null if the library is not found

getLibraries

public Library[] getLibraries()
List all library defined in the IDE.

Returns:
Library[] library definitions never null

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Adds PropertyChangeListener. The listener is notified when library is added or removed.

Parameters:
listener - to be notified

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Removes PropertyChangeListener

Parameters:
listener -

getDefault

public static LibraryManager getDefault()
Get the default instance of the library manager.

Returns:
the singleton instance

 

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