iresourcecontextmenuitem.java

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

JAVA
31
字号
package com.esri.solutions.jitk.common.contextmenus;

import com.esri.adf.web.data.GISResource;

/**
 * Defines an interface for a specialized Context Menu Item that 
 * is tied to a {@link GISResource} within the Table Of Contents.
 * This interface inherits operations from the {@link IContextMenuItem}
 * interface and adds an additional operation to allow the implementation
 * to decide whether the Context Menu Item should be displayed for the
 * {@link GISResource}.
 *
 */
public interface IResourceContextMenuItem extends IContextMenuItem {
	
	/**
	 * Indicates if this Context Menu Item should be displayed for
	 * the specified {@link GISResource}.  Implementations are to
	 * provide the logic for deciding if the Context Menu Item
	 * should be displayed for the {@link GISResource}.  If <code>
	 * true</code> is returned, then this Context Menu Item 
	 * should be displayed for the GIS Resource, otherwise the
	 * Context Menu Item should not be displayed.
	 * 
	 * @param resource		Reference to {@link GISResource}.
	 * @return Flag indicating if the Context Menu Item should be
	 * 			displayed for the specified {@link GISResource}.
	 */
	public boolean shouldDisplay (GISResource resource);
}

⌨️ 快捷键说明

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