|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.southern.computing.oopj.ContextMenu
public abstract class ContextMenu
Context-sensitive popup menu that can be added to viewports and graphical objects.
Constructor Summary | |
---|---|
ContextMenu(java.lang.String... items)
Creates a new context menu. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent ev)
Subclasses ordinarily do not override this method. |
void |
attachMenu(javax.swing.JPanel comp)
Associates this menu with a viewport or graphical object. |
abstract void |
handler(java.lang.String item)
Subclasses using a popup menu should override this method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContextMenu(java.lang.String... items)
items
- a comma separated list of strings to appear as menu items in the
context sensitive popup menu.Method Detail |
---|
public void attachMenu(javax.swing.JPanel comp)
comp
- the viewport or graphical object to which this menu is bound.public void actionPerformed(java.awt.event.ActionEvent ev)
actionPerformed
in interface java.awt.event.ActionListener
public abstract void handler(java.lang.String item)
item
- the menu item chosen by the user.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |