sidnet.core.gui
Class MyPopupMenu

java.lang.Object
  extended by sidnet.core.gui.MyPopupMenu
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class MyPopupMenu
extends java.lang.Object
implements java.awt.event.ActionListener


Field Summary
static int MAX_MENUS
           
static int NONE
           
 
Constructor Summary
MyPopupMenu()
          Creates a new instance of PopupMenu
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 int addMenuItem(java.lang.String OnText, java.lang.String OffText)
           
 void addSeparator()
           
 javax.swing.JMenuItem getComponent(int compID)
           
 java.lang.String getData()
           
 javax.swing.JPopupMenu getPopupMenu()
           
 void justAdd(javax.swing.JMenuItem newMenuItem)
           
 void setData(java.lang.String data, int handle)
           
 void show(javax.swing.JPanel panel, int x, int y)
           
 void turnOffExcept(int handle)
           
 void turnOnExcept(int handle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_MENUS

public static final int MAX_MENUS
See Also:
Constant Field Values

NONE

public static final int NONE
See Also:
Constant Field Values
Constructor Detail

MyPopupMenu

public MyPopupMenu()
Creates a new instance of PopupMenu

Method Detail

addMenuItem

public int addMenuItem(java.lang.String OnText,
                       java.lang.String OffText)

justAdd

public void justAdd(javax.swing.JMenuItem newMenuItem)

show

public void show(javax.swing.JPanel panel,
                 int x,
                 int y)

getComponent

public javax.swing.JMenuItem getComponent(int compID)

addSeparator

public void addSeparator()

getData

public java.lang.String getData()

setData

public void setData(java.lang.String data,
                    int handle)

getPopupMenu

public javax.swing.JPopupMenu getPopupMenu()

turnOnExcept

public void turnOnExcept(int handle)

turnOffExcept

public void turnOffExcept(int handle)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener