Column span in nebula XViewer

227 views Asked by At

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

1

There are 1 answers

0
Daniel Scerpa On

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 );