|
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 javax.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 TreeNode s 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 BookmarkFolderMethod Detail |
---|
public Iterator<BookmarkManager.Bookmark> iterator()
iterator
in interface Iterable<BookmarkManager.Bookmark>
public void add(BookmarkManager.Bookmark bookmark)
bookmark
- Bookmark to addpublic 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 MutableTreeNode
remove
in class BookmarkManager.Bookmark
index
- Index of Bookmark to removepublic JMenu createMenu()
createMenu
in class BookmarkManager.Bookmark
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void addBookmark()
public void newBookmarkFolder()
public void setAddBookmarkEnabled(boolean enabled)
enabled
- enabled state for AddBookmark actionpublic void store(Node n)
store
in class BookmarkManager.Bookmark
n
- Node (Element or Document) to attach topublic Enumeration<BookmarkManager.Bookmark> children()
Enumeration
.
children
in interface TreeNode
children
in class BookmarkManager.Bookmark
public boolean getAllowsChildren()
getAllowsChildren
in interface TreeNode
getAllowsChildren
in class BookmarkManager.Bookmark
public BookmarkManager.Bookmark getChildAt(int childIndex)
TreeNode
at index
childIndex
.
getChildAt
in interface TreeNode
getChildAt
in class BookmarkManager.Bookmark
public int getChildCount()
TreeNode
s the receiver
contains.
getChildCount
in interface TreeNode
getChildCount
in class BookmarkManager.Bookmark
public int getIndex(TreeNode node)
node
in the receivers children.
If the receiver does not contain node
, -1 will be
returned.
getIndex
in interface TreeNode
getIndex
in class BookmarkManager.Bookmark
public boolean isLeaf()
isLeaf
in interface TreeNode
isLeaf
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 MutableTreeNode
insert
in class BookmarkManager.Bookmark
public void remove(MutableTreeNode child)
node
from the receiver. setParent
will be messaged on node
.
remove
in interface MutableTreeNode
remove
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 |