Class MenuLoader.ActionAdapter
java.lang.Object
|
+--MenuLoader.ActionAdapter
- class MenuLoader.ActionAdapter
- extends java.lang.Object
- implements java.awt.event.ItemListener
Converts an item event to an action event. This is useful
when dealing around with CheckboxMenuItems.
Field Summary |
(package private) java.util.Hashtable |
listeners
|
Method Summary |
void |
addActionListener(java.awt.event.ActionListener l)
Adds the specified action listener to receive action events. |
void |
itemStateChanged(java.awt.event.ItemEvent e)
Invoked when an item's state has been changed. |
void |
removeActionListener(java.awt.event.ActionListener l)
Removes the specified action listener so that it no longer
receives action events. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
listeners
java.util.Hashtable listeners
MenuLoader.ActionAdapter
MenuLoader.ActionAdapter()
addActionListener
public void addActionListener(java.awt.event.ActionListener l)
- Adds the specified action listener to receive action events.
- Parameters:
l
- The action listener.
removeActionListener
public void removeActionListener(java.awt.event.ActionListener l)
- Removes the specified action listener so that it no longer
receives action events.
- Parameters:
l
- The action listener.
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent e)
- Invoked when an item's state has been changed.
- Specified by:
- itemStateChanged in interface java.awt.event.ItemListener