Package com.actelion.research.gui.swing
Class SwingPopupMenu
- java.lang.Object
-
- com.actelion.research.gui.swing.SwingComponent
-
- com.actelion.research.gui.swing.SwingPopupMenu
-
- All Implemented Interfaces:
GenericComponent,GenericPopupMenu,java.awt.event.ActionListener,java.util.EventListener
public class SwingPopupMenu extends SwingComponent implements java.awt.event.ActionListener, GenericPopupMenu
-
-
Constructor Summary
Constructors Constructor Description SwingPopupMenu(javax.swing.JComponent owner, DialogEventConsumer consumer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)voidaddItem(java.lang.String text, java.lang.String command, boolean enabled)voidaddRadioButtonItem(java.lang.String text, java.lang.String command, java.awt.Color color, boolean isSelected)voidaddSeparator()voidendSubMenu()voidshow(int x, int y)voidstartSubMenu(java.lang.String text)-
Methods inherited from class com.actelion.research.gui.swing.SwingComponent
getComponent, getEventConsumer, setEnabled, setEventConsumer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.actelion.research.gui.generic.GenericComponent
getEventConsumer, setEnabled, setEventConsumer
-
-
-
-
Constructor Detail
-
SwingPopupMenu
public SwingPopupMenu(javax.swing.JComponent owner, DialogEventConsumer consumer)
-
-
Method Detail
-
addItem
public void addItem(java.lang.String text, java.lang.String command, boolean enabled)- Specified by:
addItemin interfaceGenericPopupMenu
-
addRadioButtonItem
public void addRadioButtonItem(java.lang.String text, java.lang.String command, java.awt.Color color, boolean isSelected)- Specified by:
addRadioButtonItemin interfaceGenericPopupMenu
-
startSubMenu
public void startSubMenu(java.lang.String text)
- Specified by:
startSubMenuin interfaceGenericPopupMenu
-
endSubMenu
public void endSubMenu()
- Specified by:
endSubMenuin interfaceGenericPopupMenu
-
addSeparator
public void addSeparator()
- Specified by:
addSeparatorin interfaceGenericPopupMenu
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
show
public void show(int x, int y)- Specified by:
showin interfaceGenericPopupMenu
-
-