📄 selectbyfeaturebuffertaskinfo.java
字号:
package com.esri.solutions.jitk.web.tasks.query.featurebuffer;
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.adf.web.faces.event.ClientActions;
import com.esri.solutions.jitk.common.resources.TextResources;
import com.esri.solutions.jitk.web.tasks.RenderAwareTaskDescription;
import com.esri.solutions.jitk.web.tasks.RenderControlledTaskInfo;
/**
* This is a task-related UI container for the feature buffer task.
*/
public class SelectByFeatureBufferTaskInfo extends RenderControlledTaskInfo {
private static final long serialVersionUID = -6048312579335723353L;
private static final String FIND_DATA = "featurebuffertask.ui.label.findData";
private static final String INTERSECTING_WITH = "featurebuffertask.ui.label.intersectingWith";
private static final String FEATURE_BUFFER_TITLE = "featurebuffertask.ui.label.selectByFeatureBuffer";
private static final String SPECIFY_POINT = "featurebuffertask.ui.label.selectFeature";
private static final String DISTANCE = "featurebuffertask.ui.label.withaDistanceOf";
private static final String FROM = "featurebuffertask.ui.label.from";
private static final String CLEAR_SELECTION = "featurebuffertask.ui.label.clearSelection";
private static final String POINT_TOOL = "featurebuffertask.ui.tooltip.pointTool";
private static final String POLY_TOOL = "featurebuffertask.ui.tooltip.rectangleTool";
private static final String ERROR_MESSAGE = "featurebuffertask.msg.bufferDistanceError";
private static final String SHOW_INTERSECTING_FEATURES = "featurebuffertask.ui.label.showIntersectingFeatures";
private static final String UIMESSAGE = "featurebuffertask.msg.status";
private static final String FOOTER_NOTE = "featurebuffertask.ui.footer.note";
public SelectByFeatureBufferTaskInfo(){
super();
this._paramDescriptors = new TaskParamDescriptor[11];
this._actionDescriptors = new TaskActionDescriptor[4];
this._toolDescriptors = new TaskToolDescriptor[2];
this._tabularLayout = new TabularLayout[1];
this._taskDescriptor = new RenderAwareTaskDescription(SelectByFeatureBufferTask.class, TextResources.getResourceString(FEATURE_BUFFER_TITLE), TextResources.getResourceString(FEATURE_BUFFER_TITLE));
this._tabularLayout[0] = new TabularLayout();
this._tabularLayout[0].setId("PointBufferSelection");
this._actionDescriptors[0] = new TaskActionDescriptor(SelectByFeatureBufferTask.class, "updateTargetList", TextResources.getResourceString(FROM));
this._actionDescriptors[0].setRendererType(TaskActionDescriptor.TEXT_RENDERER_TYPE);
this._tabularLayout[0].addComponent(this._actionDescriptors[0], new TabularPosition(1, 0, 1, 5));
this._paramDescriptors[0] = new TaskParamDescriptor(SelectByFeatureBufferTask.class, "targetLayer", "", "getTargetLayerList");
this._tabularLayout[0].addComponent(this._paramDescriptors[0], new TabularPosition(2, 0, 1, 5));
this._paramDescriptors[1] = new TaskParamDescriptor(SelectByFeatureBufferTask.class, "distanceLabel", TextResources.getResourceString(DISTANCE));
this._paramDescriptors[1].setRendererType(TaskParamDescriptor.TEXT_RENDERER_TYPE);
this._tabularLayout[0].addComponent(this._paramDescriptors[1], new TabularPosition(3, 0, 1, 5));
this._paramDescriptors[2] = new TaskParamDescriptor(SelectByFeatureBufferTask.class, "distance", "");
this._paramDescriptors[2].setRendererType(TaskParamDescriptor.TEXT_RENDERER_TYPE);
this._tabularLayout[0].addComponent(this._paramDescriptors[2], new TabularPosition(4, 0, 1, 2));
this._paramDescriptors[3] = new TaskParamDescriptor(SelectByFeatureBufferTask.class, "unit", "", "getUnitList");
this._tabularLayout[0].addComponent(this._paramDescriptors[3], new TabularPosition(4, 3, 1, 2));
this._paramDescriptors[4] = new TaskParamDescriptor(SelectByFeatureBufferTask.class, "errorLabel", TextResources.getResourceString(ERROR_MESSAGE));
this._paramDescriptors[4].setRendererType(TaskParamDescriptor.TEXT_RENDERER_TYPE);
this._tabularLayout[0].addComponent(this._paramDescriptors[4], new TabularPosition(5, 0, 1, 5));
this._actionDescriptors[1] = new TaskActionDescriptor(SelectByFeatureBufferTask.class, "updateList", TextResources.getResourceString(FROM));
this._actionDescriptors[1].setRendererType(TaskActionDescriptor.TEXT_RENDERER_TYPE);
this._tabularLayout[0].addComponent(this._actionDescriptors[1], new TabularPosition(6, 0, 1, 4));
this._paramDescriptors[5] = new TaskParamDescriptor(SelectByFeatureBufferTask.class, "layer", "", "getInputLayerList");
this._tabularLayout[0].addComponent(this._paramDescriptors[5], new TabularPosition(7, 0, 1, 4));
this._paramDescriptors[6] = new TaskParamDescriptor(SelectByFeatureBufferTask.class, "specifyPointLabel", TextResources.getResourceString(SPECIFY_POINT));
this._paramDescriptors[6].setRendererType(TaskParamDescriptor.TEXT_RENDERER_TYPE);
this._tabularLayout[0].addComponent(this._paramDescriptors[6], new TabularPosition(8, 0, 1, 3));
this._toolDescriptors[0] = new TaskToolDescriptor(SelectByFeatureBufferTask.class, "selectPoint", TextResources.getResourceString(POINT_TOOL), ClientActions.MAP_POINT);
this._toolDescriptors[0].setDefaultImage("WebResource/com/esri/solutions/jitk/web/tasks/images/selectfeature.gif");
this._toolDescriptors[0].setSelectedImage("WebResource/com/esri/solutions/jitk/web/tasks/images/selectfeatureD.gif");
this._toolDescriptors[0].setHoverImage("WebResource/com/esri/solutions/jitk/web/tasks/images/selectfeatureU.gif");
this._toolDescriptors[0].setDisabledImage("WebResource/com/esri/solutions/jitk/web/tasks/images/selectfeatureX.gif");
this._toolDescriptors[0].setToolTip(TextResources.getResourceString(POINT_TOOL));
this._toolDescriptors[0].setRendererType(TaskToolDescriptor.IMAGE_RENDERER_TYPE);
this._tabularLayout[0].addComponent(this._toolDescriptors[0], new TabularPosition(8, 3, 1, 1));
this._toolDescriptors[1] = new TaskToolDescriptor(SelectByFeatureBufferTask.class, "selectPolygon", TextResources.getResourceString(POLY_TOOL), ClientActions.MAP_RECTANGLE);
this._toolDescriptors[1].setDefaultImage("WebResource/com/esri/solutions/jitk/web/tasks/images/selectpoly.gif");
this._toolDescriptors[1].setSelectedImage("WebResource/com/esri/solutions/jitk/web/tasks/images/selectpolyD.gif");
this._toolDescriptors[1].setHoverImage("WebResource/com/esri/solutions/jitk/web/tasks/images/selectpolyU.gif");
this._toolDescriptors[1].setDisabledImage("WebResource/com/esri/solutions/jitk/web/tasks/images/selectpolyX.gif");
this._toolDescriptors[1].setToolTip(TextResources.getResourceString(POLY_TOOL));
this._toolDescriptors[1].setRendererType(TaskToolDescriptor.IMAGE_RENDERER_TYPE);
this._tabularLayout[0].addComponent(this._toolDescriptors[1], new TabularPosition(8, 4, 1, 1));
this._actionDescriptors[2] = new TaskActionDescriptor(SelectByFeatureBufferTask.class, "clearBuffer", "clearBuffer");
this._actionDescriptors[2].setDefaultImage("WebResource/com/esri/solutions/jitk/web/tasks/images/deleteBuffer.gif");
this._actionDescriptors[2].setSelectedImage("WebResource/com/esri/solutions/jitk/web/tasks/images/deleteBufferD.gif");
this._actionDescriptors[2].setHoverImage("WebResource/com/esri/solutions/jitk/web/tasks/images/deleteBufferU.gif");
this._actionDescriptors[2].setDisabledImage("WebResource/com/esri/solutions/jitk/web/tasks/images/deleteBufferX.gif");
this._actionDescriptors[2].setToolTip(TextResources.getResourceString(CLEAR_SELECTION));
this._actionDescriptors[2].setRendererType(TaskToolDescriptor.IMAGE_RENDERER_TYPE);
this._tabularLayout[0].addComponent(this._actionDescriptors[2], new TabularPosition(8, 5, 1, 3));
this._actionDescriptors[3] = new TaskActionDescriptor(SelectByFeatureBufferTask.class, "showIntersectingFeatures", TextResources.getResourceString(SHOW_INTERSECTING_FEATURES));
this._actionDescriptors[3].setToolTip(TextResources.getResourceString(SHOW_INTERSECTING_FEATURES));
this._tabularLayout[0].addComponent(this._actionDescriptors[3], new TabularPosition(9, 0, 1, 5));
this._paramDescriptors[7] = new TaskParamDescriptor(SelectByFeatureBufferTask.class, "findDataLabel", TextResources.getResourceString(FIND_DATA));
this._paramDescriptors[7].setRendererType(TaskParamDescriptor.TEXT_RENDERER_TYPE);
this._tabularLayout[0].addComponent(this._paramDescriptors[7], new TabularPosition(10, 0, 1, 3, "display_none"));
this._paramDescriptors[8] = new TaskParamDescriptor(SelectByFeatureBufferTask.class, "intersectingWithLabel", TextResources.getResourceString(INTERSECTING_WITH));
this._paramDescriptors[8].setRendererType(TaskParamDescriptor.TEXT_RENDERER_TYPE);
this._tabularLayout[0].addComponent(this._paramDescriptors[8], new TabularPosition(11, 0, 1, 3, "display_none"));
this._paramDescriptors[9] = new TaskParamDescriptor(SelectByFeatureBufferTask.class, "footerNote", TextResources.getResourceString(FOOTER_NOTE));
this._paramDescriptors[9].setRendererType(TaskParamDescriptor.TEXT_RENDERER_TYPE);
this._tabularLayout[0].addComponent(this._paramDescriptors[9], new TabularPosition(12, 0, 1, 3, "display_none"));
this._paramDescriptors[10] = new TaskParamDescriptor(SelectByFeatureBufferTask.class, "uiMessage", TextResources.getResourceString(UIMESSAGE));
this._paramDescriptors[10].setRendererType(TaskParamDescriptor.TEXT_RENDERER_TYPE);
this._tabularLayout[0].addComponent(this._paramDescriptors[10], new TabularPosition(13, 0, 1, 3, "display_none"));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -