⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adddatataskinfo.java

📁 esri的ArcGIS Server超级学习模板程序(for java)
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
        this._paramDescriptors[6].setRendererType(TaskParamDescriptor.TEXT_RENDERER_TYPE);

        this._paramDescriptors[7] = new TaskParamDescriptor(AddDataTask.class, "backgroundTransparent", TextResources.getResourceString(ResourceProps.MAKE_BACKGROUND_TRANSPARENT));
        this._paramDescriptors[7].setRendererType(TaskParamDescriptor.CHECKBOX_RENDERER_TYPE);
        
        this._paramDescriptors[8] = new TaskParamDescriptor(AddDataTask.class, "message1", TextResources.getResourceString(ResourceProps.MESSAGE1));
        this._paramDescriptors[9] = new TaskParamDescriptor(AddDataTask.class, "message2", TextResources.getResourceString(ResourceProps.MESSAGE2));
        this._paramDescriptors[10] = new TaskParamDescriptor(AddDataTask.class, "message3", TextResources.getResourceString(ResourceProps.MESSAGE3));
        this._paramDescriptors[11] = new TaskParamDescriptor(AddDataTask.class, "message4", TextResources.getResourceString(ResourceProps.MESSAGE4));
        this._paramDescriptors[12] = new TaskParamDescriptor(AddDataTask.class, "message5", TextResources.getResourceString(ResourceProps.MESSAGE5));
        this._paramDescriptors[13] = new TaskParamDescriptor(AddDataTask.class, "message6", TextResources.getResourceString(ResourceProps.MESSAGE6));
        this._paramDescriptors[15] = new TaskParamDescriptor(AddDataTask.class, "previewServiceLabel", TextResources.getResourceString(ResourceProps.PREVIEW_SERVICE));
        this._paramDescriptors[16] = new TaskParamDescriptor(AddDataTask.class, "connectionTypes", "");
        
        this._tabularLayout[0] = new TabularLayout();

		this._paramDescriptors[14] = new TaskParamDescriptor(AddDataTask.class, "footerNote", TextResources.getResourceString(ResourceProps.FOOTER_NOTE));
		this._tabularLayout[0].addComponent(this._paramDescriptors[14], new TabularPosition(15, 0, 1, 1, "display:none"));         
        
        this._tabularLayout[0].addComponent(_paramDescriptors[3],  new TabularPosition(0, 1, 1, 4));
        this._tabularLayout[0].addComponent(_paramDescriptors[0],  new TabularPosition(1, 0, 2, 2));
        this._tabularLayout[0].addComponent(_actionDescriptors[2], new TabularPosition(1, 2, 1, 1));
        this._tabularLayout[0].addComponent(_actionDescriptors[3], new TabularPosition(2, 2, 1, 1));
        
        this._tabularLayout[0].addComponent(_paramDescriptors[1],  new TabularPosition(1, 3, 2, 2));
        this._tabularLayout[0].addComponent(_actionDescriptors[4], new TabularPosition(5, 0, 1, 3));
        this._tabularLayout[0].addComponent(_actionDescriptors[5], new TabularPosition(6, 0, 1, 4));
        this._tabularLayout[0].addComponent(_actionDescriptors[6], new TabularPosition(7, 0, 1, 4));
        this._tabularLayout[0].addComponent(_paramDescriptors[7],  new TabularPosition(5, 4, 1, 2));
        this._tabularLayout[0].addComponent(_actionDescriptors[8], new TabularPosition(9, 4, 1, 1));

        this._tabularLayout[0].addComponent(_actionDescriptors[7], new TabularPosition(10, 0, 1, 4));
        this._tabularLayout[0].addComponent(_paramDescriptors[2],  new TabularPosition(11, 0, 1, 4));
        this._tabularLayout[0].addComponent(_paramDescriptors[6],  new TabularPosition(12, 0, 1, 4));
        this._tabularLayout[0].addComponent(_paramDescriptors[5],  new TabularPosition(13, 0, 1, 4));

        this._tabularLayout[0].addComponent(_paramDescriptors[8],  new TabularPosition(14, 0, 1, 1, "display:none"));
        this._tabularLayout[0].addComponent(_paramDescriptors[9],  new TabularPosition(14, 1, 1, 1, "display:none"));
        this._tabularLayout[0].addComponent(_paramDescriptors[10], new TabularPosition(14, 2, 1, 1, "display:none"));
        this._tabularLayout[0].addComponent(_paramDescriptors[11], new TabularPosition(14, 3, 1, 1, "display:none"));
        this._tabularLayout[0].addComponent(_paramDescriptors[12], new TabularPosition(14, 4, 1, 1, "display:none"));
        this._tabularLayout[0].addComponent(_paramDescriptors[13], new TabularPosition(14, 5, 1, 1, "display:none"));
        this._tabularLayout[0].addComponent(_paramDescriptors[15], new TabularPosition(14, 6, 1, 1, "display:none"));
        this._tabularLayout[0].addComponent(_paramDescriptors[16], new TabularPosition(14, 7, 1, 1, "display:none"));
    }

    public void selectPreviewRendererLayout() {
        this._paramDescriptors = new TaskParamDescriptor[7];
        this._actionDescriptors = new TaskActionDescriptor[2];
        this._tabularLayout = new TabularLayout[1];
        this._taskDescriptor = new RenderAwareTaskDescription(AddDataTask.class, "Add Data", TextResources.getResourceString(ResourceProps.ADD_DATA_TASK));

        this._actionDescriptors[0] = new TaskActionDescriptor(AddDataTask.class, "selectServices", TextResources.getResourceString(ResourceProps.SELECT_SERVICES));
        this._actionDescriptors[0].setDefaultImage("WebResource/com/esri/solutions/jitk/web/tasks/images/select_servicesU.gif");
        this._actionDescriptors[0].setSelectedImage("WebResource/com/esri/solutions/jitk/web/tasks/images/select_servicesU.gif");
        this._actionDescriptors[0].setHoverImage("WebResource/com/esri/solutions/jitk/web/tasks/images/select_servicesU.gif");
        this._actionDescriptors[0].setDisabledImage("WebResource/com/esri/solutions/jitk/web/tasks/images/select_servicesU.gif");
        this._actionDescriptors[0].setToolTip(TextResources.getResourceString(ResourceProps.SELECT_SERVICES));
        this._actionDescriptors[0].setRendererType(TaskToolDescriptor.IMAGE_RENDERER_TYPE);

        this._actionDescriptors[1] = new TaskActionDescriptor(AddDataTask.class, "previewService", TextResources.getResourceString(ResourceProps.PREVIEW_SERVICE));
        this._actionDescriptors[1].setDefaultImage("WebResource/com/esri/solutions/jitk/web/tasks/images/preview_service.gif");
        this._actionDescriptors[1].setSelectedImage("WebResource/com/esri/solutions/jitk/web/tasks/images/preview_service.gif");
        this._actionDescriptors[1].setHoverImage("WebResource/com/esri/solutions/jitk/web/tasks/images/preview_service.gif");
        this._actionDescriptors[1].setDisabledImage("WebResource/com/esri/solutions/jitk/web/tasks/images/preview_service.gif");
        this._actionDescriptors[1].setToolTip(TextResources.getResourceString(ResourceProps.PREVIEW_SERVICE));
        this._actionDescriptors[1].setRendererType(TaskToolDescriptor.IMAGE_RENDERER_TYPE);

        this._paramDescriptors[0] = new TaskParamDescriptor(AddDataTask.class, "previewDescription", TextResources.getResourceString(ResourceProps.PREVIEW_DESCRIPTION), "getPreviewDescription", null);

        this._paramDescriptors[1] = new TaskParamDescriptor(AddDataTask.class, "previewSelectedServices", TextResources.getResourceString(ResourceProps.AVAILABLE_SERVICES), "getSelectedServicesList");
        this._paramDescriptors[1].setRendererType(TaskParamDescriptor.SELECT_RENDERER_TYPE);
        
        this._paramDescriptors[2] = new TaskParamDescriptor(AddDataTask.class, "previewName", TextResources.getResourceString(ResourceProps.NAME));
        this._paramDescriptors[2].setRendererType(TaskParamDescriptor.TEXT_RENDERER_TYPE);
        
        this._paramDescriptors[3] = new TaskParamDescriptor(AddDataTask.class, "previewTransparency", TextResources.getResourceString(ResourceProps.TRANSPARENCY));
        this._paramDescriptors[3].setRendererType(TaskParamDescriptor.TEXT_RENDERER_TYPE);
        
        this._paramDescriptors[4] = new TaskParamDescriptor(AddDataTask.class, "previewServiceMap", TextResources.getResourceString(ResourceProps.PREVIEW_SERVICE));
        this._paramDescriptors[4].setRendererType(TaskParamDescriptor.TEXT_RENDERER_TYPE);
        
        this._paramDescriptors[5] = new TaskParamDescriptor(AddDataTask.class, "blankSpace1", ResourceProps.BLANK_SPACE, "getBlankSpace1", null);

        this._actionDescriptors[6] = new TaskActionDescriptor(AddDataTask.class, "finishAddData", TextResources.getResourceString(ResourceProps.FINISH));
        this._actionDescriptors[6].setToolTip(TextResources.getResourceString(ResourceProps.FINISH));
        this._actionDescriptors[6].setRendererType(TaskToolDescriptor.TEXT_RENDERER_TYPE);

        this._tabularLayout[0] = new TabularLayout();
        this._tabularLayout[0].addComponent(_actionDescriptors[0], new TabularPosition(0, 0, 1, 1));
        this._tabularLayout[0].addComponent(_actionDescriptors[1], new TabularPosition(0, 1, 1, 1));
        this._tabularLayout[0].addComponent(_paramDescriptors[5],  new TabularPosition(0, 2, 1, 3));
        this._tabularLayout[0].addComponent(_paramDescriptors[0],  new TabularPosition(1, 0, 1, 3));
        this._tabularLayout[0].addComponent(_paramDescriptors[1],  new TabularPosition(2, 0, 1, 2));
        this._tabularLayout[0].addComponent(_paramDescriptors[4],  new TabularPosition(2, 2, 1, 2));
        this._tabularLayout[0].addComponent(_paramDescriptors[2],  new TabularPosition(3, 0, 1, 5));
        this._tabularLayout[0].addComponent(_paramDescriptors[3],  new TabularPosition(4, 0, 1, 5));
        this._tabularLayout[0].addComponent(_actionDescriptors[6], new TabularPosition(5, 4, 1, 1));
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -