📄 shaperedliningtaskinfo.java
字号:
package com.esri.solutions.jitk.web.tasks.redlining.shape;
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;
public class ShapeRedliningTaskInfo extends RenderControlledTaskInfo {
private static final long serialVersionUID = -6174485191426148924L;
public ShapeRedliningTaskInfo() {
this._paramDescriptors = new TaskParamDescriptor[32];
this._toolDescriptors = new TaskToolDescriptor[8];
this._actionDescriptors = new TaskActionDescriptor[3];
this._tabularLayout = new TabularLayout[1];
this._taskDescriptor = new RenderAwareTaskDescription(ShapeRedliningTask.class, TextResources.getResourceString(ResourceProps.TASK_WINDOW_TITLE), TextResources.getResourceString(ResourceProps.TASK_WINDOW_TITLE));
createPlacePointTool(0, _toolDescriptors);
createPlaceLineTool(1, _toolDescriptors);
createPlacePolygonTool(2, _toolDescriptors);
createPlaceRectangleTool(3, _toolDescriptors);
createPlaceArcTool(4, _toolDescriptors);
createMoveShapeTool(5, _toolDescriptors);
createMoveVertexTool(6, _toolDescriptors);
createFindElementTool(7, _toolDescriptors);
this._actionDescriptors[0] = new TaskActionDescriptor(ShapeRedliningTask.class, "deleteAllShapes", TextResources.getResourceString(ResourceProps.DELETE_ALL_SHAPES));
this._actionDescriptors[0].setDefaultImage("WebResource/com/esri/solutions/jitk/web/tasks/images/delete.gif");
this._actionDescriptors[0].setSelectedImage("WebResource/com/esri/solutions/jitk/web/tasks/images/deleteD.gif");
this._actionDescriptors[0].setHoverImage("WebResource/com/esri/solutions/jitk/web/tasks/images/deleteU.gif");
this._actionDescriptors[0].setDisabledImage("WebResource/com/esri/solutions/jitk/web/tasks/images/deleteX.gif");
this._actionDescriptors[0].setToolTip(TextResources.getResourceString(ResourceProps.DELETE_ALL_SHAPES));
this._actionDescriptors[0].setRendererType(TaskToolDescriptor.IMAGE_RENDERER_TYPE);
this._actionDescriptors[1] = new TaskActionDescriptor(ShapeRedliningTask.class, "deleteSelectShapes", TextResources.getResourceString(ResourceProps.DELETE_SELECT_SHAPES));
this._actionDescriptors[1].setRendererType(TaskToolDescriptor.TEXT_RENDERER_TYPE);
this._actionDescriptors[2] = new TaskActionDescriptor(ShapeRedliningTask.class, "clearSelectShapes", TextResources.getResourceString(ResourceProps.CLEAR_SELECT_SHAPES));
this._actionDescriptors[2].setRendererType(TaskToolDescriptor.TEXT_RENDERER_TYPE);
this._paramDescriptors[0] = new TaskParamDescriptor(ShapeRedliningTask.class, "pointMarkerTypeId", TextResources.getResourceString(ResourceProps.TYPE), "getPointMarkerTypeList");
this._paramDescriptors[1] = new TaskParamDescriptor(ShapeRedliningTask.class, "shapeWidth", TextResources.getResourceString(ResourceProps.WIDTH), "getSizeList");
this._paramDescriptors[2] = new TaskParamDescriptor(ShapeRedliningTask.class, "shapeColor", TextResources.getResourceString(ResourceProps.COLOR));
this._paramDescriptors[3] = new TaskParamDescriptor(ShapeRedliningTask.class, "lineTypeId", TextResources.getResourceString(ResourceProps.TYPE), "getLineTypeList");
this._paramDescriptors[4] = new TaskParamDescriptor(ShapeRedliningTask.class, "lineWidth", TextResources.getResourceString(ResourceProps.WIDTH), "getSizeList");
this._paramDescriptors[5] = new TaskParamDescriptor(ShapeRedliningTask.class, "lineColor", TextResources.getResourceString(ResourceProps.COLOR));
this._paramDescriptors[6] = new TaskParamDescriptor(ShapeRedliningTask.class, "polygonFillTypeId", TextResources.getResourceString(ResourceProps.PATTERN), "getPolygonFillTypeList");
this._paramDescriptors[7] = new TaskParamDescriptor(ShapeRedliningTask.class, "polygonFillColor", TextResources.getResourceString(ResourceProps.COLOR));
this._paramDescriptors[8] = new TaskParamDescriptor(ShapeRedliningTask.class, "polygonBoundaryWidth", TextResources.getResourceString(ResourceProps.WIDTH), "getSizeList");
this._paramDescriptors[9] = new TaskParamDescriptor(ShapeRedliningTask.class, "polygonBoundaryColor", TextResources.getResourceString(ResourceProps.COLOR));
this._paramDescriptors[10] = new TaskParamDescriptor(ShapeRedliningTask.class, "shapesPreview", ".", "getShapePreview", null);
this._paramDescriptors[11] = new TaskParamDescriptor(ShapeRedliningTask.class, "selectShapeFeatures", "0", "getSelectShapeFeatures", null);
this._paramDescriptors[12] = new TaskParamDescriptor(ShapeRedliningTask.class, "deleteShapeMessage", TextResources.getResourceString(ResourceProps.MSG_DELETE_SHAPES));
this._paramDescriptors[13] = new TaskParamDescriptor(ShapeRedliningTask.class, "deleteSelectedShapeMessage", TextResources.getResourceString(ResourceProps.MSG_DELETE_SELECTED_SHAPES));
this._paramDescriptors[14] = new TaskParamDescriptor(ShapeRedliningTask.class, "polygonFillTransparency", TextResources.getResourceString(ResourceProps.TRANSPARENCY),"getPolygonFillTransparencyList");
this._paramDescriptors[15] = new TaskParamDescriptor(ShapeRedliningTask.class, "simplePolygonBoundaryType", TextResources.getResourceString(ResourceProps.POLY_BOUND_STYLE),"getSimplePolygonBoundarySymbolList");
this._paramDescriptors[16] = new TaskParamDescriptor(ShapeRedliningTask.class, "footerNote", TextResources.getResourceString(ResourceProps.FOOTER_NOTE));
this._paramDescriptors[17] = new TaskParamDescriptor(ShapeRedliningTask.class, "legendPreview", TextResources.getResourceString(ResourceProps.LEGEND_PREVIEW));
this._paramDescriptors[18] = new TaskParamDescriptor(ShapeRedliningTask.class, "legendPointStyle", TextResources.getResourceString(ResourceProps.LEGEND_POINT_STYLE));
this._paramDescriptors[19] = new TaskParamDescriptor(ShapeRedliningTask.class, "legendLineStyle", TextResources.getResourceString(ResourceProps.LEGEND_LINE_STYLE));
this._paramDescriptors[20] = new TaskParamDescriptor(ShapeRedliningTask.class, "legendFillStyle", TextResources.getResourceString(ResourceProps.LEGEND_FILL_STYLE));
this._paramDescriptors[21] = new TaskParamDescriptor(ShapeRedliningTask.class, "legendBorderStyle", TextResources.getResourceString(ResourceProps.LEGEND_BORDER_STYLE));
this._paramDescriptors[22] = new TaskParamDescriptor(ShapeRedliningTask.class, "legendArcStyle", TextResources.getResourceString(ResourceProps.LEGEND_ARC_STYLE));
this._paramDescriptors[23] = new TaskParamDescriptor(ShapeRedliningTask.class, "legendConcentricSettings", TextResources.getResourceString(ResourceProps.LEGEND_CONCENTRIC_SETTINGS));
createPlaceArcParamDescs(24, this._paramDescriptors);
this._tabularLayout[0] = new TabularLayout();
this._tabularLayout[0].setId("ShapeTaskSelection");
this._tabularLayout[0].addComponent(this._toolDescriptors[0], new TabularPosition(0, 0, 1, 1));
this._tabularLayout[0].addComponent(this._toolDescriptors[1], new TabularPosition(0, 1, 1, 1));
this._tabularLayout[0].addComponent(this._toolDescriptors[2], new TabularPosition(0, 1, 1, 1));
this._tabularLayout[0].addComponent(this._toolDescriptors[3], new TabularPosition(0, 1, 1, 1));
this._tabularLayout[0].addComponent(this._toolDescriptors[4], new TabularPosition(0, 1, 1, 1));
this._tabularLayout[0].addComponent(this._toolDescriptors[5], new TabularPosition(0, 1, 1, 1));
this._tabularLayout[0].addComponent(this._toolDescriptors[6], new TabularPosition(0, 1, 1, 1));
this._tabularLayout[0].addComponent(this._toolDescriptors[7], new TabularPosition(0, 1, 1, 1));
this._tabularLayout[0].addComponent(this._actionDescriptors[0], new TabularPosition(0, 2, 1, 2));
this._tabularLayout[0].addComponent(_paramDescriptors[0], new TabularPosition(3, 0, 1, 5));
this._tabularLayout[0].addComponent(_paramDescriptors[10], new TabularPosition(3, 5, 11, 1));
this._tabularLayout[0].addComponent(_paramDescriptors[1], new TabularPosition(4, 0, 1, 5));
this._tabularLayout[0].addComponent(_paramDescriptors[2], new TabularPosition(5, 0, 1, 5));
this._tabularLayout[0].addComponent(this._paramDescriptors[14], new TabularPosition(6, 0, 1, 5));
this._tabularLayout[0].addComponent(this._paramDescriptors[15], new TabularPosition(7, 0, 1, 5));
this._tabularLayout[0].addComponent(_paramDescriptors[3], new TabularPosition(8, 0, 1, 5));
this._tabularLayout[0].addComponent(_paramDescriptors[4], new TabularPosition(9, 0, 1, 5));
this._tabularLayout[0].addComponent(_paramDescriptors[5], new TabularPosition(10, 0, 1, 5));
this._tabularLayout[0].addComponent(_paramDescriptors[6], new TabularPosition(11, 0, 1, 5));
this._tabularLayout[0].addComponent(_paramDescriptors[7], new TabularPosition(12, 0, 1, 5));
this._tabularLayout[0].addComponent(_paramDescriptors[8], new TabularPosition(13, 0, 1, 5));
this._tabularLayout[0].addComponent(this._paramDescriptors[11], new TabularPosition(13, 0, 1, 1));
this._tabularLayout[0].addComponent(this._actionDescriptors[1], new TabularPosition(13, 1, 1, 1));
this._tabularLayout[0].addComponent(this._actionDescriptors[2], new TabularPosition(13, 2, 1, 1));
this._tabularLayout[0].addComponent(_paramDescriptors[9], new TabularPosition(14, 0, 1, 5));
this._tabularLayout[0].addComponent(_paramDescriptors[16], new TabularPosition(15, 0, 1, 5));
this._tabularLayout[0].addComponent(this._paramDescriptors[12], new TabularPosition(15, 0, 1, 1, "display:none"));
this._tabularLayout[0].addComponent(this._paramDescriptors[13], new TabularPosition(15, 1, 1, 1, "display:none"));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -