Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.ControlAdapter


    // 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


    data.left = new FormAttachment(0, 0);
    data.right = new FormAttachment(100, 0);
    data.top = new FormAttachment(0, 0);
    data.bottom = new FormAttachment(100, 0);
    propertySheetPage.getControl().setLayoutData(data);
    propertySheetPage.getControl().addControlListener(new ControlAdapter() {
      public void controlResized(ControlEvent e) {
        atabbedPropertySheetPage.resizeScrolledComposite();
      }
    });
    propertySheetPage.selectionChanged(getPart(), getSelection());
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

    failColor = new Color(parent.getDisplay(), 159, 63, 63);
    currentColor = passColor;
    maxCount = 0;
    currentCount = 0;

    addControlListener(new ControlAdapter() {
      @Override
      public void controlResized(ControlEvent e) {
        barWidth = scale(currentCount);
        redraw();
      }
View Full Code Here

    public PartSashContainer(String id, final WorkbenchPage page, Composite parentWidget) {
        super(id);
        this.page = page;
        this.parentWidget = parentWidget;
        resizeListener = new ControlAdapter() {
            public void controlResized(ControlEvent e) {
                resizeSashes();
            }
        };
    }
View Full Code Here

        perspectiveCoolBar.setLocked(true);
        perspectiveBar.setParent(perspectiveCoolBar);
        perspectiveBar.update(true);

        // adjust the toolbar size to display as many items as possible
        perspectiveCoolBar.addControlListener(new ControlAdapter() {
            public void controlResized(ControlEvent e) {
                setCoolItemSize(coolItem);
            }
        });
View Full Code Here

                            hexScrollBar.setIncrement(sb.getIncrement());
                        }
                    }
                }
            };
            localComposite.addControlListener(new ControlAdapter()
            {
                public void controlResized(ControlEvent e)
                {
                    //if the control is resized, set different parameters to make a single line displays the same contents.
                    if (((GridLayout) localComposite.getLayout()).makeColumnsEqualWidth)
View Full Code Here

    lblNewLabel.setText(RedisClient.i18nFile.getText(I18nFile.CHANNEL));
   
    final Text channel = new Text(composite_4, SWT.BORDER);
    channel.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
    channel.setBounds(0, 0, 88, 23);
    channel.addControlListener(new ControlAdapter() {
      @Override
      public void controlResized(ControlEvent e) {
        channel.setFocus();
      }
    });
View Full Code Here

    label.setText(RedisClient.i18nFile.getText(I18nFile.CHANNEL));
   
    final Text channel = new Text(composite_5, SWT.BORDER);
    channel.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
    channel.setBounds(0, 0, 73, 21);
    channel.addControlListener(new ControlAdapter() {
      @Override
      public void controlResized(ControlEvent e) {
        channel.setFocus();
      }
    });
View Full Code Here

        e.bullet = new Bullet(ST.BULLET_DOT, style);
      }
    });

    inputCmd.addControlListener(new ControlAdapter() {
      @Override
      public void controlResized(ControlEvent e) {
        inputCmd.setFocus();
      }
    });
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.