java - SWT Splitpane thats scrollable -


i have been working jpanels , such build gui's. work use swt build gui's. have composite i've added sash splits sash vertically or horizontally based on attributes of template. question how in swt split sashform , make scrollable on either side of split. if split sashform vertically want ability scroll on either side of split individually. possible in swt? if example of how appreciated. below general idea of code im working with. because work related can not provide code reviewed. class method in extends composite.

private void createcontent() {     this.setlayoutdata(new griddata(swt.fill, swt.fill, true, true));     this.setlayout(stacklayout);     (dvtemplate dvtemplate : loadabletemplates) {         (compositetemplate template : dvtemplate.templatelist) {             composite templatecomposite;             composite parentcomposite = this;             if (!isempty(template.parentcomposite)) {                 parentcomposite = compositemap                         .get(template.parentcomposite);             }             if (isempty(template.sashstyle)) {                 templatecomposite = new datavisualizationcomposite(                         parentcomposite, template.style, template.name,                         datavisualizationcomposite.datavisualization.empty,                         template.parenttemplate, true, false);             } else {                 if ("horizontal".equals(template.sashstyle)) {                     templatecomposite = new sashform(parentcomposite,                             swt.horizontal);                 } else {                     templatecomposite = new sashform(parentcomposite,                             swt.vertical);                 }             }        }   } } 

add scrolledcomposite (or widget natively supports scrolling - e.g. table or tree) sash child.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -