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

📄 adddatataskinfo.java

📁 esri的ArcGIS Server超级学习模板程序(for java)
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
package com.esri.solutions.jitk.web.tasks.resources;

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.adf.web.data.tasks.TaskToolDescriptor;
import com.esri.solutions.jitk.common.resources.TextResources;
import com.esri.solutions.jitk.web.tasks.RenderAwareTaskDescription;
import com.esri.solutions.jitk.web.tasks.RenderControlledTaskInfo;

public class AddDataTaskInfo extends RenderControlledTaskInfo {
	
	private static final long serialVersionUID = 2189398927963209484L;

    public AddDataTaskInfo() {
		super();
        selectServiceRendererLayout();
    }

    public void selectServiceRendererLayout() {
        
        this._paramDescriptors = new TaskParamDescriptor[17];
        this._actionDescriptors = new TaskActionDescriptor[9];
        this._tabularLayout = new TabularLayout[1];
        this._taskDescriptor = new RenderAwareTaskDescription(AddDataTask.class, TextResources.getResourceString(ResourceProps.ADD_DATA_TASK), TextResources.getResourceString(ResourceProps.ADD_DATA_TASK));

        this._actionDescriptors[0] = new TaskActionDescriptor(AddDataTask.class, "selectServices", TextResources.getResourceString(ResourceProps.SELECT_SERVICES));
        this._actionDescriptors[0].setDefaultImage("WebResource/com/esri/solutions/jitk/web/tasks/images/select_services.gif");
        this._actionDescriptors[0].setSelectedImage("WebResource/com/esri/solutions/jitk/web/tasks/images/select_services.gif");
        this._actionDescriptors[0].setHoverImage("WebResource/com/esri/solutions/jitk/web/tasks/images/select_services.gif");
        this._actionDescriptors[0].setDisabledImage("WebResource/com/esri/solutions/jitk/web/tasks/images/select_services.gif");
        this._actionDescriptors[0].setToolTip(TextResources.getResourceString(ResourceProps.SELECT_SERVICES));
        this._actionDescriptors[0].setRendererType(TaskToolDescriptor.IMAGE_RENDERER_TYPE);

        this._actionDescriptors[1] = new TaskActionDescriptor(AddDataTask.class, "previewService", TextResources.getResourceString(ResourceProps.PREVIEW_SERVICE));
        this._actionDescriptors[1].setDefaultImage("WebResource/com/esri/solutions/jitk/web/tasks/images/preview_serviceU.gif");
        this._actionDescriptors[1].setSelectedImage("WebResource/com/esri/solutions/jitk/web/tasks/images/preview_serviceU.gif");
        this._actionDescriptors[1].setHoverImage("WebResource/com/esri/solutions/jitk/web/tasks/images/preview_serviceU.gif");
        this._actionDescriptors[1].setDisabledImage("WebResource/com/esri/solutions/jitk/web/tasks/images/preview_serviceU.gif");
        this._actionDescriptors[1].setToolTip(TextResources.getResourceString(ResourceProps.PREVIEW_SERVICE));
        this._actionDescriptors[1].setRendererType(TaskToolDescriptor.IMAGE_RENDERER_TYPE);

        this._actionDescriptors[2] = new TaskActionDescriptor(AddDataTask.class, "addServices", TextResources.getResourceString(ResourceProps.ADD_SERVICES));
        this._actionDescriptors[2].setToolTip(TextResources.getResourceString(ResourceProps.ADD_SERVICES));
        this._actionDescriptors[2].setRendererType(TaskToolDescriptor.TEXT_RENDERER_TYPE);

        this._actionDescriptors[3] = new TaskActionDescriptor(AddDataTask.class, "removeServices", TextResources.getResourceString(ResourceProps.REMOVE_SERVICES));
        this._actionDescriptors[3].setToolTip(TextResources.getResourceString(ResourceProps.REMOVE_SERVICES));
        this._actionDescriptors[3].setRendererType(TaskToolDescriptor.TEXT_RENDERER_TYPE);

        
        this._paramDescriptors[0] = new TaskParamDescriptor(AddDataTask.class, "availableServices", TextResources.getResourceString(ResourceProps.AVAILABLE_SERVICES), "getAvailableServicesList");
        this._paramDescriptors[0].setRendererType(TaskParamDescriptor.SELECT_RENDERER_TYPE);
        this._paramDescriptors[1] = new TaskParamDescriptor(AddDataTask.class, "selectedServices", TextResources.getResourceString(ResourceProps.SELECTED_SERVICES), "getSelectedServicesList");
        this._paramDescriptors[1].setRendererType(TaskParamDescriptor.SELECT_RENDERER_TYPE);

        this._actionDescriptors[4] = new TaskActionDescriptor(AddDataTask.class, "previewMapService", TextResources.getResourceString(ResourceProps.PREVIEW_MAP_SERVICE));
        this._actionDescriptors[4].setDefaultImage("WebResource/com/esri/solutions/jitk/web/tasks/images/preview.gif");
        this._actionDescriptors[4].setSelectedImage("WebResource/com/esri/solutions/jitk/web/tasks/images/preview.gif");
        this._actionDescriptors[4].setHoverImage("WebResource/com/esri/solutions/jitk/web/tasks/images/preview.gif");
        this._actionDescriptors[4].setDisabledImage("WebResource/com/esri/solutions/jitk/web/tasks/images/preview.gif");
        this._actionDescriptors[4].setToolTip(TextResources.getResourceString(ResourceProps.PREVIEW_MAP_SERVICE));
        this._actionDescriptors[4].setRendererType(TaskToolDescriptor.IMAGE_RENDERER_TYPE);

        this._actionDescriptors[5] = new TaskActionDescriptor(AddDataTask.class, "addGISServer", TextResources.getResourceString(ResourceProps.ADD_GIS_SERVER));
        this._actionDescriptors[5].setDefaultImage("WebResource/com/esri/solutions/jitk/web/tasks/images/addgisserver.gif");
        this._actionDescriptors[5].setSelectedImage("WebResource/com/esri/solutions/jitk/web/tasks/images/addgisserver.gif");
        this._actionDescriptors[5].setHoverImage("WebResource/com/esri/solutions/jitk/web/tasks/images/addgisserver.gif");
        this._actionDescriptors[5].setDisabledImage("WebResource/com/esri/solutions/jitk/web/tasks/images/addgisserver.gif");
        this._actionDescriptors[5].setToolTip(TextResources.getResourceString(ResourceProps.ADD_GIS_SERVER));
        this._actionDescriptors[5].setRendererType(TaskToolDescriptor.IMAGE_RENDERER_TYPE);

        this._actionDescriptors[6] = new TaskActionDescriptor(AddDataTask.class, "removeGISServer", TextResources.getResourceString(ResourceProps.REMOVE_GIS_SERVER));
        this._actionDescriptors[6].setDefaultImage("WebResource/com/esri/solutions/jitk/web/tasks/images/removegisserver.gif");
        this._actionDescriptors[6].setSelectedImage("WebResource/com/esri/solutions/jitk/web/tasks/images/removegisserver.gif");
        this._actionDescriptors[6].setHoverImage("WebResource/com/esri/solutions/jitk/web/tasks/images/removegisserver.gif");
        this._actionDescriptors[6].setDisabledImage("WebResource/com/esri/solutions/jitk/web/tasks/images/removegisserver.gif");
        this._actionDescriptors[6].setToolTip(TextResources.getResourceString(ResourceProps.REMOVE_GIS_SERVER));
        this._actionDescriptors[6].setRendererType(TaskToolDescriptor.IMAGE_RENDERER_TYPE);

        this._actionDescriptors[7] = new TaskActionDescriptor(AddDataTask.class, "addGISServerUpdate", TextResources.getResourceString(ResourceProps.ADD_GIS_SERVER_UPDATE));
        this._actionDescriptors[7].setToolTip(TextResources.getResourceString(ResourceProps.ADD_GIS_SERVER_UPDATE));
        this._actionDescriptors[7].setRendererType(TaskToolDescriptor.TEXT_RENDERER_TYPE);

        this._paramDescriptors[2] = new TaskParamDescriptor(AddDataTask.class, "addGISServerInfo", TextResources.getResourceString(ResourceProps.ADD_GIS_SERVER_INFO));
        this._paramDescriptors[2].setRendererType(TaskParamDescriptor.TEXT_RENDERER_TYPE);

        this._paramDescriptors[3] = new TaskParamDescriptor(AddDataTask.class, "blankSpace0", ResourceProps.BLANK_SPACE, "getBlankSpace0", null);

        this._paramDescriptors[4] = new TaskParamDescriptor(AddDataTask.class, "previewTransparency", TextResources.getResourceString(ResourceProps.TRANSPARENCY));
        this._paramDescriptors[4].setRendererType(TaskParamDescriptor.TEXT_RENDERER_TYPE);

        this._actionDescriptors[8] = new TaskActionDescriptor(AddDataTask.class, "finishAddData", TextResources.getResourceString(ResourceProps.FINISH));
        this._actionDescriptors[8].setToolTip(TextResources.getResourceString(ResourceProps.FINISH));
        this._actionDescriptors[8].setRendererType(TaskToolDescriptor.TEXT_RENDERER_TYPE);

        this._paramDescriptors[5] = new TaskParamDescriptor(AddDataTask.class, "errorMessage", "");
        this._paramDescriptors[5].setRendererType(TaskParamDescriptor.TEXT_RENDERER_TYPE);

        this._paramDescriptors[6] = new TaskParamDescriptor(AddDataTask.class, "addServiceErrorMessage", "");

⌨️ 快捷键说明

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