edu.iastate.anthill.shared
Class TypedTreePopupMenuListener
java.lang.Object
java.awt.event.MouseAdapter
edu.iastate.anthill.shared.TypedTreePopupMenuListener
- All Implemented Interfaces:
- java.util.EventListener, java.awt.event.MouseListener
- Direct Known Subclasses:
- AVHEditor, MappingPopupMenuListener
- public abstract class TypedTreePopupMenuListener
- extends java.awt.event.MouseAdapter
|
Method Summary |
protected void |
addMenuItem(java.lang.String text,
java.awt.event.ActionListener listener)
Simplified addMenuItem |
protected void |
addMenuItem(java.lang.String text,
javax.swing.Icon icon,
java.awt.event.ActionListener listener,
javax.swing.JPopupMenu menu,
java.lang.String shortKey)
|
protected abstract void |
buildContextMenu(TypedNode selectedNode)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
showMenu(java.awt.event.MouseEvent e)
|
protected void |
updateTree()
update the tree from the owl model |
| Methods inherited from class java.awt.event.MouseAdapter |
mouseClicked, mouseEntered, mouseExited, mousePressed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tree
public TypedTree tree
fatherPanel
public javax.swing.JPanel fatherPanel
popup
public javax.swing.JPopupMenu popup
TypedTreePopupMenuListener
public TypedTreePopupMenuListener()
addMenuItem
protected void addMenuItem(java.lang.String text,
javax.swing.Icon icon,
java.awt.event.ActionListener listener,
javax.swing.JPopupMenu menu,
java.lang.String shortKey)
addMenuItem
protected void addMenuItem(java.lang.String text,
java.awt.event.ActionListener listener)
- Simplified addMenuItem
- Parameters:
text - Stringlistener - ActionListener- Since:
- 2005-03-30
updateTree
protected void updateTree()
- update the tree from the owl model
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
showMenu
public void showMenu(java.awt.event.MouseEvent e)
buildContextMenu
protected abstract void buildContextMenu(TypedNode selectedNode)