01: package org.osbl.client.action;
02:
03: import java.util.EventObject;
04:
05: /**
06: * The event holds the event source and the target objects, on which the action shall be performed.
07: */
08: public class ObjectActionEvent extends EventObject {
09: Object[] targets;
10:
11: public ObjectActionEvent(Object source, Object... targets) {
12: super (source);
13: this .targets = targets;
14: }
15:
16: /**
17: * Return the target objects.
18: * @return an array of target objects.
19: */
20: public Object[] getTargets() {
21: return targets;
22: }
23: }
|