|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTree
org.jurvis.swing.tree.JvTree
public class JvTree
A JTree that allows nodes to be dragged and dropped within the
tree and between other components.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JTree |
|---|
JTree.AccessibleJTree, JTree.DynamicUtilTreeNode, JTree.EmptySelectionModel, JTree.TreeModelHandler, JTree.TreeSelectionRedirector |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JvTree(TreeModel model)
Create a new JvTree. |
|
| Method Summary | |
|---|---|
void |
addItem()
Add an new item to the container. |
void |
copyItem()
Copy the currently selected item to the clipboard. |
void |
deleteItem()
Delete the currently selected item from the container. |
void |
editItem()
Edit the currently selected item of the container. |
JComponent |
getComponent()
Return the top-level component of this container. |
JTree |
getTree()
Return the JTree of this container. |
protected DefaultMutableTreeNode |
getTreeNode(int x,
int y)
Return the tree node at the given coordinate. |
boolean |
isAddItemEnabled()
Return true if an "Add Item" is currently allowed. |
boolean |
isCopyItemEnabled()
Return true if a "Copy Item" is currently allowed. |
boolean |
isDeleteItemEnabled()
Return true if an "Delete Item" is currently allowed. |
boolean |
isEditItemEnabled()
Return true if an "Edit Item" is currently allowed. |
boolean |
isPasteItemEnabled()
Return true if a "Paste Item" is currently allowed. |
void |
pasteItem()
Paste the currently selected item to the clipboard. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jurvis.beans.JvJavaBean |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Constructor Detail |
|---|
public JvTree(TreeModel model)
JvTree.
model - the TreeModel to use as the data model| Method Detail |
|---|
public JComponent getComponent()
getComponent in interface JvPanelContainerpublic JTree getTree()
JTree of this container.
getTree in interface JvPanelTreeJTree of this containerpublic boolean isAddItemEnabled()
isAddItemEnabled in interface JvPanelContainerpublic boolean isDeleteItemEnabled()
isDeleteItemEnabled in interface JvPanelContainerpublic boolean isEditItemEnabled()
isEditItemEnabled in interface JvPanelContainerpublic boolean isCopyItemEnabled()
isCopyItemEnabled in interface JvPanelContainerpublic boolean isPasteItemEnabled()
isPasteItemEnabled in interface JvPanelContainerpublic void addItem()
addItem in interface JvPanelContainerpublic void deleteItem()
deleteItem in interface JvPanelContainerpublic void editItem()
editItem in interface JvPanelContainerpublic void copyItem()
copyItem in interface JvPanelContainerpublic void pasteItem()
pasteItem in interface JvPanelContainer
protected DefaultMutableTreeNode getTreeNode(int x,
int y)
x - the x coordinatey - the y coordinate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||