1
2
3
4
5 package org.rcfaces.core.event;
6
7 import javax.faces.component.UIComponent;
8 import javax.faces.event.FacesListener;
9
10
11
12
13
14 public class MenuEvent extends CameliaEvent {
15 private static final String REVISION = "$Revision: 1.18 $";
16
17 private static final long serialVersionUID = -5811470604287524737L;
18
19 public MenuEvent(UIComponent component, int type) {
20 super(component, type);
21 }
22
23 public boolean isAppropriateListener(FacesListener listener) {
24 return (listener instanceof IMenuListener);
25 }
26
27 public void processListener(FacesListener listener) {
28 ((IMenuListener) listener).menuShown(this);
29 }
30
31 }