Reputation: 71
I am using using nebula XViewer to display a data in grid format. I have an issue when i am trying to perform column span. Can any one help me to sort out this issue.
Thanks
Upvotes: 0
Views: 233
Reputation: 76
If i understood your question correctly, you can define your custom Content Provider:
contentProvider = new CustomXViewerContentProvider();
where CustomXViewerContentProvider implements 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
Once the content provider has been created you assign it to the xviewer:
XViewer.setContentProvider (contentProvider );
Upvotes: 0