|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.MenuComponent
|
+--java.awt.MenuItem
|
+--java.awt.Menu
|
+--java.awt.PopupMenu
|
+--net.openai.ai.nn.gui.widgets.AIPopupMenu
Helperclass for simple PopupMenus The class registers itself as listener to all JMenu entries. Event are forwareded then to all registered PopupMenuListener's
| Nested Class Summary |
| Nested classes inherited from class java.awt.PopupMenu |
java.awt.PopupMenu.AccessibleAWTPopupMenu |
| Nested classes inherited from class java.awt.Menu |
java.awt.Menu.AccessibleAWTMenu |
| Nested classes inherited from class java.awt.MenuItem |
java.awt.MenuItem.AccessibleAWTMenuItem |
| Nested classes inherited from class java.awt.MenuComponent |
java.awt.MenuComponent.AccessibleAWTMenuComponent |
| Constructor Summary | |
AIPopupMenu()
Constructs a new PopupMenu Object |
|
AIPopupMenu(java.lang.String label)
Constructs a new PopupMenu Object with the given title |
|
AIPopupMenu(java.lang.String label,
AIPopupMenuListener l)
Constructor declaration |
|
| Method Summary | |
void |
add(java.lang.String Name,
java.lang.String Text)
Add a new entry to the Popup-menu The name of the entry is later used as CommandName for ActionEvents |
void |
add(java.lang.String Name,
java.lang.String Text,
int mnemonic)
Add a new entry to the Popup-menu The name of the entry is later used as CommandName for ActionEvents |
void |
addPopupMenuListeners(AIPopupMenuListener l)
Add a listener to the eventlist |
void |
firePopupEvent(java.awt.event.ActionEvent e)
Forwards a event to all listeners. |
void |
removePopupMenuListeners(AIPopupMenuListener l)
Remove a listener from the eventlist |
| Methods inherited from class java.awt.PopupMenu |
addNotify, getAccessibleContext, show |
| Methods inherited from class java.awt.Menu |
add, add, addSeparator, countItems, getItem, getItemCount, insert, insert, insertSeparator, isTearOff, paramString, remove, remove, removeAll, removeNotify |
| Methods inherited from class java.awt.MenuItem |
addActionListener, deleteShortcut, disable, disableEvents, enable, enable, enableEvents, getActionCommand, getActionListeners, getLabel, getListeners, getShortcut, isEnabled, processActionEvent, processEvent, removeActionListener, setActionCommand, setEnabled, setLabel, setShortcut |
| Methods inherited from class java.awt.MenuComponent |
dispatchEvent, getFont, getName, getParent, getPeer, getTreeLock, postEvent, setFont, setName, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
| Constructor Detail |
public AIPopupMenu()
public AIPopupMenu(java.lang.String label)
public AIPopupMenu(java.lang.String label,
AIPopupMenuListener l)
label - l - | Method Detail |
public void addPopupMenuListeners(AIPopupMenuListener l)
public void removePopupMenuListeners(AIPopupMenuListener l)
public void firePopupEvent(java.awt.event.ActionEvent e)
public void add(java.lang.String Name,
java.lang.String Text)
Name - Name for the menu. Also ID for CommandName in ActionEvents.Text - Menucaption
public void add(java.lang.String Name,
java.lang.String Text,
int mnemonic)
Name - Name for the menu. Also ID for CommandName in ActionEvents.Text - Menucaptionmnemonic - Shortcut for this entry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||