📄 openmapcompositiontaskinfo.java
字号:
package com.esri.solutions.jitk.web.tasks.mapcomp;
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;
/**
* Task info bean for the {@link OpenMapCompositionTask}. This task info
* bean will describe the following parameters:
*
* <ul>
* <li>Maps - Mapping between Map Composition ID and its associated name.
* <li>Description - Mapping between Map Composition ID and its associated
* description.
* <li>Preview Header Label
* <li>No Preview Available Message
* <li>Description Header Label
* <li>Confirm Delete Message
* </ul>
*
* This task info bean also describes the following actions:
*
* <ul>
* <li>Open
* <li>Delete
* </ul>
*/
public class OpenMapCompositionTaskInfo extends RenderControlledTaskInfo {
/**
* Serial Version UID
*/
private static final long serialVersionUID = 5936450182874430547L;
/**
* Open action
*/
private TaskActionDescriptor m_openAction;
/**
* Describes the mapping from Map Composition ID to Map Composition Name
* parameter.
*/
private TaskParamDescriptor m_mapsParam;
/**
* Describes the mapping from Map Composition ID to Map Composition
* Description parameter.
*/
private TaskParamDescriptor m_mapDescripsParam;
/**
* Describes the Delete action
*/
private TaskActionDescriptor m_deleteAction;
/**
* Describes the Description Header Label parameter.
*/
private TaskParamDescriptor m_descriptionHeaderLabel;
/**
* Describes the Preview Header Label parameter.
*/
private TaskParamDescriptor m_previewHeaderLabel;
/**
* Describes the No Preview Available Label parameter.
*/
private TaskParamDescriptor m_noPreviewMessage;
/**
* Describes the Confirm Delete Message parameter.
*/
private TaskParamDescriptor m_confirmDeleteMessage;
/**
* Describes the Username parameter.
*/
private TaskParamDescriptor m_usernameParam;
/**
* Describes the Sorters parameter.
*/
private TaskParamDescriptor m_sortersParam;
/**
* Describes the Sort action.
*/
private TaskActionDescriptor m_sortAction;
/**
* Describes the Footer Note parameter.
*/
private TaskParamDescriptor m_footerNote;
/**
* Constructs a new <code>OpenMapCompositionTaskInfo</code> object.
*/
public OpenMapCompositionTaskInfo () {
this._taskDescriptor = new RenderAwareTaskDescription(OpenMapCompositionTask.class, "Open Map Composition", TextResources.getResourceString("openmapcomp.ui.window.title"));
m_openAction = new TaskActionDescriptor(OpenMapCompositionTask.class, "open", TextResources.getResourceString("openmapcomp.ui.label.action.Open"));
m_deleteAction = new TaskActionDescriptor(OpenMapCompositionTask.class, "delete", TextResources.getResourceString("openmapcomp.ui.label.action.Delete"));
m_sortAction = new TaskActionDescriptor(OpenMapCompositionTask.class, "sort", TextResources.getResourceString("openmapcomp.ui.label.action.Sort"));
this._actionDescriptors = new TaskActionDescriptor[3];
this._actionDescriptors[0] = m_openAction;
this._actionDescriptors[1] = m_deleteAction;
this._actionDescriptors[2] = m_sortAction;
m_mapsParam = new TaskParamDescriptor(OpenMapCompositionTask.class, "maps", TextResources.getResourceString("openmapcomp.ui.label.header.Maps"), "getMap", "setMap", "getMaps");
m_mapDescripsParam = new TaskParamDescriptor(OpenMapCompositionTask.class, "mapDescriptions", "Map Descriptions", null, null, "getMapDescriptions");
m_descriptionHeaderLabel = new TaskParamDescriptor(OpenMapCompositionTask.class, "descriptionHeaderLabel", "descriptionHeaderLabel");
m_previewHeaderLabel = new TaskParamDescriptor(OpenMapCompositionTask.class, "previewHeaderLabel", "previewHeaderLabel");
m_noPreviewMessage = new TaskParamDescriptor(OpenMapCompositionTask.class, "noPreviewAvailableMessage", "noPreviewAvailableMessage");
m_confirmDeleteMessage = new TaskParamDescriptor(OpenMapCompositionTask.class, "confirmDeleteMessage", "confirmDeleteMessage");
m_usernameParam = new TaskParamDescriptor(OpenMapCompositionTask.class, "username", "username");
m_sortersParam = new TaskParamDescriptor(OpenMapCompositionTask.class, "sorters", TextResources.getResourceString("openmapcomp.ui.label.param.sorters"), "getSorter", "setSorter", "getSorterList");
m_footerNote = new TaskParamDescriptor(SaveMapCompositionTask.class, "footerNote", TextResources.getResourceString("openmapcomp.ui.footer.note"), null, null);
this._paramDescriptors = new TaskParamDescriptor[9];
this._paramDescriptors[0] = m_mapsParam;
this._paramDescriptors[1] = m_mapDescripsParam;
this._paramDescriptors[2] = m_descriptionHeaderLabel;
this._paramDescriptors[3] = m_previewHeaderLabel;
this._paramDescriptors[4] = m_noPreviewMessage;
this._paramDescriptors[5] = m_confirmDeleteMessage;
this._paramDescriptors[6] = m_usernameParam;
this._paramDescriptors[7] = m_sortersParam;
this._paramDescriptors[8] = m_footerNote;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -