简体   繁体   English

星云 XViewer 中的列跨度

[英]Column span in nebula XViewer

I am using using nebula XViewer to display a data in grid format.我正在使用 nebula XViewer 以网格格式显示数据。 I have an issue when i am trying to perform column span.我在尝试执行列跨度时遇到问题。 Can any one help me to sort out this issue.谁能帮我解决这个问题。

Thanks谢谢

If i understood your question correctly, you can define your custom Content Provider:如果我正确理解你的问题,你可以定义你的自定义内容提供者:

contentProvider = new CustomXViewerContentProvider();

where CustomXViewerContentProvider implements ITreeContentProvider CustomXViewerContentProvider 实现 ITreeContentProvider 的地方

public class CustomXViewerContentProvider implements ITreeContentProvider {

in this class you can @Override method getChildren , getParent , hasChildren depending on your data model. With these methods you can create the parent and child hierarchy在此 class 中,您可以根据您的数据 model 使用 @Override 方法getChildrengetParenthasChildren 。使用这些方法,您可以创建父子层次结构

Once the content provider has been created you assign it to the xviewer:创建内容提供者后,您将其分配给 xviewer:

XViewer.setContentProvider (contentProvider );

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM