public final class LibraryChooser extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
LibraryChooser.Filter
|
static interface |
LibraryChooser.LibraryImportHandler
Handler for library importing.
|
static interface |
LibraryChooser.Panel
Represents operations permitted by
LibraryChooser.createPanel(org.netbeans.api.project.libraries.LibraryManager, org.netbeans.api.project.libraries.LibraryChooser.Filter) . |
Modifier and Type | Method and Description |
---|---|
static LibraryChooser.Panel |
createPanel(LibraryManager manager,
LibraryChooser.Filter filter)
Create a picker as an embeddable panel.
|
static Set<Library> |
showDialog(LibraryManager manager,
LibraryChooser.Filter filter,
LibraryChooser.LibraryImportHandler handler)
Create a chooser showing libraries from given library manager and let the
user to pick some.
|
public static Set<Library> showDialog(LibraryManager manager, LibraryChooser.Filter filter, LibraryChooser.LibraryImportHandler handler)
manager
- manager; can be null in which case global libraries are listedfilter
- optional libraries filter; null for no filteringhandler
- handler to perform library importing; can be null in which case
import will not be allowed in UIpublic static LibraryChooser.Panel createPanel(LibraryManager manager, LibraryChooser.Filter filter)
manager
- library manager to use or null for global librariesfilter
- optional libraries filter; null for no filtering