当前位置: 首页>>代码示例>>Java>>正文


Java ResourceDescriptor.RU_CONTROLS_LAYOUT_POPUP_SCREEN属性代码示例

本文整理汇总了Java中com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceDescriptor.RU_CONTROLS_LAYOUT_POPUP_SCREEN属性的典型用法代码示例。如果您正苦于以下问题:Java ResourceDescriptor.RU_CONTROLS_LAYOUT_POPUP_SCREEN属性的具体用法?Java ResourceDescriptor.RU_CONTROLS_LAYOUT_POPUP_SCREEN怎么用?Java ResourceDescriptor.RU_CONTROLS_LAYOUT_POPUP_SCREEN使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceDescriptor的用法示例。


在下文中一共展示了ResourceDescriptor.RU_CONTROLS_LAYOUT_POPUP_SCREEN属性的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getReportUnit

public static void getReportUnit(ARestV2Connection rc, AbstractClientReportUnit<?> cr, ResourceDescriptor rd) throws ParseException {
	cr.setAlwaysPromptControls(Misc.nvl(rd.getResourcePropertyValueAsBoolean(ResourceDescriptor.PROP_RU_ALWAYS_PROPMT_CONTROLS), Boolean.FALSE));
	cr.setInputControlRenderingView(rd.getResourcePropertyValue(ResourceDescriptor.PROP_RU_INPUTCONTROL_RENDERING_VIEW));
	cr.setReportRenderingView(rd.getResourcePropertyValue(ResourceDescriptor.PROP_RU_REPORT_RENDERING_VIEW));
	int rurv = Misc.nvl(rd.getResourcePropertyValueAsInteger(ResourceDescriptor.PROP_RU_CONTROLS_LAYOUT), (int) ResourceDescriptor.RU_CONTROLS_LAYOUT_POPUP_SCREEN);
	switch (rurv) {
	case (int) ResourceDescriptor.RU_CONTROLS_LAYOUT_POPUP_SCREEN:
		cr.setControlsLayout(ControlsLayoutType.popupScreen);
		break;
	case (int) ResourceDescriptor.RU_CONTROLS_LAYOUT_SEPARATE_PAGE:
		cr.setControlsLayout(ControlsLayoutType.separatePage);
		break;
	case (int) ResourceDescriptor.RU_CONTROLS_LAYOUT_TOP_OF_PAGE:
		cr.setControlsLayout(ControlsLayoutType.topOfPage);
		break;
	case 4:
		cr.setControlsLayout(ControlsLayoutType.inPage);
		break;
	}
	List<ResourceDescriptor> children = rd.getChildren();
	List<ClientReferenceableInputControl> ics = cr.getInputControls();
	if (ics == null) {
		ics = new ArrayList<ClientReferenceableInputControl>();
		cr.setInputControls(ics);
	}
	Map<String, ClientReferenceableFile> icf = cr.getFiles();
	if (icf == null) {
		icf = new HashMap<String, ClientReferenceableFile>();
		cr.setFiles(icf);
	}
	for (ResourceDescriptor r : children) {
		if (r == null)
			continue;
		if (SelectorDatasource.isDatasource(r))
			cr.setDataSource((ClientReferenceableDataSource) getResourceContainer(rc, r));
		else {
			String t = r.getWsType();
			if (t.equals(ResourceDescriptor.TYPE_QUERY))
				cr.setQuery((ClientReferenceableQuery) getResourceContainer(rc, r));
			else if ((t.equals(ResourceDescriptor.TYPE_JRXML) || t.equals(ResourceDescriptor.TYPE_REFERENCE)) && r.isMainReport()) {
				// r.setName("main_jrxml");
				// r.setLabel("Main Jrxml");
				// r.setUriString(rd.getUriString() + "_files/" + r.getName());
				cr.setJrxml((ClientReferenceableFile) getResourceContainer(rc, r));
			} else if (t.equals(ResourceDescriptor.TYPE_INPUT_CONTROL))
				ics.add((ClientReferenceableInputControl) getResourceContainer(rc, r));
			else if (ResourceFactory.isFileResourceType(r) || t.equals(ResourceDescriptor.TYPE_REFERENCE)) {
				icf.put(r.getName(), (ClientReferenceableFile) getResourceContainer(rc, r));
			}
		}
	}

}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:53,代码来源:Soap2Rest.java


注:本文中的com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceDescriptor.RU_CONTROLS_LAYOUT_POPUP_SCREEN属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。