Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Composite.layout()


    if (fCachedTextViewer instanceof ITextViewerExtension) {
      ITextViewerExtension extension= (ITextViewerExtension) fCachedTextViewer;
      Control control= extension.getControl();
      if (control instanceof Composite && !control.isDisposed()) {
        Composite composite= (Composite) control;
        composite.layout(true);
      }
    }
  }

  /**
 
View Full Code Here


        forgroundAlphaLabel.setLayoutData(layoutData);
        forgroundAlphaLabel.setText(Messages.getString("LegendGraphicStyleConfigurator.foregroundalpha")); //$NON-NLS-1$
        forgroundAlphaText = new Text(propertiesGroup, SWT.BORDER);
        forgroundAlphaText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL));

        c.layout();
        Point size = c.computeSize(SWT.DEFAULT, SWT.DEFAULT);
        c.setSize(size);
        scrollComposite.setContent(c);

        titleText.addModifyListener(this);
View Full Code Here

        backgroundColour.addSelectionListener(this);

        /*
         * layout
         */
        c.layout();
        Point size = c.computeSize(SWT.DEFAULT, SWT.DEFAULT);
        c.setSize(size);
        scrollComposite.setContent(c);
    }

View Full Code Here

    }
    //System.out.println("");

    // layout so that we have enough space for the new labels
    Composite grandparent = getParent().getParent();
    grandparent.layout(true);
    layout(true);
  }

  /**
   * Initialize the accessibility adapter.
View Full Code Here

        Label backgroundColourLabel = new Label(composite, SWT.NONE);
        backgroundColourLabel.setLayoutData(layoutData);
        backgroundColourLabel.setText(Messages.LegendGraphicStyleConfigurator_background_colour);
        backgroundColour = new ColorEditor(composite);
       
        composite.layout();
        Point size = composite.computeSize(SWT.DEFAULT, SWT.DEFAULT);
        composite.setSize(size);
        scrollComposite.setContent(composite);
        verticalMargin.addModifyListener(this);
View Full Code Here

                .getString("LegendGraphicStyleConfigurator.foregroundalpha")); //$NON-NLS-1$
        forgroundAlphaText = new Text(propertiesGroup, SWT.BORDER);
        forgroundAlphaText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL
                | GridData.GRAB_HORIZONTAL));

        c.layout();
        Point size = c.computeSize(SWT.DEFAULT, SWT.DEFAULT);
        c.setSize(size);
        scrollComposite.setContent(c);

        xposText.addModifyListener(this);
View Full Code Here

                }

            } );

            resultWidget = list;
            comp.layout();
        }

        public Control getControl() {
            return resultWidget;
        }
View Full Code Here

            // Not just ancestor.layout().
            // It is important to tell the Layout that the preferences have
            // changed. Objects such as org.eclipse.swt.layout.GridData (for
            // GridLayout) cache the last width and height. We must flush this
            // cached geometry.
            ancestor.layout(new Control[] { borderlessChild });
        }
    }

    // This is called by the layout when it assigns a size and position to this
    // Control.
View Full Code Here

    }
  }

  private void updateScrolledComposite() {
    Composite container = (Composite) expandBar.getContent();
    container.layout();
    expandBar.layout();
    expandBar.reflow(true);
  }

  private void addWidget(IConfigurationElement config, String pluginId) {
View Full Code Here

        if (parentLayout instanceof ICachingLayout) {
            ((ICachingLayout) parentLayout).flush(changedControl);
        }

        if (parent instanceof Shell) {
            parent.layout(true);
        } else {
            Rectangle currentBounds = parent.getBounds();

            resize(parent);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.