📄 setselectionsymbolstaskinfo.java
字号:
package com.esri.solutions.jitk.web.tasks.preferences.selectionsymbols;
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.solutions.jitk.common.resources.TextResources;
import com.esri.solutions.jitk.web.tasks.RenderAwareTaskDescription;
import com.esri.solutions.jitk.web.tasks.RenderControlledTaskInfo;
public class SetSelectionSymbolsTaskInfo extends RenderControlledTaskInfo {
private static final long serialVersionUID = -8072868810702132256L;
public SetSelectionSymbolsTaskInfo() {
super();
_tabularLayout = new TabularLayout[1];
_paramDescriptors = new TaskParamDescriptor[31];
_actionDescriptors = new TaskActionDescriptor[1];
_taskDescriptor = new RenderAwareTaskDescription(SetSelectionSymbolsTask.class, TextResources.getResourceString(ResourceProps.SYMBOLOGY_TITLE), TextResources.getResourceString(ResourceProps.SYMBOLOGY_TITLE));
// Point Marker Symbol Params
_paramDescriptors[0] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "pointMarkerType", TextResources.getResourceString(ResourceProps.SYMBOLOGY_POINTS_LABEL_TYPE), "getPointMarkerTypeList");
_paramDescriptors[1] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "pointMarkerWidth", TextResources.getResourceString(ResourceProps.SYMBOLOGY_POINTS_LABEL_WIDTH), "getSizeList");
_paramDescriptors[2] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "pointMarkerAngle", TextResources.getResourceString(ResourceProps.SYMBOLOGY_POINTS_LABEL_ANGLE), "getAngleList");
_paramDescriptors[3] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "pointMarkerColor", TextResources.getResourceString(ResourceProps.SYMBOLOGY_POINTS_LABEL_FILLCOLOR));
_paramDescriptors[4] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "pointMarkerOutlineColor", TextResources.getResourceString(ResourceProps.SYMBOLOGY_POINTS_LABEL_OUTLINECOLOR));
_paramDescriptors[5] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "pointMarkerTransparency", TextResources.getResourceString(ResourceProps.SYMBOLOGY_POINTS_LABEL_TRANSPARENCY), "getTransparencyList");
_paramDescriptors[6] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "pointMarkerAntialiasing", TextResources.getResourceString(ResourceProps.SYMBOLOGY_POINTS_LABEL_ANTIALIASING));
// Line Symbol Params
_paramDescriptors[7] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "lineType", TextResources.getResourceString(ResourceProps.SYMBOLOGY_LINES_LABEL_TYPE), "getLineTypeList");
_paramDescriptors[8] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "lineWidth", TextResources.getResourceString(ResourceProps.SYMBOLOGY_LINES_LABEL_WIDTH), "getSizeList");
_paramDescriptors[9] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "lineColor", TextResources.getResourceString(ResourceProps.SYMBOLOGY_LINES_LABEL_COLOR));
_paramDescriptors[10] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "lineCapType", TextResources.getResourceString(ResourceProps.SYMBOLOGY_LINES_LABEL_CAPTYPE), "getCapTypeList");
_paramDescriptors[11] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "lineJoinType", TextResources.getResourceString(ResourceProps.SYMBOLOGY_LINES_LABEL_JOINTYPE), "getJoinTypeList");
_paramDescriptors[12] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "lineTransparency", TextResources.getResourceString(ResourceProps.SYMBOLOGY_LINES_LABEL_TRANSPARENCY), "getTransparencyList");
_paramDescriptors[13] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "lineAntialiasing", TextResources.getResourceString(ResourceProps.SYMBOLOGY_LINES_LABEL_ANTIALIASING));
// Polygon Symbol Params
_paramDescriptors[14] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "polygonFillType", TextResources.getResourceString(ResourceProps.SYMBOLOGY_POLYGONS_LABEL_FILLPATTERN), "getPolygonFillTypeList");
_paramDescriptors[15] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "polygonFillColor", TextResources.getResourceString(ResourceProps.SYMBOLOGY_POLYGONS_LABEL_FILLCOLOR));
_paramDescriptors[16] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "polygonFillInterval", TextResources.getResourceString(ResourceProps.SYMBOLOGY_POLYGONS_LABEL_FILLINTERVAL), "getPolygonFillIntervalList");
_paramDescriptors[17] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "polygonFillTransparency", TextResources.getResourceString(ResourceProps.SYMBOLOGY_POLYGONS_LABEL_FILLTRANSPARENCY), "getTransparencyList");
_paramDescriptors[18] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "polygonBoundaryType", TextResources.getResourceString(ResourceProps.SYMBOLOGY_POLYGONS_LABEL_BOUNDARYTYPE), "getPolygonBoundaryTypeList");
_paramDescriptors[19] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "polygonBoundaryWidth", TextResources.getResourceString(ResourceProps.SYMBOLOGY_POLYGONS_LABEL_BOUNDARYWIDTH), "getSizeList");
_paramDescriptors[20] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "polygonBoundaryColor", TextResources.getResourceString(ResourceProps.SYMBOLOGY_POLYGONS_LABEL_BOUNDARYCOLOR));
_paramDescriptors[21] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "polygonBoundaryCapType", TextResources.getResourceString(ResourceProps.SYMBOLOGY_POLYGONS_LABEL_BOUNDARYCAPTYPE), "getCapTypeList");
_paramDescriptors[22] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "polygonBoundaryJoinType", TextResources.getResourceString(ResourceProps.SYMBOLOGY_POLYGONS_LABEL_BOUNDARYJOINTYPE), "getJoinTypeList");
_paramDescriptors[23] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "polygonBoundaryTransparency", TextResources.getResourceString(ResourceProps.SYMBOLOGY_POLYGONS_LABEL_BOUNDARYTRANSPARENCY), "getTransparencyList");
_paramDescriptors[24] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "tab1", TextResources.getResourceString(ResourceProps.SYMBOLOGY_POINTS_TAB));
_paramDescriptors[25] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "tab2", TextResources.getResourceString(ResourceProps.SYMBOLOGY_LINES_TAB));
_paramDescriptors[26] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "tab3", TextResources.getResourceString(ResourceProps.SYMBOLOGY_POLYGONS_TAB));
_paramDescriptors[27] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "footerNoteTab1", TextResources.getResourceString(ResourceProps.SYMBOLOGY_POINTS_FOOTER_NOTE));
_paramDescriptors[28] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "footerNoteTab2", TextResources.getResourceString(ResourceProps.SYMBOLOGY_LINES_FOOTER_NOTE));
_paramDescriptors[29] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "footerNoteTab3", TextResources.getResourceString(ResourceProps.SYMBOLOGY_POLYGONS_FOOTER_NOTE));
_paramDescriptors[30] = new TaskParamDescriptor(SetSelectionSymbolsTask.class, "preview", TextResources.getResourceString(ResourceProps.SYMBOLOGY_LEGEND_PREVIEW));
_tabularLayout[0] = new TabularLayout();
_tabularLayout[0].setId("SelectionSymbologyTask");
_tabularLayout[0].addComponent(this._paramDescriptors[0], new TabularPosition(0, 0, 1, 1));
_tabularLayout[0].addComponent(this._paramDescriptors[1], new TabularPosition(1, 0, 1, 1));
_tabularLayout[0].addComponent(this._paramDescriptors[2], new TabularPosition(2, 0, 1, 1));
_tabularLayout[0].addComponent(this._paramDescriptors[3], new TabularPosition(3, 0, 1, 1));
_tabularLayout[0].addComponent(this._paramDescriptors[4], new TabularPosition(4, 0, 1, 1));
_tabularLayout[0].addComponent(this._paramDescriptors[5], new TabularPosition(5, 0, 1, 1));
_tabularLayout[0].addComponent(this._paramDescriptors[6], new TabularPosition(6, 0, 1, 1));
_tabularLayout[0].addComponent(this._paramDescriptors[7], new TabularPosition(7, 0, 1, 1));
_tabularLayout[0].addComponent(this._paramDescriptors[8], new TabularPosition(8, 0, 1, 1));
_tabularLayout[0].addComponent(this._paramDescriptors[9], new TabularPosition(9, 0, 1, 1));
_tabularLayout[0].addComponent(this._paramDescriptors[10], new TabularPosition(10, 0, 1, 1));
_tabularLayout[0].addComponent(this._paramDescriptors[11], new TabularPosition(11, 0, 1, 1));
_tabularLayout[0].addComponent(this._paramDescriptors[12], new TabularPosition(12, 0, 1, 1));
_tabularLayout[0].addComponent(this._paramDescriptors[13], new TabularPosition(13, 0, 1, 1));
_tabularLayout[0].addComponent(this._paramDescriptors[14], new TabularPosition(14, 0, 1, 1));
_tabularLayout[0].addComponent(this._paramDescriptors[15], new TabularPosition(15, 0, 1, 1));
_tabularLayout[0].addComponent(this._paramDescriptors[16], new TabularPosition(16, 0, 1, 1));
_tabularLayout[0].addComponent(this._paramDescriptors[17], new TabularPosition(17, 0, 1, 1));
_tabularLayout[0].addComponent(this._paramDescriptors[18], new TabularPosition(18, 0, 1, 1));
_tabularLayout[0].addComponent(this._paramDescriptors[19], new TabularPosition(19, 0, 1, 1));
_tabularLayout[0].addComponent(this._paramDescriptors[20], new TabularPosition(20, 0, 1, 1));
_tabularLayout[0].addComponent(this._paramDescriptors[21], new TabularPosition(21, 0, 1, 1));
_tabularLayout[0].addComponent(this._paramDescriptors[22], new TabularPosition(22, 0, 1, 1));
_tabularLayout[0].addComponent(this._paramDescriptors[23], new TabularPosition(23, 0, 1, 1));
_actionDescriptors[0] = new TaskActionDescriptor(SetSelectionSymbolsTask.class, "save", TextResources.getResourceString(ResourceProps.SYMBOLOGY_TITLE));
_actionDescriptors[0].setToolTip(TextResources.getResourceString(ResourceProps.SYMBOLOGY_TITLE));
_actionDescriptors[0].setRendererType(TaskToolDescriptor.TEXT_RENDERER_TYPE);
_tabularLayout[0].addComponent(this._actionDescriptors[0], new TabularPosition(24, 0, 1, 1));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -