imapcompositioneventobserver.java

来自「esri的ArcGIS Server超级学习模板程序(for java)」· Java 代码 · 共 72 行

JAVA
72
字号
package com.esri.solutions.jitk.web.tasks.mapcomp;

import java.util.EventListener;

/**
 * Observes events that occur during Map Composition operations.  A Map Composition
 * can be opened, saved, deleted, or created.  This interface provides callback methods in
 * order for an implementation to observe a specific Map Composition operation.  Each
 * callback method is passed a {@link MapCompositionEvent} object.  This allows the implementation
 * to get at important data from the operation.
 * 
 * <p>
 * An implementation of this interface
 * is created in order to execute some functionality after a Map Composition operation
 * occurred.
 * </p>
 */
public interface IMapCompositionEventObserver extends EventListener {

	/**
	 * Invoked after a Map Composition has been opened.  The Map Composition
	 * that was opened is accessible from the {@link MapCompositionEvent} argument.
	 * 
	 * <p>
	 * When this method is called the {@link MapCompositionEvent#getEventType()} should
	 * return MapCompositionEventType.OPENED.
	 * </p>
	 * 
	 * @param event  Contains event information.
	 */
	public void opened (MapCompositionEvent event);
	
	/**
	 * Invoked after a Map Composition has been saved.  The Map Composition that
	 * was saved is accessible from the {@link MapCompositionEvent} argument.
	 * 
	 * <p>
	 * When this method is called the {@link MapCompositionEvent#getEventType()} should
	 * return MapCompositionEventType.SAVED.
	 * </p>
	 * 
	 * @param event	Contains event information.
	 */
	public void saved (MapCompositionEvent event);
	
	/**
	 * Invoked after a Map Composition has been deleted.  The Map Composition that was
	 * deleted is accessible from the {@link MapCompositionEvent} argument.
	 * 
	 * <p>
	 * When this method is called the {@link MapCompositionEvent#getEventType()} should
	 * return MapCompositionEventType.DELETED.
	 * </p>
	 * 
	 * @param event  Contains event information.
	 */
	public void deleted (MapCompositionEvent event);
	
	/**
	 * Invoked after a Map Composition has been created.  The Map Composition that was created is
	 * accessible from the {@link MapCompositionEvent} argument.
	 * 
	 * <p>
	 * When this method is called the {@link MapCompositionEvent#getEventType()} should 
	 * return MapCompositionEventType.CREATED.
	 * </p>
	 * 
	 * @param event  Contains event information.
	 */
	public void created (MapCompositionEvent event);
}

⌨️ 快捷键说明

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