ExpandableComposite ec = toolkit.createExpandableComposi這個(gè)composite接受一些風(fēng)格參數(shù)來控制它的表現(xiàn)行為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(),
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注