|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.tools.Library
public class Library
A Library for a LibraryBrowser. Maintains its own collections and provides access to collections from comPADRE, OSP and imported libraries.
Constructor Summary | |
---|---|
Library()
|
Method Summary | |
---|---|
boolean |
addComPADRECollection(java.lang.String path,
java.lang.String name)
Adds a comPADRE collection. |
boolean |
addOSPLibrary(java.lang.String path)
Adds an OSP-sponsored library. |
static XML.ObjectLoader |
getLoader()
Returns an ObjectLoader to save and load data for this class. |
boolean |
importLibrary(java.lang.String path)
Imports a library. |
java.lang.String |
toString()
Returns a string representation of this library. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Library()
Method Detail |
---|
public boolean addOSPLibrary(java.lang.String path)
path
- the library path
public boolean importLibrary(java.lang.String path)
path
- the library path
public boolean addComPADRECollection(java.lang.String path, java.lang.String name)
path
- the comPADRE queryname
- the name of the collection
public java.lang.String toString()
toString
in class java.lang.Object
public static XML.ObjectLoader getLoader()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |