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

📄 aimsbuffertaskinfo.java

📁 实例实例实例实例实例实例实例实例实例实例实例实例实例实例实例实例
💻 JAVA
字号:
package com.esri.adf.web.aims.tasks;

import com.esri.adf.web.data.tasks.AbsoluteLayout;
import com.esri.adf.web.data.tasks.AbsolutePosition;
import com.esri.adf.web.data.tasks.SimpleTaskInfo;
import com.esri.adf.web.data.tasks.TabularLayout;
import com.esri.adf.web.data.tasks.TaskActionDescriptor;
import com.esri.adf.web.data.tasks.TaskActionDescriptorModel;
import com.esri.adf.web.data.tasks.TaskDescriptor;
import com.esri.adf.web.data.tasks.TaskLayout;
import com.esri.adf.web.data.tasks.TaskParamDescriptor;
import com.esri.adf.web.data.tasks.TaskParamDescriptorModel;
import com.esri.adf.web.data.tasks.TaskToolDescriptor;
import com.esri.adf.web.data.tasks.TaskToolDescriptorModel;
import com.esri.adf.web.tasks.SearchAttributesTask;
import com.esri.adf.web.aims.tasks.AIMSBufferTask;

public class AIMSBufferTaskInfo extends SimpleTaskInfo
{
	private TaskDescriptor taskDesc = null;
	private TaskParamDescriptor[]  taskParams = null;
	private TaskToolDescriptor[] toolDescs = null;
	private TaskActionDescriptor[] taskActions = null;	
	//private TabularLayout[] layout = null;
	private AbsoluteLayout[] layout = null;
	
	public AIMSBufferTaskInfo()
	{
		
		this.taskParams = new TaskParamDescriptor[7];
		this.taskActions = new TaskActionDescriptor[4];
		this.toolDescs = new TaskToolDescriptor[1];
		
		//this.layout = new TabularLayout[1];
		this.layout = new AbsoluteLayout[1];
		
		this.taskDesc = new TaskDescriptor(AIMSBufferTask.class, "AIMS Buffer", "AIMS Buffer Task");
			
		this.taskActions[0] = new TaskActionDescriptor(AIMSBufferTask.class, "doBuffer", "create buffer");
		this.taskActions[0].setRendererType(TaskActionDescriptor.TEXT_RENDERER_TYPE);
		this.taskActions[1] = new TaskActionDescriptor(AIMSBufferTask.class, "doSelectAimsResource", "select");
		this.taskActions[1].setRendererType(TaskActionDescriptor.TEXT_RENDERER_TYPE);
		this.taskActions[2] = new TaskActionDescriptor(AIMSBufferTask.class, "clearMap", "clear map");
		this.taskActions[2].setRendererType(TaskActionDescriptor.TEXT_RENDERER_TYPE);
		this.taskActions[3] = new TaskActionDescriptor(AIMSBufferTask.class, "clearResults", "clear results");
		this.taskActions[3].setRendererType(TaskActionDescriptor.TEXT_RENDERER_TYPE);
		
		this.taskParams[0] = new TaskParamDescriptor(AIMSBufferTask.class, "bufferLayerId", "Buffer Layer", "getBufferLayerList");
		this.taskParams[1] = new TaskParamDescriptor(AIMSBufferTask.class, "targetLayerId", "buffer target layer    ", "getTargetLayerList");
		this.taskParams[2] = new TaskParamDescriptor(AIMSBufferTask.class, "bufferUnitId", "buffer unit", "getBufferUnitList");
		this.taskParams[3] = new TaskParamDescriptor(AIMSBufferTask.class, "bufferDistance", "buffer distance (miles)");
		this.taskParams[4] = new TaskParamDescriptor(AIMSBufferTask.class, "whereClause", "Search Text");
		this.taskParams[5] = new TaskParamDescriptor(AIMSBufferTask.class, "aimsResourceId", "arcims resources       ", "getAimsResourceList");
		this.taskParams[6] = new TaskParamDescriptor(AIMSBufferTask.class, "layerId", "query layer list", "getLayerList");
		
		this.toolDescs[0] = new TaskToolDescriptor(AIMSBufferTask.class, "searchByClick", "Search By Click", "EsriMapPoint");
		this.toolDescs[0].setDefaultImage("images/tasks/search/searchextent.gif");
		this.toolDescs[0].setSelectedImage("images/tasks/search/searchextentD.gif");
		this.toolDescs[0].setHoverImage("images/tasks/search/searchextentU.gif");
		this.toolDescs[0].setDisabledImage("images/tasks/search/searchextentX.gif");
		this.toolDescs[0].setToolTip("Search By Click");
		this.toolDescs[0].setStyle("color:#444444; font-family:verdana; font-size:8pt; font-weight:normal;");
		this.toolDescs[0].setRendererType(TaskToolDescriptor.IMAGE_RENDERER_TYPE);
		
		/*
		this.layout[0] = new TabularLayout();
		this.layout[0].setStyle("width:400px; height:200px; color:#444444; font-family:verdana; font-size:8pt; font-weight:normal;");

		this.layout[0].addComponent(taskParams[5],  new TabularLayout.TabularPosition(0, 0, 1, 2));
		this.layout[0].addComponent(taskActions[1],  new TabularLayout.TabularPosition(0, 1, 1, 1));
		this.layout[0].addComponent(taskParams[6],  new TabularLayout.TabularPosition(1, 0, 1, 2));
		this.layout[0].addComponent(toolDescs[0],  new TabularLayout.TabularPosition(1, 1, 1, 1));				
		this.layout[0].addComponent(taskParams[1],  new TabularLayout.TabularPosition(2, 0, 1, 2));
		this.layout[0].addComponent(taskParams[3],  new TabularLayout.TabularPosition(3, 0, 1, 3));
		this.layout[0].addComponent(taskActions[0],  new TabularLayout.TabularPosition(4, 0, 1, 1));
		this.layout[0].addComponent(taskActions[2],  new TabularLayout.TabularPosition(4, 0, 1, 1));
		this.layout[0].addComponent(taskActions[3],  new TabularLayout.TabularPosition(4, 0, 1, 1));
		*/
		
		
		this.layout[0] = new AbsoluteLayout();
		this.layout[0].setStyle("width:400px; height:145px; color:#444444; font-family:verdana; font-size:8pt; font-weight:normal;");

		this.layout[0].addComponent(taskParams[5],  new AbsolutePosition(32, 5));
		this.layout[0].addComponent(taskActions[1],  new AbsolutePosition(265, 5));
		
		this.layout[0].addComponent(taskParams[6],  new AbsolutePosition(48, 32));
		this.layout[0].addComponent(toolDescs[0],  new AbsolutePosition(264, 28));				
		
		this.layout[0].addComponent(taskParams[1],  new AbsolutePosition(25, 59));
		this.layout[0].addComponent(taskParams[3],  new AbsolutePosition(5, 86));
		
		this.layout[0].addComponent(taskActions[0],  new AbsolutePosition(39, 113));
		this.layout[0].addComponent(taskActions[2],  new AbsolutePosition(144, 113));
		this.layout[0].addComponent(taskActions[3],  new AbsolutePosition(234, 113));
		
	}
	
	public TaskDescriptor getTaskDescriptor() 
	{
	    return this.taskDesc;
	}

	public TaskParamDescriptorModel[] getParamDescriptors() 
	{
	    return this.taskParams;
	}

	public TaskToolDescriptorModel[] getToolDescriptors() 
	{
	    return this.toolDescs;
	}

	public TaskActionDescriptorModel[] getActionDescriptors() 
	{
	    return this.taskActions;
	}
	  
	public TaskLayout[] getTaskLayout() 
	{
	    return this.layout;
	}
	
}

⌨️ 快捷键说明

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