|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AbstractLibrary
An interface to be implemented by classes that can act as a Pavlov Library, i.e. a set of AbstractBooks with AbstractChapters that can be accesses by name.
Method Summary | |
---|---|
void |
addBook(AbstractBook b)
Adds an AbstractBook to this library. |
void |
deleteBook(String bookName)
Removes the named AbstractBook from this library. |
AbstractBook |
getBook(String bkName)
Returns the named Book. |
Collection<AbstractBook> |
getBookCollection()
Deprecated. |
Collection<AbstractBook> |
getBooksReadOnly()
Returns all books as a read-only Collection. |
Chapter |
getChapter(String bkName,
String cpName)
Returns the named Chapter from the named book. |
void |
populateTree(DefaultMutableTreeNode top)
Displays books and chapters as a tree. |
Method Detail |
---|
Chapter getChapter(String bkName, String cpName)
bkName
- a String
valuecpName
- a String
value
Chapter
value@Deprecated Collection<AbstractBook> getBookCollection()
Collection
valueCollection<AbstractBook> getBooksReadOnly()
Collection
valuevoid populateTree(DefaultMutableTreeNode top)
top
- a DefaultMutableTreeNode
valueAbstractBook getBook(String bkName)
bkName
- a String
value
Book
valuevoid addBook(AbstractBook b)
b
- an AbstractBook
valuevoid deleteBook(String bookName)
bookName
- a String
value
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |