org.opensourcephysics.tools
Class LibraryHolding

java.lang.Object
  extended by org.opensourcephysics.tools.LibraryRecord
      extended by org.opensourcephysics.tools.LibraryHolding

public class LibraryHolding
extends LibraryRecord

This represents a digital library record with content.

Version:
1.0
Author:
Douglas Brown

Constructor Summary
LibraryHolding(java.lang.String name)
           
 
Method Summary
 void addContent(java.lang.String filePath)
           
 java.lang.String[] getContents()
           
 java.lang.String getDescription()
           
 javax.swing.Icon getIcon()
           
static XML.ObjectLoader getLoader()
          Returns an ObjectLoader to save and load data for this class.
 boolean removeContent(java.lang.String filePath)
           
 void setName(java.lang.String theName)
           
 
Methods inherited from class org.opensourcephysics.tools.LibraryRecord
getBasePath, getInfoPath, getName, getURI, setBasePath, setDescription, setInfoPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LibraryHolding

public LibraryHolding(java.lang.String name)
Method Detail

setName

public void setName(java.lang.String theName)
Overrides:
setName in class LibraryRecord

addContent

public void addContent(java.lang.String filePath)

removeContent

public boolean removeContent(java.lang.String filePath)

getContents

public java.lang.String[] getContents()

getIcon

public javax.swing.Icon getIcon()
Overrides:
getIcon in class LibraryRecord

getDescription

public java.lang.String getDescription()
Overrides:
getDescription in class LibraryRecord

getLoader

public static XML.ObjectLoader getLoader()
Returns an ObjectLoader to save and load data for this class.

Returns:
the object loader