public interface LibraryTypeProvider extends Lookup.Provider
Modifier and Type | Method and Description |
---|---|
LibraryImplementation |
createLibrary()
Creates a new empty library implementation.
|
Customizer |
getCustomizer(String volumeType)
Returns customizer for given volume's type, or null if the volume is not customizable.
|
String |
getDisplayName()
Returns the UI name of the LibraryType.
|
String |
getLibraryType()
Get a unique identifier for the library type.
|
String[] |
getSupportedVolumeTypes()
Get identifiers for the volume types supported by the libraries created by this provider.
|
void |
libraryCreated(LibraryImplementation libraryImpl)
This method is called by the libraries framework when the library was created
and fully initialized (all its properties have to be read).
|
void |
libraryDeleted(LibraryImplementation libraryImpl)
This method is called by the libraries framework when the library was deleted.
|
getLookup
String getDisplayName()
String getLibraryType()
j2se
.String[] getSupportedVolumeTypes()
classpath
, javadoc
, or src
.LibraryImplementation createLibrary()
LibrariesSupport.createLibraryImplementation(java.lang.String, java.lang.String[])
.
This method is not used by LibraryManager.createLibrary(java.lang.String, java.lang.String, java.util.Map<java.lang.String, java.util.List<java.net.URL>>)
except in the case of LibraryManager.getDefault()
.void libraryDeleted(LibraryImplementation libraryImpl)
LibraryManager.createLibrary(java.lang.String, java.lang.String, java.util.Map<java.lang.String, java.util.List<java.net.URL>>)
except in the case of LibraryManager.getDefault()
.libraryImpl
- void libraryCreated(LibraryImplementation libraryImpl)
LibraryManager.createLibrary(java.lang.String, java.lang.String, java.util.Map<java.lang.String, java.util.List<java.net.URL>>)
except in the case of LibraryManager.getDefault()
.Customizer getCustomizer(String volumeType)
LibraryCustomizerContext
instance is passed
to the customizer's setObject method.
The customized object describes the library created by this
provider, but the customizer cannot assume that the customized
object is of the same type as the object created by LibraryTypeProvider.createLibrary()
.volumeType
- a type of volume listed in LibraryTypeProvider.getSupportedVolumeTypes()
JComponent
) or null if such
customizer doesn't exist.