JAPI 0.9.0
Yet another Java API
API Documentation

net.sf.japi.swing.bookmarks
Class BookmarkManager

java.lang.Object
  extended by net.sf.japi.swing.bookmarks.BookmarkManager

public class BookmarkManager
extends Object

Class for managing and displaying Bookmarks. Usage of this class works the following way:

Author:
$Author: christianhujer $
Todo:
documentation, fix bookmark drag and drop indices, think about serialization of Actions

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

BookmarkManager

public BookmarkManager(Bookmarkable bookmarkable)
Create a new BookmarkManager.

Method Detail

createBookmarkToolBar

public JToolBar createBookmarkToolBar()
Create a Bookmark ToolBar.

Returns:
toolBar for Bookmarks

createBookmarkMenu

public JMenu createBookmarkMenu()
Create a Bookmark Menu.

Returns:
JMenu for Bookmarks

createBookmarkControlPanel

public JComponent createBookmarkControlPanel()
Create a Bookmark ControlPanel.

Returns:
ControlPanel for Bookmarks

manageBookmarks

public void manageBookmarks()
Action for managing the bookmarks.


setAddBookmarkEnabled

public void setAddBookmarkEnabled(boolean enabled)
Set the AddBookmark enabled state.

Parameters:
enabled - enabled state for AddBookmark action

load

public void load()
          throws IOException,
                 ParserConfigurationException,
                 SAXException
Load bookmarks from default file.

Throws:
IOException - in case of I/O problems
ParserConfigurationException - in case of XML configuration problems
SAXException - in case of XML document problems

save

public void save()
          throws IOException,
                 ParserConfigurationException
Save bookmarks to default file.

Throws:
IOException - in case of I/O problems
ParserConfigurationException - in case of XML configuration problems

save

public void save(String uri)
          throws IOException,
                 ParserConfigurationException
Save bookmarks to a file.

Parameters:
uri - URI of file to save
Throws:
IOException - in case of I/O problems
ParserConfigurationException - in case of XML configuration problems

load

public void load(String uri)
          throws IOException,
                 ParserConfigurationException,
                 SAXException
Load bookmarks from a file.

Parameters:
uri - URI of file to load
Throws:
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

© 2005-2006 Christian Hujer. All rights reserved. See copyright