edu.iastate.anthill.shared
Class TypedTreePopupMenuListener

java.lang.Object
  extended byjava.awt.event.MouseAdapter
      extended byedu.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


Field Summary
 javax.swing.JPanel fatherPanel
           
 javax.swing.JPopupMenu popup
           
 TypedTree tree
           
 
Constructor Summary
TypedTreePopupMenuListener()
           
 
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
 

Field Detail

tree

public TypedTree tree

fatherPanel

public javax.swing.JPanel fatherPanel

popup

public javax.swing.JPopupMenu popup
Constructor Detail

TypedTreePopupMenuListener

public TypedTreePopupMenuListener()
Method Detail

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 - String
listener - 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)