Home
.. Links
.. Search
.. Plugins
.. Help
.. Irc Faq

Projects
.. Platform/Faq
.. JDT/Faq/Plan
.. PDE/Faq
.. SWT/Faq
.. RCP/Faq

Tools Projects
.. CDT/Faq
.. GEF/Faq
.. EMF/Faq

Wiki Tutorials

Hosted Projects
.. MTJ
.. Google Summer Of Code 2007
.. Update Manager 2.0
.. EasyEclipse
.. Stylebase for Eclipse

Archives

TableWrappedData


xanax online phentermine 37 5mg hydrocodone online buy xanax diazepam buy online adipex diet pills cheap fioricet alprazolam pictures ativan addiction cheap cialis tramadol online generic viagra buy valium online buy phentermine phentermine online buy hydrocodone online xanax buy diazepam adipex buy fioricet alprazolam pictures ativan cialis online tramadol online generic viagra valium buy cheap celexa buy valium online xanax cheap tramadol cialis drug fioricet buy ambien buy cheap carisoprodol buy cheap ultram celexa levitra soma online tramadol cod generic levitra buy cheap ultram effects of zoloft meridia buy cheap celexa cheap cialis atenolol side effects hydrocodone no prescription drug ultracet buy carisoprodol cheap diazepam diazepam buy online buy tramadol buy fioricet cheap ultram cheap viagra buy xanax ambien side effects buy alprazolam online ativan data order cialis carisoprodol buying buy cheap diazepam valium buy cialis generic valium side effects of xanax tramadol cialis buy online fioricet ambien carisoprodol buying generic ultram celexa online pharmacy tramadol buy tramadol drug fioricet buy ultram online cheap viagra buy xanax buy ambien buy alprazolam online ativan data order cialis buy online carisoprodol buy cheap diazepam generic valium

Layout data used in conjunction with HTMLTableLayout. Children in a composite that uses this layout should call setLayoutData and pass an instance of this class to control physical placement in the parent.

Comments:

From caihailin - 2/5/06 7:13 PM

An example

 

    public void createPartControl(Composite parent) {
          toolkit = new FormToolkit(parent.getDisplay());
          form = toolkit.createForm(parent);
          form.setText("Hello, Eclipse Forms(TableWrapLayout)");
          TableWrapLayout layout = new TableWrapLayout();
          layout.numColumns = 3;
          form.getBody().setLayout(layout);
         
          Label label;
          TableWrapData td;
          label = toolkit.createLabel(form.getBody(),
           "Some text to put in the first column", SWT.WRAP);
         
          label = toolkit.createLabel(form.getBody(),
           "Some text to put in the second column and make it a bit "+
           " longer so that we can see what happens with column "+
           " distribution. This text must be the longest so that it can "+
           " get more space allocated to the columns it belongs to.",
           SWT.WRAP);
          td = new TableWrapData();
          td.colspan = 2;
          label.setLayoutData(td);

          label = toolkit.createLabel(form.getBody(),
           "This text will span two rows and should not grow the column.",
           SWT.WRAP);
          td = new TableWrapData();
          td.rowspan = 2;
          label.setLayoutData(td);
         
          label = toolkit.createLabel(form.getBody(),
           "This text goes into column 2 and consumes only one cell",
           SWT.WRAP);
          label.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));
         
          label = toolkit.createLabel(form.getBody(),
           "This text goes into column 3 and consumes only one cell too",
           SWT.WRAP);
          label.setLayoutData(new TableWrapData(TableWrapData.FILL));
         
          label = toolkit.createLabel(form.getBody(),
           "This text goes into column 2 and consumes only one cell",
           SWT.WRAP);
          label.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));
         
          label = toolkit.createLabel(form.getBody(),
           "This text goes into column 3 and consumes only one cell too",
           SWT.WRAP);
          label.setLayoutData(new TableWrapData(TableWrapData.FILL));
         
          form.getBody().setBackground(form.getBody().getDisplay().
             getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));   
    }

This code is from article corner of eclipse.org. I am not very clear about the option (FILL_GRAB). Maybe someone can tell the effect of this option 

 



Last Modified 10/2/06 11:45 AM

Hide Tools