Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 46646 Details for
Bug 143567
support automatic duplicate detection before submitting reports
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
list prototype without custom rendering
SimpleExpandable.java (text/plain), 11.04 KB, created by
Eugene Kuleshov
on 2006-07-21 12:47:43 EDT
(
hide
)
Description:
list prototype without custom rendering
Filename:
MIME Type:
Creator:
Eugene Kuleshov
Created:
2006-07-21 12:47:43 EDT
Size:
11.04 KB
patch
obsolete
>package swt; > >import org.eclipse.swt.SWT; >import org.eclipse.swt.layout.GridData; >import org.eclipse.swt.layout.GridLayout; >import org.eclipse.swt.widgets.Button; >import org.eclipse.swt.widgets.Composite; >import org.eclipse.swt.widgets.Display; >import org.eclipse.ui.forms.widgets.ExpandableComposite; >import org.eclipse.ui.forms.widgets.FormText; >import org.eclipse.ui.forms.widgets.FormToolkit; >import org.eclipse.ui.forms.widgets.ScrolledForm; >import org.eclipse.ui.forms.widgets.Section; >import org.eclipse.ui.forms.widgets.TableWrapData; >import org.eclipse.ui.forms.widgets.TableWrapLayout; >import com.swtdesigner.SWTResourceManager; > >public class SimpleExpandable extends Composite { > > private FormToolkit toolkit = new FormToolkit(Display.getCurrent()); > /** > * Create the composite > * @param parent > * @param style > */ > public SimpleExpandable(Composite parent, int style) { > super(parent, style); > setLayout(new GridLayout()); > > ScrolledForm scrolledForm = toolkit.createScrolledForm(this); > scrolledForm.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, true)); > scrolledForm.getHorizontalBar().setEnabled(false); > scrolledForm.setExpandVertical(true); > > Composite body = scrolledForm.getBody(); > body.setLayout(new TableWrapLayout()); > toolkit.paintBordersFor(body); > > ExpandableComposite expandableComposite = toolkit.createExpandableComposite(body, Section.EXPANDED | Section.FOCUS_TITLE | Section.TREE_NODE); > expandableComposite.clientVerticalSpacing = 0; > TableWrapData tableWrapData_1 = new TableWrapData(TableWrapData.LEFT, TableWrapData.TOP); > tableWrapData_1.grabHorizontal = true; > expandableComposite.setLayoutData(tableWrapData_1); >// gridData.heightHint = 281; > expandableComposite.setText("New ExpandableComposite"); > toolkit.paintBordersFor(expandableComposite); > > Composite composite = toolkit.createComposite(expandableComposite, SWT.NONE); > TableWrapLayout tableWrapLayout = new TableWrapLayout(); > tableWrapLayout.verticalSpacing = 0; > tableWrapLayout.leftMargin = 15; > tableWrapLayout.rightMargin = 0; > tableWrapLayout.numColumns = 2; > composite.setLayout(tableWrapLayout); > toolkit.paintBordersFor(composite); > expandableComposite.setClient(composite); > > FormText textTextTextFormText = toolkit.createFormText(composite, false); > textTextTextFormText.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.TOP)); > textTextTextFormText.setText("text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text ", false, false); > > Button moreButton = toolkit.createButton(composite, "More...", SWT.NONE); > TableWrapData tableWrapData = new TableWrapData(TableWrapData.LEFT, TableWrapData.TOP); > moreButton.setLayoutData(tableWrapData); > > ExpandableComposite expandableComposite_1 = toolkit.createExpandableComposite(body, Section.EXPANDED | Section.FOCUS_TITLE | Section.TREE_NODE); > expandableComposite_1.setBackground(SWTResourceManager.getColor(192, 192, 192)); > TableWrapData tableWrapData_1_1 = new TableWrapData(TableWrapData.LEFT, TableWrapData.TOP); > tableWrapData_1_1.grabHorizontal = true; > expandableComposite_1.setLayoutData(tableWrapData_1_1); > expandableComposite_1.setText("New ExpandableComposite"); > toolkit.paintBordersFor(expandableComposite_1); > > Composite composite_1 = toolkit.createComposite(expandableComposite_1, SWT.NONE); > composite_1.setBackground(SWTResourceManager.getColor(192, 192, 192)); > TableWrapLayout tableWrapLayout_1 = new TableWrapLayout(); > tableWrapLayout_1.rightMargin = 0; > tableWrapLayout_1.numColumns = 2; > tableWrapLayout_1.leftMargin = 15; > composite_1.setLayout(tableWrapLayout_1); > toolkit.paintBordersFor(composite_1); > expandableComposite_1.setClient(composite_1); > > FormText textTextTextFormText_1 = toolkit.createFormText(composite_1, false); > textTextTextFormText_1.setBackground(SWTResourceManager.getColor(192, 192, 192)); > textTextTextFormText_1.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.TOP)); > textTextTextFormText_1.setText("text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text ", false, false); > > Button moreButton_1 = toolkit.createButton(composite_1, "More...", SWT.NONE); > TableWrapData tableWrapData_2 = new TableWrapData(TableWrapData.LEFT, TableWrapData.TOP); > moreButton_1.setLayoutData(tableWrapData_2); > > ExpandableComposite expandableComposite_2 = toolkit.createExpandableComposite(body, Section.EXPANDED | Section.FOCUS_TITLE | Section.TREE_NODE); > TableWrapData tableWrapData_1_2 = new TableWrapData(TableWrapData.LEFT, TableWrapData.TOP); > tableWrapData_1_2.grabHorizontal = true; > expandableComposite_2.setLayoutData(tableWrapData_1_2); > expandableComposite_2.setText("New ExpandableComposite"); > toolkit.paintBordersFor(expandableComposite_2); > > Composite composite_2 = toolkit.createComposite(expandableComposite_2, SWT.NONE); > TableWrapLayout tableWrapLayout_2 = new TableWrapLayout(); > tableWrapLayout_2.rightMargin = 0; > tableWrapLayout_2.numColumns = 2; > tableWrapLayout_2.leftMargin = 15; > composite_2.setLayout(tableWrapLayout_2); > toolkit.paintBordersFor(composite_2); > expandableComposite_2.setClient(composite_2); > > FormText textTextTextFormText_2 = toolkit.createFormText(composite_2, false); > textTextTextFormText_2.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.TOP)); > textTextTextFormText_2.setText("text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text ", false, false); > > Button moreButton_2 = toolkit.createButton(composite_2, "More...", SWT.NONE); > TableWrapData tableWrapData_3 = new TableWrapData(TableWrapData.LEFT, TableWrapData.TOP); > moreButton_2.setLayoutData(tableWrapData_3); > > ExpandableComposite expandableComposite_3 = toolkit.createExpandableComposite(body, Section.EXPANDED | Section.FOCUS_TITLE | Section.TREE_NODE); > TableWrapData tableWrapData_1_3 = new TableWrapData(TableWrapData.LEFT, TableWrapData.TOP); > tableWrapData_1_3.grabHorizontal = true; > expandableComposite_3.setLayoutData(tableWrapData_1_3); > expandableComposite_3.setText("New ExpandableComposite"); > toolkit.paintBordersFor(expandableComposite_3); > > Composite composite_3 = toolkit.createComposite(expandableComposite_3, SWT.NONE); > TableWrapLayout tableWrapLayout_3 = new TableWrapLayout(); > tableWrapLayout_3.rightMargin = 0; > tableWrapLayout_3.numColumns = 2; > tableWrapLayout_3.leftMargin = 15; > composite_3.setLayout(tableWrapLayout_3); > toolkit.paintBordersFor(composite_3); > expandableComposite_3.setClient(composite_3); > > FormText textTextTextFormText_3 = toolkit.createFormText(composite_3, false); > textTextTextFormText_3.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.TOP)); > textTextTextFormText_3.setText("text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text ", false, false); > > Button moreButton_3 = toolkit.createButton(composite_3, "More...", SWT.NONE); > TableWrapData tableWrapData_4 = new TableWrapData(TableWrapData.LEFT, TableWrapData.TOP); > moreButton_3.setLayoutData(tableWrapData_4); > > ExpandableComposite expandableComposite_4 = toolkit.createExpandableComposite(body, Section.EXPANDED | Section.FOCUS_TITLE | Section.TREE_NODE); > TableWrapData tableWrapData_1_4 = new TableWrapData(TableWrapData.LEFT, TableWrapData.TOP); > tableWrapData_1_4.grabHorizontal = true; > expandableComposite_4.setLayoutData(tableWrapData_1_4); > expandableComposite_4.setText("New ExpandableComposite"); > toolkit.paintBordersFor(expandableComposite_4); > > Composite composite_4 = toolkit.createComposite(expandableComposite_4, SWT.NONE); > TableWrapLayout tableWrapLayout_4 = new TableWrapLayout(); > tableWrapLayout_4.rightMargin = 0; > tableWrapLayout_4.numColumns = 2; > tableWrapLayout_4.leftMargin = 15; > composite_4.setLayout(tableWrapLayout_4); > toolkit.paintBordersFor(composite_4); > expandableComposite_4.setClient(composite_4); > > FormText textTextTextFormText_4 = toolkit.createFormText(composite_4, false); > textTextTextFormText_4.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.TOP)); > textTextTextFormText_4.setText("text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text ", false, false); > > Button moreButton_4 = toolkit.createButton(composite_4, "More...", SWT.NONE); > TableWrapData tableWrapData_5 = new TableWrapData(TableWrapData.LEFT, TableWrapData.TOP); > moreButton_4.setLayoutData(tableWrapData_5); > > ExpandableComposite expandableComposite_5 = toolkit.createExpandableComposite(body, Section.EXPANDED | Section.FOCUS_TITLE | Section.TREE_NODE); > TableWrapData tableWrapData_1_5 = new TableWrapData(TableWrapData.LEFT, TableWrapData.TOP); > tableWrapData_1_5.grabHorizontal = true; > expandableComposite_5.setLayoutData(tableWrapData_1_5); > expandableComposite_5.setText("New ExpandableComposite"); > toolkit.paintBordersFor(expandableComposite_5); > > Composite composite_5 = toolkit.createComposite(expandableComposite_5, SWT.NONE); > TableWrapLayout tableWrapLayout_5 = new TableWrapLayout(); > tableWrapLayout_5.rightMargin = 0; > tableWrapLayout_5.numColumns = 2; > tableWrapLayout_5.leftMargin = 15; > composite_5.setLayout(tableWrapLayout_5); > toolkit.paintBordersFor(composite_5); > expandableComposite_5.setClient(composite_5); > > FormText textTextTextFormText_5 = toolkit.createFormText(composite_5, false); > textTextTextFormText_5.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.TOP)); > textTextTextFormText_5.setText("text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text ", false, false); > > Button moreButton_5 = toolkit.createButton(composite_5, "More...", SWT.NONE); > TableWrapData tableWrapData_6 = new TableWrapData(TableWrapData.LEFT, TableWrapData.TOP); > moreButton_5.setLayoutData(tableWrapData_6); > > // scrolledForm.setText("New ScrolledForm"); > // > } > > @Override > public void dispose() { > super.dispose(); > } > > @Override > protected void checkSubclass() { > // Disable the check that prevents subclassing of SWT components > } > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 143567
:
46617
|
46618
|
46620
|
46621
| 46646 |
46850
|
46851
|
46907
|
46929
|
47016
|
47017
|
47021
|
47025