sidnet.core.gui
Class MyPopupMenu
java.lang.Object
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
Constructor Summary |
MyPopupMenu()
Creates a new instance of PopupMenu |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_MENUS
public static final int MAX_MENUS
- See Also:
- Constant Field Values
NONE
public static final int NONE
- See Also:
- Constant Field Values
MyPopupMenu
public MyPopupMenu()
- Creates a new instance of PopupMenu
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