ExpandableComposite ec = toolkit.createExpandableComposi这个composite接受一些风格参数来控制它的表现行为te(form.getBody(), ExpandableComposite.TREE_NODE ExpandableComposite.CLIENT _INDENT); ec.setText("Expandable Composite title"); String ctext = "We will now create a somewhat long text so that "+ "we can use it as content for the expandable composite. "+ "Expandable composite is used to hide or show the text using the " "toggle control"; Label client = toolkit.createLabel(ec, ctext, SWT.WRAP); ec.setClient(client); td = new TableWrapData(); td.colspan = 2; ec.setLayoutData(td); ec.addExpansionListener(new ExpansionAdapter() { public void expansionStateChanged(Expansion Event e) { form.reflow(true); } });
Section section = toolkit.createSection(form.getBody(),
新闻热点
疑难解答