|
|||||||||||
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
com.ontotext.gate.vr.EditableTreeView
Extends JTree
in order to provide
means for editing the hierarchy of an ontology
borislav popov
Nested Class Summary | |
(package private) class |
EditableTreeView.AddSubActListener
|
(package private) class |
EditableTreeView.EditURIListener
|
(package private) class |
EditableTreeView.MyMouseAdapter
|
(package private) class |
EditableTreeView.RemoveActListener
|
(package private) class |
EditableTreeView.RenameListener
|
private class |
EditableTreeView.ViewPropertiesListener
Listener for choosing [view Properties] from the popup menu |
Nested classes inherited from class javax.swing.JTree |
JTree.AccessibleJTree, JTree.DynamicUtilTreeNode, JTree.EmptySelectionModel, JTree.TreeModelHandler, JTree.TreeSelectionRedirector |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
private JMenuItem |
add_item
|
private DragSource |
dragSource
dragSource needed for Drag'n'Drop |
private DragSourceContext |
dragSourceContext
dragSourceContext needed for Drag'n'Drop |
private JMenuItem |
editURI_item
|
private JPopupMenu |
m_popUpMenu
|
private OEMainPanel |
mainPanel
|
private JMenuItem |
remove_item
|
private JMenuItem |
rename_item
|
protected ClassNode |
selectedNode
The currently selected node |
protected TreePath |
selectedTreePath
Stores the selected node info |
private Transferable |
transferable
transferable obejct needed for Drag'n'Drop |
private JMenuItem |
view_properties_item
|
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.Container |
|
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 | |
EditableTreeView(OntoTreeModel model)
|
Method Summary | |
void |
dragDropEnd(DragSourceDropEvent e)
|
void |
dragEnter(DragSourceDragEvent dsde)
|
void |
dragEnter(DropTargetDragEvent e)
|
void |
dragExit(DragSourceEvent dsde)
|
void |
dragExit(DropTargetEvent e)
|
void |
dragGestureRecognized(DragGestureEvent event)
|
void |
dragOver(DragSourceDragEvent e)
|
void |
dragOver(DropTargetDragEvent e)
|
void |
drop(DropTargetDropEvent e)
|
void |
dropActionChanged(DragSourceDragEvent e)
|
void |
dropActionChanged(DropTargetDragEvent e)
|
OEMainPanel |
getmainPanel()
Gets the main panel of this tree view |
ClassNode |
getSelectedNode()
Returns the selected node |
private void |
init()
Initializes the tree view. |
void |
setMainPanel(OEMainPanel panel)
Sets the main panel of this tree view. |
void |
setModel(OntoTreeModel model)
|
static void |
synchronizeTreeExpansion(JTree orig,
JTree mirror)
Synchronizes the expansion of the given trees. |
private String |
testDropTarget(TreePath destination,
TreePath dropper)
Convenience method to test whether drop location is valid |
void |
valueChanged(TreeSelectionEvent evt)
sets selected node |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected TreePath selectedTreePath
protected ClassNode selectedNode
private JPopupMenu m_popUpMenu
private JMenuItem add_item
private JMenuItem rename_item
private JMenuItem editURI_item
private JMenuItem remove_item
private JMenuItem view_properties_item
private OEMainPanel mainPanel
private DragSource dragSource
private DragSourceContext dragSourceContext
private Transferable transferable
Constructor Detail |
public EditableTreeView(OntoTreeModel model)
Method Detail |
public static void synchronizeTreeExpansion(JTree orig, JTree mirror)
orig
- the original treemirror
- the tree to mimic the expansion of the originalpublic void setMainPanel(OEMainPanel panel)
panel
- the main panelpublic OEMainPanel getmainPanel()
public void setModel(OntoTreeModel model)
private void init()
public void dragGestureRecognized(DragGestureEvent event)
dragGestureRecognized
in interface DragGestureListener
public void drop(DropTargetDropEvent e)
drop
in interface DropTargetListener
public void dragExit(DragSourceEvent dsde)
dragExit
in interface DragSourceListener
public void dragExit(DropTargetEvent e)
dragExit
in interface DropTargetListener
public void dragEnter(DragSourceDragEvent dsde)
dragEnter
in interface DragSourceListener
public void dragEnter(DropTargetDragEvent e)
dragEnter
in interface DropTargetListener
public void dropActionChanged(DragSourceDragEvent e)
dropActionChanged
in interface DragSourceListener
public void dropActionChanged(DropTargetDragEvent e)
dropActionChanged
in interface DropTargetListener
public void dragOver(DragSourceDragEvent e)
dragOver
in interface DragSourceListener
public void dragOver(DropTargetDragEvent e)
dragOver
in interface DropTargetListener
public void dragDropEnd(DragSourceDropEvent e)
dragDropEnd
in interface DragSourceListener
private String testDropTarget(TreePath destination, TreePath dropper)
destination
- The destination pathdropper
- The path for the node to be dropped
public void valueChanged(TreeSelectionEvent evt)
valueChanged
in interface TreeSelectionListener
public ClassNode getSelectedNode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |