Examples of addControlListener()


Examples of org.eclipse.swt.widgets.Shell.addControlListener()

      fControl= control;
      if (Helper.okToUse(control)) {

        Shell shell= control.getShell();
        fShell= shell;
        shell.addControlListener(this);

        control.addMouseListener(this);
        control.addFocusListener(this);

        /*
 
View Full Code Here

Examples of org.eclipse.swt.widgets.Shell.addControlListener()

      Control w= fViewer.getTextWidget();
      if (Helper2.okToUse(w)) {

        Shell shell= w.getShell();
        fShell= shell;
        shell.addControlListener(this);

        w.addMouseListener(this);
        w.addFocusListener(this);

        /*
 
View Full Code Here

Examples of org.eclipse.swt.widgets.TabFolder.addControlListener()

        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);
          }
        });
       
View Full Code Here

Examples of org.eclipse.swt.widgets.TabFolder.addControlListener()

        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);
          }
        });
       
View Full Code Here

Examples of org.eclipse.swt.widgets.TabFolder.addControlListener()

        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);
          }
        });
       
View Full Code Here

Examples of org.eclipse.swt.widgets.Table.addControlListener()

            Table table = campaigns.getTable();
            table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
           
            table.setHeaderVisible(false);
            table.setLinesVisible(true);
            table.addControlListener(new ControlListener() {
                public void controlMoved(ControlEvent e) {
                }

                public void controlResized(ControlEvent e) {
                    logger.debug("control resized: " + e);
View Full Code Here

Examples of org.eclipse.swt.widgets.Table.addControlListener()

        albumColumnCount.setWidth((int) (width * 0.15))
        albumColumnPercent.setWidth((int) (width * 0.15));       
      }
    });
   
    titleTable.addControlListener(new ControlAdapter() {
      public void controlResized(ControlEvent e) {
        int width = titleTable.getClientArea().width - titleTable.getVerticalBar().getSize().x;       
        titleColumnName.setWidth((int) (width * 0.5));
        titleColumnAdditional.setWidth((int) (width * 0.2));
        titleColumnCount.setWidth((int) (width * 0.15))
View Full Code Here

Examples of org.eclipse.swt.widgets.TableColumn.addControlListener()

      // :SOLVED: 4/12/04 sets column width.
      if (columnLayouts[i] instanceof ColumnPixelData) {
        ColumnPixelData columnPixeldata = (ColumnPixelData) columnLayouts[i];
        tableColumn.setWidth(columnPixeldata.width);
      }
      tableColumn.addControlListener(new ControlListener() {
        public void controlMoved(ControlEvent event) {      
        }
        public void controlResized(ControlEvent event) {
          TableViewPart.this.columnHeaderResized(event);
        }
View Full Code Here

Examples of org.eclipse.swt.widgets.Text.addControlListener()

    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

Examples of org.eclipse.swt.widgets.Text.addControlListener()

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