Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.ControlAdapter


            column.setWidth( 200 );
            column.setResizable( true );

        }
        viewer.setColumnProperties( EntryEditorWidgetTableMetadata.COLUM_NAMES );
        tree.addControlListener( new ControlAdapter()
        {
            public void controlResized( ControlEvent e )
            {
                if ( tree.getClientArea().width > 0 )
                {
View Full Code Here


        composite.setLayout(gridLayout);
        final ScrolledComposite scroll = new ScrolledComposite(composite, SWT.V_SCROLL | SWT.BORDER);
        scroll.setLayout(new FillLayout());
       
        final TabFolder tabFolder = new TabFolder(scroll, SWT.NONE);
        tabFolder.addControlListener(new ControlAdapter(){
          public void controlResized( ControlEvent e ) {
            tabFolder.setSize(parent.getSize().x, parent.getSize().y);
          }
        });
       
        scroll.setContent(tabFolder);
        parent.addControlListener(new ControlAdapter(){
          public void controlResized( ControlEvent e ) {
            tabFolder.setSize(parent.getSize().x, parent.getSize().y);
          }
        });
        scroll.setAlwaysShowScrollBars(true);
        scroll.setExpandVertical(true);
        scroll.setExpandHorizontal(true);
        scroll.addControlListener(new ControlAdapter(){
          public void controlResized( ControlEvent e ) {
            scroll.setMinHeight(parent.computeSize(SWT.DEFAULT, SWT.DEFAULT).y);           
          }
        });
        createGeneralTab(tabFolder);
View Full Code Here

    // Ensures that this editor will only display the page's tab
    // area if there are more than one page
    //
    getContainer().addControlListener
      (new ControlAdapter() {
        boolean guard = false;
        @Override
        public void controlResized(ControlEvent event) {
          if (!guard) {
            guard = true;
View Full Code Here

    // Ensures that this editor will only display the page's tab
    // area if there are more than one page
    //
    getContainer().addControlListener
      (new ControlAdapter() {
        boolean guard = false;
        @Override
        public void controlResized(ControlEvent event) {
          if (!guard) {
            guard = true;
View Full Code Here

   * @param style the style of this control.
   */
  public SWTImageCanvas(final Composite parent, int style) {
    super( parent, style|SWT.BORDER|SWT.V_SCROLL|SWT.H_SCROLL
                    | SWT.NO_BACKGROUND);
    addControlListener(new ControlAdapter() { /* resize listener. */
      public void controlResized(ControlEvent event) {
        syncScrollBars();
      }
    });
    addPaintListener(new PaintListener() { /* paint listener. */
 
View Full Code Here

    // Ensures that this editor will only display the page's tab
    // area if there are more than one page
    //
    getContainer().addControlListener
      (new ControlAdapter() {
        boolean guard = false;
        @Override
        public void controlResized(ControlEvent event) {
          if (!guard) {
            guard = true;
View Full Code Here

    // Ensures that this editor will only display the page's tab
    // area if there are more than one page
    //
    getContainer().addControlListener
      (new ControlAdapter() {
        boolean guard = false;
        @Override
        public void controlResized(ControlEvent event) {
          if (!guard) {
            guard = true;
View Full Code Here

    // Ensures that this editor will only display the page's tab
    // area if there are more than one page
    //
    getContainer().addControlListener
      (new ControlAdapter() {
        boolean guard = false;
        @Override
        public void controlResized(ControlEvent event) {
          if (!guard) {
            guard = true;
View Full Code Here

    // Ensures that this editor will only display the page's tab
    // area if there are more than one page
    //
    getContainer().addControlListener
      (new ControlAdapter() {
        boolean guard = false;
        @Override
        public void controlResized(ControlEvent event) {
          if (!guard) {
            guard = true;
View Full Code Here

    // Ensures that this editor will only display the page's tab
    // area if there are more than one page
    //
    getContainer().addControlListener
      (new ControlAdapter() {
        boolean guard = false;
        @Override
        public void controlResized(ControlEvent event) {
          if (!guard) {
            guard = true;
View Full Code Here

TOP

Related Classes of org.eclipse.swt.events.ControlAdapter

Copyright © 2018 www.massapicom. 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.