1
2
3
4
5 package org.rcfaces.core.event;
6
7 import javax.faces.component.UIComponent;
8 import javax.faces.event.ActionEvent;
9 import javax.faces.event.FacesListener;
10
11
12
13
14
15 public class CloseEvent extends ActionEvent {
16 private static final String REVISION = "$Revision: 1.18 $";
17
18 private static final long serialVersionUID = 3236530136476420105L;
19
20 private final String value;
21
22 private final Object valueObject;
23
24 public CloseEvent(UIComponent component, String value, Object valueObject) {
25 super(component);
26
27 this.value = value;
28 this.valueObject = valueObject;
29 }
30
31 public String getValue() {
32 return value;
33 }
34
35 public Object getValueObject() {
36 return valueObject;
37 }
38
39
40
41
42
43
44
45
46 public boolean isAppropriateListener(FacesListener listener) {
47 return (listener instanceof ICloseListener);
48 }
49
50
51
52
53
54
55
56
57 public void processListener(FacesListener listener) {
58 ((ICloseListener) listener).processClose(this);
59 }
60
61 }