Revision 20098 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/commands/CommandEvent.java

View differences:

CommandEvent.java
3 3
import com.iver.cit.gvsig.fmap.FMapEvent;
4 4

  
5 5
/**
6
 * <p>The class <code>CommandEvent</code> stores all necessary information of a command event 
7
 * produced on a layer.</p>
8
 * 
9
 * @see FMapEvent
6
 * <p>Event produced when a new command is invoked.</p>
10 7
 */
11 8
public class CommandEvent extends FMapEvent{
9
	/**
10
	 * <p>Reference to the new command.</p>
11
	 */
12 12
	private Command command;
13

  
13 14
	/**
14
	 * Constructor method.
15
	 * @param command
15
	 * <p>Creates a new command event.</p>
16
	 * 
17
	 * @param command the new comman
16 18
	 */
17 19
	public CommandEvent(Command command){
18 20
		this.command=command;
19 21
	}
22

  
20 23
	/**
21
	 * Returns the Command
22
	 * @return
24
	 * <p>Gets the new command.</p>
25
	 * 
26
	 * @return the new command
23 27
	 */
24 28
	public Command getCommand(){
25 29
		return command;

Also available in: Unified diff