|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.tools.LibraryResource
org.opensourcephysics.tools.LibraryCollection
public class LibraryCollection
This represents a collection of library resources.
| Field Summary |
|---|
| Fields inherited from class org.opensourcephysics.tools.LibraryResource |
|---|
allTypes, COLLECTION_TYPE, displayName, EJS_TYPE, ejsIcon, HTML_TYPE, htmlIcon, PDF_TYPE, pdfIcon, resourceTypes, TRACKER_TYPE, trackerIcon, UNKNOWN_TYPE, unknownIcon, VIDEO_TYPE, videoIcon |
| Constructor Summary | |
|---|---|
LibraryCollection(java.lang.String name)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addResource(LibraryResource resource)
Adds a resource to the end of this collection. |
static XML.ObjectLoader |
getLoader()
Returns an ObjectLoader to save and load data for this class. |
LibraryResource[] |
getResources()
Gets the array of resources in this collection. |
void |
insertResource(LibraryResource resource,
int index)
Inserts a resource into this collection at a specified index. |
void |
removeResource(LibraryResource resource)
Removes a resource from this collection. |
| Methods inherited from class org.opensourcephysics.tools.LibraryResource |
|---|
getBasePath, getClone, getDescription, getHTMLPath, getIcon, getName, getProperty, getPropertyNames, getTarget, getType, setBasePath, setDescription, setHTMLPath, setName, setProperty, setTarget, setType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LibraryCollection(java.lang.String name)
name - the name of the collection| Method Detail |
|---|
public void addResource(LibraryResource resource)
resource - the resource
public void insertResource(LibraryResource resource,
int index)
resource - the resourceindex - the indexpublic void removeResource(LibraryResource resource)
resource - the resource to removepublic LibraryResource[] getResources()
public static XML.ObjectLoader getLoader()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||