JAPI 0.9.0
Yet another Java API
API Documentation

net.sf.japi.swing.bookmarks
Class BookmarkManager.BookmarkItem

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by net.sf.japi.swing.bookmarks.BookmarkManager.Bookmark
          extended by net.sf.japi.swing.bookmarks.BookmarkManager.BookmarkItem
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action, MutableTreeNode, TreeNode
Enclosing class:
BookmarkManager

public class BookmarkManager.BookmarkItem
extends BookmarkManager.Bookmark

Class for Bookmark Items.

Version:
$Id: BookmarkManager.java,v 1.2 2006/03/26 15:22:16 christianhujer Exp $
Author:
Christian Hujer
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sf.japi.swing.bookmarks.BookmarkManager.Bookmark
folder
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
BookmarkManager.BookmarkItem(String title, String url)
          Create a BookmarkItem.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Invoked when an action occurs.
 JMenuItem createMenu()
          Create a MenuItem for this Bookmark
 String getURL()
          Get this BookmarkItem's url.
 void setURL(String url)
          Set this BookmarkItem's url.
 void store(Node n)
          Store bookmarks in an XML Document.
 
Methods inherited from class net.sf.japi.swing.bookmarks.BookmarkManager.Bookmark
children, getAllowsChildren, getChildAt, getChildCount, getFolder, getIndex, getParent, getTitle, insert, isLeaf, remove, remove, removeFromParent, setFolder, setParent, setTitle, setUserObject, toString
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BookmarkManager.BookmarkItem

public BookmarkManager.BookmarkItem(String title,
                                    String url)
Create a BookmarkItem.

Parameters:
title - title for this BookmarkItem
url - URL for this BookmarkItem
Method Detail

setURL

public void setURL(String url)
Set this BookmarkItem's url.

Parameters:
url - new url for this BookmarkItem

getURL

public String getURL()
Get this BookmarkItem's url.

Returns:
BookmarkItem url

createMenu

public JMenuItem createMenu()
Create a MenuItem for this Bookmark

Specified by:
createMenu in class BookmarkManager.Bookmark
Returns:
MenuItem for this Bookmark

actionPerformed

public void actionPerformed(ActionEvent e)
Invoked when an action occurs.


store

public void store(Node n)
Store bookmarks in an XML Document.

Specified by:
store in class BookmarkManager.Bookmark
Parameters:
n - Node (Element or Document) to attach to

JAPI
Yet another Java API
API Documentation

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