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

📄 clearactionhandler.java

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

import com.esri.adf.web.data.WebApplication;
import com.esri.adf.web.data.WebContext;
import com.esri.adf.web.data.geometry.WebGeometry;

import com.esri.solutions.jitk.common.metadata.BasicMetadataExporter;


public class ClearActionHandler implements IActionHandler {
    private String _name = null;
    private WebContext _context = null;
    private WebGeometry _geometry = null;

    /**
     * Clears the highlighted search result from the map by calling
     * {@link WebQuery#clearGraphic(WebGeometry)}.
     */
    public void execute() {
        if (_geometry != null) {
            _context.getWebQuery().clearGraphic(_geometry);
        }
    }

    /*
     * (non-Javadoc)
     * @see com.esri.solutions.jitk.web.tasks.search.csw.actions.IActionHandler#getActionKey()
     */
    public String getActionKey() {
        return WebApplication.getResourceString(
            "SearchAttributesTask.SearchResultContextMenuClearHighLight");
    }

    /*
     * (non-Javadoc)
     * @see com.esri.solutions.jitk.web.tasks.search.csw.actions.IActionHandler#getName()
     */
    public String getName() {
        return _name;
    }

    /*
     * (non-Javadoc)
     * @see com.esri.solutions.jitk.web.tasks.search.csw.actions.IActionHandler#setName(java.lang.String)
     */
    public void setName(String name) {
        _name = name;
    }

    /*
     * (non-Javadoc)
     * @see com.esri.solutions.jitk.web.tasks.search.csw.actions.IActionHandler#shouldDisplay(com.esri.solutions.jitk.common.metadata.BasicMetadataExporter)
     */
    public boolean shouldDisplay(BasicMetadataExporter exporter) {
        return true;
    }

    /*
     * (non-Javadoc)
     * @see com.esri.solutions.jitk.web.tasks.search.csw.actions.IActionHandler#setWebContext(com.esri.adf.web.data.WebContext)
     */
    public void setWebContext(WebContext context) {
        _context = context;
    }

    /*
     * (non-Javadoc)
     * @see com.esri.solutions.jitk.web.tasks.search.csw.actions.IActionHandler#setWebGeometry(com.esri.adf.web.data.geometry.WebGeometry)
     */
    public void setWebGeometry(WebGeometry geom) {
        _geometry = geom;
    }
}

⌨️ 快捷键说明

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