|
JAPI 0.9.0 Yet another Java API API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.japi.swing.bookmarks.BookmarkManager
public class BookmarkManager
Class for managing and displaying Bookmarks. Usage of this class works the following way:
Bookmarkable
and its methodscreateBookmarkMenu()
to create your bookmarks menu
Nested Class Summary | |
---|---|
static class |
BookmarkManager.Bookmark
Base class for bookmarks. |
class |
BookmarkManager.BookmarkFolder
Class for Bookmark folders. |
class |
BookmarkManager.BookmarkItem
Class for Bookmark Items. |
static class |
BookmarkManager.BookmarkSeparator
Class for Bookmark Separator. |
Constructor Summary | |
---|---|
BookmarkManager(Bookmarkable bookmarkable)
Create a new BookmarkManager. |
Method Summary | |
---|---|
JComponent |
createBookmarkControlPanel()
Create a Bookmark ControlPanel. |
JMenu |
createBookmarkMenu()
Create a Bookmark Menu. |
JToolBar |
createBookmarkToolBar()
Create a Bookmark ToolBar. |
void |
load()
Load bookmarks from default file. |
void |
load(String uri)
Load bookmarks from a file. |
void |
manageBookmarks()
Action for managing the bookmarks. |
void |
save()
Save bookmarks to default file. |
void |
save(String uri)
Save bookmarks to a file. |
void |
setAddBookmarkEnabled(boolean enabled)
Set the AddBookmark enabled state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BookmarkManager(Bookmarkable bookmarkable)
Method Detail |
---|
public JToolBar createBookmarkToolBar()
public JMenu createBookmarkMenu()
public JComponent createBookmarkControlPanel()
public void manageBookmarks()
public void setAddBookmarkEnabled(boolean enabled)
enabled
- enabled state for AddBookmark actionpublic void load() throws IOException, ParserConfigurationException, SAXException
IOException
- in case of I/O problems
ParserConfigurationException
- in case of XML configuration problems
SAXException
- in case of XML document problemspublic void save() throws IOException, ParserConfigurationException
IOException
- in case of I/O problems
ParserConfigurationException
- in case of XML configuration problemspublic void save(String uri) throws IOException, ParserConfigurationException
uri
- URI of file to save
IOException
- in case of I/O problems
ParserConfigurationException
- in case of XML configuration problemspublic void load(String uri) throws IOException, ParserConfigurationException, SAXException
uri
- URI of file to load
IOException
- in case of I/O problems
ParserConfigurationException
- in case of XML configuration problems
SAXException
- in case of XML document problems
|
JAPI Yet another Java API API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |