01: /* ForwardEvent.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Sun Aug 19 13:38:09 2007, Created by tomyeh
10: }}IS_NOTE
11:
12: Copyright (C) 2007 Potix Corporation. All Rights Reserved.
13:
14: {{IS_RIGHT
15: This program is distributed under GPL Version 2.0 in the hope that
16: it will be useful, but WITHOUT ANY WARRANTY.
17: }}IS_RIGHT
18: */
19: package org.zkoss.zk.ui.event;
20:
21: import org.zkoss.zk.ui.Component;
22:
23: /**
24: * Represents the event forwarded by the forward condition.
25: * The forward condition is added by use of {@link Component#addForward}.
26: *
27: * @author tomyeh
28: * @since 3.0.0
29: */
30: public class ForwardEvent extends Event {
31: private final Event _origin;
32:
33: /** Constructs a foward event.
34: *
35: * @param origin the original event that causes this forward event.
36: */
37: public ForwardEvent(String name, Component target, Event origin) {
38: super (name, target);
39: _origin = origin;
40: }
41:
42: /** Returns the original Event.
43: */
44: public Event getOrigin() {
45: return _origin;
46: }
47: }
|