01: /* CommandEvent.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Jun 1, 2007 3:26:55 PM, Created by henrichen
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:
20: package org.zkoss.mil.event;
21:
22: import org.zkoss.mil.Command;
23: import org.zkoss.zk.ui.Component;
24: import org.zkoss.zk.ui.event.Event;
25:
26: /**
27: * Used to notify which MIL Command has been triggered.
28: * @author henrichen
29: */
30: public class CommandEvent extends Event {
31: private Command _command;
32:
33: public CommandEvent(String evtnm, Component target, Command cmd) {
34: super (evtnm, target);
35: _command = cmd;
36: }
37:
38: /**
39: * Return the MIL Command that trigers this event.
40: * @return the MIL Command that trigers this event.
41: */
42: public Command getCommand() {
43: return _command;
44: }
45: }
|