Package org.eclipse.swt.widgets

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


      minNameWidth= Math.max(minNameWidth, computeWidth(table, labelProvider.getColumnText(fModel.defaultPageElements.get(i), 0)) + ICON_AND_CHECKBOX_WITH);
    }

    nameColumn.setWidth(minNameWidth);
   
    table.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        handleDefaultPageTableSelection();
      }
    });
  }
View Full Code Here


        ModelElement element= (ModelElement) event.getElement();
        element.setShouldDisplayOnOwnPage(checked);
      }
    });

    table.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        handleOwnPageTableSelection();
      }
    });
View Full Code Here

 
  public Table createTable(Composite com,
      int style, String [] cols, int [] w, SelectionListener listener){
    Table table = new Table(com, style);
    table.setFont(UIDATA.FONT_10);
    if(listener != null) table.addSelectionListener(listener);
    table.setLinesVisible(true);
    table.setHeaderVisible(true);
   
    for(int i = 0; i < cols.length; i++){
      TableColumn order = new TableColumn(table, SWT.LEFT);
View Full Code Here

            public void keyReleased(KeyEvent e) {
                // do nothing
            }
        });

        table.addSelectionListener(new SelectionListener() {
            public void widgetSelected(SelectionEvent e) {
                // do nothing;
            }

            public void widgetDefaultSelected(SelectionEvent e) {
View Full Code Here

        gd_table.heightHint = 100;
        table.setLayoutData(gd_table);
        table.setLinesVisible(true);
        table.setHeaderVisible(true);
       
        table.addSelectionListener(new SelectionListener() {
     
      public void widgetSelected(SelectionEvent e) {
        TableItem[] items = table.getSelection();
                if (items != null && items.length > 0) {
                  int index = notifications.indexOf((Notification) items[0].getData());
View Full Code Here

        gd_table.heightHint = 100;
        table.setLayoutData(gd_table);
        table.setLinesVisible(true);
        table.setHeaderVisible(true);
       
        table.addSelectionListener(new SelectionListener() {
     
      public void widgetSelected(SelectionEvent e) {
        TableItem[] items = table.getSelection();
                if (items != null && items.length > 0) {
                  int index = notifications.indexOf((Notification) items[0].getData());
View Full Code Here

        GridData layoutData2 = new GridData(GridData.FILL_BOTH);
        text.setLayoutData(layoutData2);
        text.setBackground(getShell().getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
        sash.setWeights(new int[] { 3, 1 });

        availableRulesTable.addSelectionListener(new SelectionListener() {
            public void widgetDefaultSelected(SelectionEvent e) {
                widgetSelected(e);
            }

            public void widgetSelected(SelectionEvent e) {
View Full Code Here

                GroupType element = (GroupType) event.getElement();
                selectionMap.put(element, Boolean.valueOf(checked));
            }
        });

        table.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                handleTableSelection();
            }
        });
View Full Code Here

    tableLayoutData.heightHint = 200;
    table.setLayoutData(tableLayoutData);

    table.setHeaderVisible(true);
    table.setLinesVisible(true);
    table.addSelectionListener(new SelectionAdapter(){
      public void widgetSelected(SelectionEvent evt){
        TableItem[] items = viewer.getTable().getSelection();
        boolean enable = false;
        if(items.length > 0){
          String path = items[0].getText(1);
View Full Code Here

        gd_table.heightHint = 100;
        table.setLayoutData(gd_table);
        table.setLinesVisible(true);
        table.setHeaderVisible(true);
       
        table.addSelectionListener(new SelectionListener() {
     
      public void widgetSelected(SelectionEvent e) {
        TableItem[] items = table.getSelection();
                if (items != null && items.length > 0) {
                  int index = notifications.indexOf((Notification) items[0].getData());
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.