user3844950
user3844950

Reputation: 71

Column span in nebula XViewer

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

Answers (1)

Daniel Scerpa
Daniel Scerpa

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

Related Questions