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

📄 printtaskinfo.java

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

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 PrintTaskInfo extends RenderControlledTaskInfo {	
	private static final long serialVersionUID = -3724521096290595223L;

	public PrintTaskInfo() {
		super();

		this._paramDescriptors = new TaskParamDescriptor[8];
		this._actionDescriptors = new TaskActionDescriptor[1];		
		this._toolDescriptors = new TaskToolDescriptor[0];
		this._tabularLayout = new TabularLayout[1];
		this._taskDescriptor = new RenderAwareTaskDescription(PrintTask.class, TextResources.getResourceString(ResourceProps.PRINT_TITLE), TextResources.getResourceString(ResourceProps.PRINT_TITLE));

		this._tabularLayout[0] = new TabularLayout();
		this._tabularLayout[0].setId("PrintSelection");

		this._paramDescriptors[0] = new TaskParamDescriptor(PrintTask.class, "title", TextResources.getResourceString(ResourceProps.TITLE));
		this._paramDescriptors[0].setRendererType(TaskParamDescriptor.TEXT_RENDERER_TYPE);
		this._tabularLayout[0].addComponent(this._paramDescriptors[0], new TabularPosition(1, 0, 1, 1, "border-width:0px;text-align:left;"));

		this._paramDescriptors[1] = new TaskParamDescriptor(PrintTask.class, "template", TextResources.getResourceString(ResourceProps.SELECT_A_TEMPLATE), "getTemplateList");
		this._paramDescriptors[1].setRendererType(TaskParamDescriptor.SELECT_RENDERER_TYPE);
		this._tabularLayout[0].addComponent(this._paramDescriptors[1], new TabularPosition(2, 0, 1, 1, "border-width:0px;text-align:left;"));

		this._paramDescriptors[2] = new TaskParamDescriptor(PrintTask.class, "mapWidth", TextResources.getResourceString(ResourceProps.MAP_WIDTH), "getMapWidthList");
		this._paramDescriptors[2].setRendererType(TaskParamDescriptor.SELECT_RENDERER_TYPE);
		this._tabularLayout[0].addComponent(this._paramDescriptors[2], new TabularPosition(3, 0, 1, 1, "border-width:0px;text-align:left;"));
		
		//this._paramDescriptors[3] = new TaskParamDescriptor(PrintTask.class, "scale", TextResources.getResourceString(ResourceProps.SCALE));
		//this._paramDescriptors[3].setRendererType(TaskParamDescriptor.TEXT_RENDERER_TYPE);
		//this._tabularLayout[0].addComponent(this._paramDescriptors[3], new TabularPosition(4, 0, 1, 1, "border-width:0px;text-align:left;"));

		this._actionDescriptors[0] = new TaskActionDescriptor(PrintTask.class, "createPrintPage", TextResources.getResourceString(ResourceProps.CREATE_PRINT_PAGE));
		this._actionDescriptors[0].setToolTip(TextResources.getResourceString(ResourceProps.CREATE_PRINT_PAGE));
		this._tabularLayout[0].addComponent(this._actionDescriptors[0], new TabularPosition(4, 0, 1, 1));

		this._paramDescriptors[3] = new TaskParamDescriptor(PrintTask.class, "printPropertiesLabel", TextResources.getResourceString(ResourceProps.PRINT_PROPERTIES));
		this._paramDescriptors[3].setRendererType(TaskParamDescriptor.TEXT_RENDERER_TYPE);
		this._tabularLayout[0].addComponent(this._paramDescriptors[3], new TabularPosition(5, 0, 1, 1, "display:none"));

		this._paramDescriptors[4] = new TaskParamDescriptor(PrintTask.class, "specifyLayoutLabel", TextResources.getResourceString(ResourceProps.SPECIFY_LAYOUT));
		this._paramDescriptors[4].setRendererType(TaskParamDescriptor.TEXT_RENDERER_TYPE);
		this._tabularLayout[0].addComponent(this._paramDescriptors[4], new TabularPosition(6, 0, 1, 1, "display:none"));

		this._paramDescriptors[5] = new TaskParamDescriptor(PrintTask.class, "loadingMessageLabel", TextResources.getResourceString(ResourceProps.LOADING_MESSAGE));
		this._paramDescriptors[5].setRendererType(TaskParamDescriptor.TEXT_RENDERER_TYPE);
		this._tabularLayout[0].addComponent(this._paramDescriptors[5], new TabularPosition(7, 0, 1, 1, "display:none"));

		this._paramDescriptors[6] = new TaskParamDescriptor(PrintTask.class, "resultUrl", "");
		this._tabularLayout[0].addComponent(this._paramDescriptors[6], new TabularPosition(8, 0, 1, 1, "display:none"));
		
		this._paramDescriptors[7] = new TaskParamDescriptor(PrintTask.class, "footerNote", TextResources.getResourceString(ResourceProps.FOOTER_NOTE));
		this._tabularLayout[0].addComponent(this._paramDescriptors[7], new TabularPosition(9, 0, 1, 1, "display:none"));

	}
}

⌨️ 快捷键说明

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