|
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.Objectjavax.swing.AbstractAction
net.sf.japi.swing.bookmarks.BookmarkManager.Bookmark
net.sf.japi.swing.bookmarks.BookmarkManager.BookmarkFolder
public class BookmarkManager.BookmarkFolder
Class for Bookmark folders.
| 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.BookmarkFolder()
Create a BookmarkFolder without a title. |
|
BookmarkManager.BookmarkFolder(String title)
Create a BookmarkFolder. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Invoked when an action occurs. |
void |
add(BookmarkManager.Bookmark bookmark)
Add a Bookmark to this BookmarkFolder. |
void |
addBookmark()
Add a bookmark for the currently selected Question from the currently selected QuestionCollection . |
Enumeration<BookmarkManager.Bookmark> |
children()
Returns the children of the receiver as an Enumeration. |
JMenu |
createMenu()
Create a MenuItem for this Bookmark |
boolean |
getAllowsChildren()
Returns true if the receiver allows children. |
BookmarkManager.Bookmark |
getChildAt(int childIndex)
Returns the child TreeNode at index
childIndex. |
int |
getChildCount()
Returns the number of children TreeNodes the receiver
contains. |
int |
getIndex(TreeNode node)
Returns the index of node in the receivers children.
If the receiver does not contain node, -1 will be
returned. |
void |
insert(BookmarkManager.Bookmark bookmark,
int index)
Insert a Bookmark into this BookmarkFolder. |
void |
insert(MutableTreeNode child,
int index)
Adds child to the receiver at index.
child will be messaged with setParent. |
boolean |
isLeaf()
Returns true if the receiver is a leaf. |
Iterator<BookmarkManager.Bookmark> |
iterator()
Returns an iterator over a set of elements of type T. |
void |
newBookmarkFolder()
Create a new BookmarkFolder. |
void |
remove(BookmarkManager.Bookmark bookmark)
Remove a Bookmark from this BookmarkFolder. |
void |
remove(int index)
Remove a Bookmark from this BookmarkFolder. |
void |
remove(MutableTreeNode child)
Removes node from the receiver. setParent
will be messaged on node. |
void |
setAddBookmarkEnabled(boolean enabled)
Set the AddBookmark enabled state. |
void |
store(Node n)
Store bookmarks in an XML Document. |
| Methods inherited from class net.sf.japi.swing.bookmarks.BookmarkManager.Bookmark |
|---|
getFolder, getParent, getTitle, 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 |
|---|
public BookmarkManager.BookmarkFolder()
public BookmarkManager.BookmarkFolder(String title)
title - title for BookmarkFolder| Method Detail |
|---|
public Iterator<BookmarkManager.Bookmark> iterator()
iterator in interface Iterable<BookmarkManager.Bookmark>public void add(BookmarkManager.Bookmark bookmark)
bookmark - Bookmark to add
public void insert(BookmarkManager.Bookmark bookmark,
int index)
bookmark - Bookmark to addindex - desired indexpublic void remove(BookmarkManager.Bookmark bookmark)
bookmark - Bookmark to removepublic void remove(int index)
remove in interface MutableTreeNoderemove in class BookmarkManager.Bookmarkindex - Index of Bookmark to removepublic JMenu createMenu()
createMenu in class BookmarkManager.Bookmarkpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void addBookmark()
public void newBookmarkFolder()
public void setAddBookmarkEnabled(boolean enabled)
enabled - enabled state for AddBookmark actionpublic void store(Node n)
store in class BookmarkManager.Bookmarkn - Node (Element or Document) to attach topublic Enumeration<BookmarkManager.Bookmark> children()
Enumeration.
children in interface TreeNodechildren in class BookmarkManager.Bookmarkpublic boolean getAllowsChildren()
getAllowsChildren in interface TreeNodegetAllowsChildren in class BookmarkManager.Bookmarkpublic BookmarkManager.Bookmark getChildAt(int childIndex)
TreeNode at index
childIndex.
getChildAt in interface TreeNodegetChildAt in class BookmarkManager.Bookmarkpublic int getChildCount()
TreeNodes the receiver
contains.
getChildCount in interface TreeNodegetChildCount in class BookmarkManager.Bookmarkpublic int getIndex(TreeNode node)
node in the receivers children.
If the receiver does not contain node, -1 will be
returned.
getIndex in interface TreeNodegetIndex in class BookmarkManager.Bookmarkpublic boolean isLeaf()
isLeaf in interface TreeNodeisLeaf in class BookmarkManager.Bookmark
public void insert(MutableTreeNode child,
int index)
child to the receiver at index.
child will be messaged with setParent.
insert in interface MutableTreeNodeinsert in class BookmarkManager.Bookmarkpublic void remove(MutableTreeNode child)
node from the receiver. setParent
will be messaged on node.
remove in interface MutableTreeNoderemove in class BookmarkManager.Bookmark
|
JAPI Yet another Java API API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||