}
public void actionPerformed(ActionEvent e) {
List<EventHandle> eventsToPost = new ArrayList<EventHandle>();
Hashtable<String, Object> qq_Params = new Hashtable<String, Object>();
qq_Params.put("x", new ParameterHolder(0));
qq_Params.put("y", new ParameterHolder(0));
int modifiers = 0;
if ((e.getModifiers() & ActionEvent.CTRL_MASK) > 0)
modifiers = modifiers | 1;
if ((e.getModifiers() & ActionEvent.SHIFT_MASK) > 0)
modifiers = modifiers | 2;
if ((e.getModifiers() & ActionEvent.ALT_MASK) > 0)
modifiers = modifiers | 4;
if ((e.getModifiers() & ActionEvent.META_MASK) > 0)
modifiers = modifiers | 8;
qq_Params.put("modifier", new ParameterHolder(modifiers));
qq_Params.put("node", new ParameterHolder(null));
qq_Params.put("row", new ParameterHolder(0));
qq_Params.put("column", new ParameterHolder(0));
if (e.getSource() instanceof JRadioButtonMenuItem) {
ButtonGroup bg = ((DefaultButtonModel) ((JRadioButtonMenuItem) e
.getSource()).getModel()).getGroup();
_log.debug("Activate on ["+ bg.toString() + "]");
eventsToPost.add(new EventHandle(bg, "Activate", qq_Params));
} else {
Component me = (Component) e.getSource();
_log.debug("Activate on ["+ me.toString() + "]");
eventsToPost.add(new EventHandle(me, "Activate", qq_Params));
//PM:10/11/07 - added the child parameter
Hashtable<String, Object> qq_Params_child = new Hashtable<String, Object>();
qq_Params_child.put("Child", new ParameterHolder(me));
ChildEventHelper.postEventToAllParents(me, "ChildActivate", qq_Params_child, eventsToPost);
}
if ((e.getSource() instanceof JCheckBoxMenuItem)
|| (e.getSource() instanceof JRadioButtonMenuItem)) {
afterValueChange((Component) e.getSource(), eventsToPost);