Revision 1082 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/LayerEvent.java

View differences:

LayerEvent.java
11 11
public class LayerEvent extends FMapEvent {
12 12
	private String property;
13 13
	private FLayer source;
14
	private static final int VISIBILITY_CHANGED = 0;
15
	private static final int ACTIVATION_CHANGED = 1;
16
	private static final int NAME_CHANGED = 2;
14 17

  
18
	public static LayerEvent createVisibilityChangedEvent(FLyrDefault default1, String property){
19
		return new LayerEvent(default1, property, VISIBILITY_CHANGED);
20
	}
21
	
22
	public static LayerEvent createActivationChangedEvent(FLyrDefault default1, String property){
23
		return new LayerEvent(default1, property, ACTIVATION_CHANGED);
24
	}
25
	
26
	public static LayerEvent createNameChangedEvent(FLyrDefault default1, String property){
27
		return new LayerEvent(default1, property, VISIBILITY_CHANGED);
28
	}
29
	
15 30
	/**
16 31
	 * Crea un nuevo LayerEvent.
17 32
	 *
18 33
	 * @param default1
19 34
	 * @param property
20 35
	 */
21
	public LayerEvent(FLyrDefault default1, String property) {
36
	private LayerEvent(FLyrDefault default1, String property, int eventType) {
22 37
		source = default1;
23 38
		this.property = property;
39
		setEventType(eventType);
24 40
	}
25 41

  
26 42
	/**

Also available in: Unified diff