本文整理汇总了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));
}
}
}
}