⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mapcompositionevent.java

📁 esri的ArcGIS Server超级学习模板程序(for java)
💻 JAVA
字号:
package com.esri.solutions.jitk.web.tasks.mapcomp;

import java.util.EventObject;

import com.esri.solutions.jitk.personalization.data.IMapComposition;

/**
 * Contains information on a Map Composition event such as its type, and the
 * Map Composition object that was the subject of the event.  An Event type
 * can be:
 * 
 * <ul>
 * 	<li>CREATED
 * 	<li>OPENED
 *  <li>SAVED
 *  <li>DELETED
 * </ul>
 */
public class MapCompositionEvent extends EventObject {

	/**
	 * Enumeration of the set of event types
	 */
	public enum MapCompositionEventType {
		CREATED,
		OPENED,
		SAVED,
		DELETED
	}
	
	private static final long serialVersionUID = 3691684549852046675L;
	
	/**
	 * Type of Map Composition Event
	 * 
	 * @see MapCompositionEventType
	 */
	private MapCompositionEventType m_eventType;
	
	/**
	 * Reference to the Map Composition that is the subject of the
	 * event.
	 */
	private IMapComposition m_mc;

	/**
	 * Constructs a new MapCompositionEvent object.  The property values
	 * of the event must be passed within the constructor.
	 * 
	 * @param source		Object that generated the event.
	 * @param type			Type of Event (CREATED, OPENED, SAVED, DELETED)
	 * @param mc			Map Composition object.
	 */
	public MapCompositionEvent (Object source, MapCompositionEventType type, IMapComposition mc) {
		super(source);
		m_eventType = type;
		m_mc = mc;
	}
	
	/**
	 * Returns the type of event.
	 * 
	 * @return	Type of Event.
	 */
	public MapCompositionEventType getEventType () {
		return m_eventType;
	}
	
	/**
	 * Returns the Map Composition object that was the subject of the
	 * event.
	 * 
	 * @return Map Composition object.
	 */
	public IMapComposition getMapComposition () {
		return m_mc;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -