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

📄 openinagxtaskinfo.java

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

import com.esri.adf.web.data.tasks.TabularLayout;
import com.esri.adf.web.data.tasks.TabularPosition;
import com.esri.adf.web.data.tasks.TaskActionDescriptor;
import com.esri.adf.web.data.tasks.TaskParamDescriptor;
import com.esri.solutions.jitk.common.resources.TextResources;
import com.esri.solutions.jitk.web.tasks.RenderAwareTaskDescription;
import com.esri.solutions.jitk.web.tasks.RenderControlledTaskInfo;

/**
 * Java ADF {@link TaskInfo} class for the Open in ArcGIS
 * Explorer task.
 *
 * <p>
 * Extends the {@link RenderControlledTaskInfo} class for controlling
 * task rendering.
 * </p>
 */
public class OpenInAGXTaskInfo extends RenderControlledTaskInfo {
	private static final long serialVersionUID = -5492936518068827756L;

	/**
     * Message that is displayed to the client before exporting
     * to an ArcGIS Explorer file.
     */
    private TaskParamDescriptor m_message = null;

    /**
     * {@link TaskActionDescriptor} for the 'Ok' button.
     */
    private TaskActionDescriptor m_submitAction = null;

    /**
     * Default no-args constructor that initializes this
     * instance with {@link TaskParamDescriptor} and {@link TaskActionDescriptor}.
     */
    public OpenInAGXTaskInfo() {
        super();

        _taskDescriptor = new RenderAwareTaskDescription(OpenInAGXTask.class,"AGX Export Task", TextResources.getResourceString(ResourceProps.TASK_WINDOW_TITLE));

        _paramDescriptors = new TaskParamDescriptor[2];

        m_message = new TaskParamDescriptor(OpenInAGXTask.class, "message",null);
        m_message.setRendererType(TaskParamDescriptor.TEXT_RENDERER_TYPE);
        _paramDescriptors[0] = m_message;
        _paramDescriptors[1] = new TaskParamDescriptor(OpenInAGXTask.class, "footerNote", TextResources.getResourceString(ResourceProps.FOOTER_NOTE));
        _actionDescriptors = new TaskActionDescriptor[1];

        m_submitAction = new TaskActionDescriptor(OpenInAGXTask.class, "ok", TextResources.getResourceString(ResourceProps.BUTTON_PROCEED));
        _actionDescriptors[0] = m_submitAction;

        _tabularLayout = new TabularLayout[1];
        _tabularLayout[0] = new TabularLayout();

        _tabularLayout[0].setId("Export3D");

        _tabularLayout[0].addComponent(m_message, new TabularPosition(1, 0, 1, 1));
        _tabularLayout[0].addComponent(m_submitAction, new TabularPosition(2, 1, 1, 1));
    }
}

⌨️ 快捷键说明

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