📄 servicepropertiestaskinfo.java
字号:
package com.esri.solutions.jitk.web.tasks.serviceprops;
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;
/**
* Task Info bean for the Service Properties task. This task info
* will setup parameters for Connection String, GIS Resource Name,
* GIS Resource ID, Web Context Name, Service Name, Service Type,
* and Username. No actions will be exposed.
*/
public class ServicePropertiesTaskInfo extends RenderControlledTaskInfo {
private static final long serialVersionUID = -383850554074009136L;
/**
* Defines the Connection String parameter.
*/
private TaskParamDescriptor m_connStringParam;
/**
* Defines the GIS Resource Name parameter.
*/
private TaskParamDescriptor m_gisResourceNameParam;
/**
* Defines the GIS Resource ID parameter.
*/
private TaskParamDescriptor m_gisResourceIdParam;
/**
* Defines the WebContext Name parameter.
*/
private TaskParamDescriptor m_webCtxNameParam;
/**
* Defines the Service Name parameter.
*/
private TaskParamDescriptor m_serviceNameParam;
/**
* Defines the Service Type parameter.
*/
private TaskParamDescriptor m_serviceTypeParam;
/**
* Defines the Spatial Reference parameter.
*/
private TaskParamDescriptor m_spxRefParam;
/**
* Defines the Username parameter.
*/
private TaskParamDescriptor m_userParam;
/**
* Constructs a new <code>ServicePropertiesTaskInfo</code> object.
* All parameters are constructed and initialized within this
* constructor.
*/
public ServicePropertiesTaskInfo () {
this._taskDescriptor = new RenderAwareTaskDescription(
ServicePropertiesTask.class,
"servicePropertiesTask",
TextResources.getResourceString("servicePropsTask.ui.window.title"));
m_connStringParam = new TaskParamDescriptor(ServicePropertiesTask.class, "connectionString", "connectionString");
m_serviceNameParam = new TaskParamDescriptor(ServicePropertiesTask.class, "serviceName", TextResources.getResourceString("servicePropsTask.ui.label.param.serviceName"));
m_serviceTypeParam = new TaskParamDescriptor(ServicePropertiesTask.class, "serviceType", "serviceType");
m_spxRefParam = new TaskParamDescriptor(ServicePropertiesTask.class, "spatialReference", TextResources.getResourceString("servicePropsTask.ui.label.param.spatialRef"));
m_gisResourceNameParam = new TaskParamDescriptor (ServicePropertiesTask.class, "gisResourceName", "gisResourceName");
m_gisResourceIdParam = new TaskParamDescriptor(ServicePropertiesTask.class, "gisResourceId", "gisResourceId");
m_webCtxNameParam = new TaskParamDescriptor(ServicePropertiesTask.class, "webContextName", "webContextName");
m_userParam = new TaskParamDescriptor(ServicePropertiesTask.class, "user", TextResources.getResourceString("servicePropsTask.ui.label.param.user"));
this._paramDescriptors = new TaskParamDescriptor[8];
_paramDescriptors[0] = m_connStringParam;
_paramDescriptors[1] = m_serviceNameParam;
_paramDescriptors[2] = m_serviceTypeParam;
_paramDescriptors[3] = m_spxRefParam;
_paramDescriptors[4] = m_gisResourceNameParam;
_paramDescriptors[5] = m_gisResourceIdParam;
_paramDescriptors[6] = m_webCtxNameParam;
_paramDescriptors[7] = m_userParam;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -