Package org.eclipse.swt.widgets

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


        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

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.